Logo by JosLeys - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. October 01, 2018, 02:10:08 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1] 2   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: 2d ray traced julia  (Read 3441 times)
0 Members and 1 Guest are viewing this topic.
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« on: February 28, 2007, 02:49:46 AM »

i resurrected some old code i had lying around (based on an article i wrote long ago: http://mysticgd.com/thomas/lycium.cfxweb.net/2dgi.html) and rendered this with it:

« Last Edit: February 28, 2007, 03:29:32 AM by lycium » Logged

cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #1 on: February 28, 2007, 12:57:59 PM »

way cool smiley

the caustics look really amazing wink

how long does it take to render?


have you tried to implement refraction also ?
Logged

---

divide and conquer - iterate and rule - chaos is No random!
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #2 on: February 28, 2007, 01:07:48 PM »

thanks, i have indeed implemented refraction and although the result wasn't correct, it did look neat smiley the next implementation of refraction will be wavelength-based.

a friend of mine, exceptionally good programmer, is helping me write a little opensource sampling framework so that i can efficiently render such images (or anything that can be sampled in 2d, for example your own fractals). it's a progressive (non-terminating) rendering technique based on metropolis-hastings sampling. i'll write the cpu-based code and he's writing a hardware-accelerated implementation.
Logged

cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: February 28, 2007, 01:17:17 PM »

this would make indeed a nice post processing step wink

when talking about 2d rendering would it be possible to give the points a height value ?

this would complicate the rendering process even more ;(
Logged

---

divide and conquer - iterate and rule - chaos is No random!
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #4 on: February 28, 2007, 01:24:54 PM »

any 2d sampling procedure can be used. i give (x,y) and you give me a colour, that's it! all the magic is inside the black-box sampling method.

i plan to 3d ray trace using this framework eventually; (x,y) -> ray -> intersecion -> colour. the ray tracing will of course be 3d fractals... this is only the tip of the iceberg wink
Logged

gandreas
Explorer
****
Posts: 53



WWW
« Reply #5 on: February 28, 2007, 05:26:58 PM »

Interesting.  Definitely got lots of potential!

The article you mentioned refers to taking the normal to object.  However, the generalized Julia set doesn't have a normal (it's "infinitely rough", except for a few degenerate cases) - so you do you just cheat and pick an arbitrary depth of evaluation?
Logged
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #6 on: February 28, 2007, 05:40:00 PM »

Interesting.  Definitely got lots of potential!

interesting that you mention potentials; the normal is just the gradient of a (julia) potential field.

it's true that fractals have very poorly defined normals, even when formulated as implicit objects via a potential field. i've found that using more than 9 or 10 iterations, depending on resolution, really stresses all those sampling methods; the reason i used a particularly smooth surface approximation here is because it makes those nice specular reflection caustics smiley
Logged

lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #7 on: February 28, 2007, 06:01:50 PM »

another, bigger&better render: http://www.fractographer.com/images/specular_julia_newbig.png
Logged

David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #8 on: February 28, 2007, 06:14:31 PM »

Interesting.  Definitely got lots of potential!

interesting that you mention potentials; the normal is just the gradient of a (julia) potential field.

it's true that fractals have very poorly defined normals, even when formulated as implicit objects via a potential field. i've found that using more than 9 or 10 iterations, depending on resolution, really stresses all those sampling methods; the reason i used a particularly smooth surface approximation here is because it makes those nice specular reflection caustics smiley

You may find that using the smooth distance estimator method produces nicer results than using smooth iteration/potential (it's certainly more optimum for ray-tracing 3D fractals).
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #9 on: February 28, 2007, 06:35:43 PM »

i'm actually just following the 8 iterations and working with the magnitude of that last z value; with few iterations it's plenty smooth.

anyway, this 2d ray tracing stuff is just a momentary hack to test the new sampling engine. with that thing i'll ray trace 3d fractals, also with full+exact global illumination wink
Logged

gandreas
Explorer
****
Posts: 53



WWW
« Reply #10 on: February 28, 2007, 09:06:38 PM »

I'd suggest that you stick with 2D for a while here because fractals are not "well defined" in 3D (2D via complex numbers yes, 4D via quaternions yes, but 3D, not so much since there is no "triternions"), and there are a number of things which attempt to do 3D raytracing (after coming up with some way to produce a 3rd dimension). 

On the other hand, 2D stuff is well defined and very rich (giving you lots to start from), and your raytracing appears to offer something new and exciting (I'm curious what something that was more "holes" like a Newton fractal would look like, and do you still get caustics with the more convex Mandelbrot set)
Logged
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #11 on: February 28, 2007, 09:12:09 PM »

i've done plenty of 3d fractals smiley frankly i can't wait to see them all with area lights, glossy surfaces and rendered to exact physical accuracy!

there will always be a special place for 2d graphics (fractal or otherwise) in my heart, and this sampling engine will be great for rendering those. the future calls, however... it's 2007 and high time i ray traced some real 3d fractals smiley
Logged

gandreas
Explorer
****
Posts: 53



WWW
« Reply #12 on: February 28, 2007, 09:22:55 PM »

Kids these days and their "glossy surfaces".  I remember back when all we has was black and white, and if you wanted gray, you had to blink fast!  And we liked it that way!

(Seriously, I remember writing software that, during the VBL interrupt, would change the graphics page to get more depth - two frames from one, one frame from the other, and instant  head-ache inducing grayscale)


Logged
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #13 on: February 28, 2007, 09:47:27 PM »

this is getting to be a huge aside, but since i haven't got an introduction in that section of the forum.... wink

surprisingly (for a not-such-a-kid-anymore this day) i've done my fair share of to-the-metal coding, and still know some binary x86 opcodes for 32bit instructions cuz my basic compiler only supported 286 inline asm (0x66 for 32bit prefix, 0xf3 for rep, 0xab or 0xa5 for one of stosd or movsd)! i've written fast gouraud-shaded triangle fillers for little mode 13h 3d engines, done many demoscene effects, and that was all nice and dandy until...

... i learnt about ray tracing and monte carlo methods wink

seriously, there's been realistic ray tracing since way back (kajiya's rendering equation dates to 1986, cook and porter did distributed ray tracing before that even) and that's more or less when i was born, so it's entirely fair that i get to pursue the 1995 state-of-the-art in 2007 tongue stuck out

[realistic rendering is a great way to appreciate good maths, btw! that in itself makes it worthwhile, and it's a rare instance where mathematics is plainly appreciable - all the images in this thread are purely equation-driven]
Logged

Nahee_Enterprises
World Renowned
Fractal Senior
******
Posts: 2250


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #14 on: March 01, 2007, 03:06:53 AM »

Glenn Andreas (gandreas) wrote:
>
>    I'd suggest that you stick with 2D for a while here because
>    fractals are not "well defined" in 3D (2D via complex numbers yes,
>    4D via quaternions yes, but 3D, not so much since there is no "triternions")....

That's interesting about "there is no 'triternions'".    wink

You may wish to tell Russell Walsmith, Paul Bourke, and a few other individuals that have been creating these using some formulas written to run under FractInt:

    http://local.wasp.uwa.edu.au/~pbourke/fractals/triternion/

    http://www.miscoranda.com/106

    http://ixitol.com/html/triternions.html
    http://ixitol.com/Triternions.pdf

    http://www.research.att.com/~njas/sequences/A112259

    http://home.att.net/~Fractals_3/FotD_06-10-07.html
    http://home.att.net/~Fractals_2/FotD_02-12-10.html

    http://www.mathsong.com/casaraku/pages/022/20051108.htm

 
« Last Edit: March 01, 2007, 03:09:56 AM by Nahee_Enterprises » Logged

Pages: [1] 2   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Just another julia Images Showcase (Rate My Fractal) Unhooked 3 1448 Last post May 19, 2010, 03:11:42 PM
by Bent-Winged Angel
Another Julia Images Showcase (Rate My Fractal) Duncan C 5 1838 Last post November 05, 2007, 08:39:19 PM
by Kimmo
What to do about Julia set DE Errors for points close to the origin? Programming Duncan C 2 1601 Last post May 10, 2008, 05:09:59 AM
by Duncan C
Mesh Julia 3D Images Showcase (Rate My Fractal) Duncan C 9 1748 Last post November 14, 2008, 05:05:28 AM
by Duncan C
Imitations of classical Julia set using Newton's method General Discussion gamma 5 2194 Last post January 29, 2009, 05:05:00 AM
by HPDZ

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.163 seconds with 25 queries. (Pretty URLs adds 0.017s, 2q)