Title: Question on "light source consistency" (retry) Post by: devijvers on April 01, 2010, 07:16:00 PM Hey,
This is my first post on fractal forums. I’ve observed a fractal result as shown in the attached images. I call it “light source consistency” although maybe there’s another name for it. My question is: can this observation be linked to particular mathematical theories, or can it be explained in other ways? For your information, I list the color calculation code below (Java): Code: public void forPixel(final int x, final int y, final ComplexNumber z0) {Thanks Steven (http://farm5.static.flickr.com/4018/4481495365_9ef8be8003_o.png) (http://farm5.static.flickr.com/4058/4482144572_0a2666c312_o.png) (http://farm3.static.flickr.com/2743/4482144698_61af4f488a_o.png) (http://farm3.static.flickr.com/2759/4482144804_a159fbbfc2_o.png) (http://farm3.static.flickr.com/2735/4481495833_827cb3c279_o.png) Title: Re: Question on "light source consistency" (retry) Post by: cKleinhuis on April 01, 2010, 07:33:31 PM what is your question ?!
Title: Re: Question on "light source consistency" (retry) Post by: devijvers on April 01, 2010, 07:42:38 PM what is your question ?! I'm rephrasing my question, trying to be precise and I can: On the images you see coloring features that appear to be raytraced as in tracing light originating from a light source bouncing on a pixel to the imaged eye of an observer. How can these features in this fractal be explained mathematically? Title: Re: Question on "light source consistency" (retry) Post by: cKleinhuis on April 01, 2010, 08:02:40 PM ??? what do you mean ? i only see bands of iterations, and current iteration complex value used for coloring ;)
Title: Re: Question on "light source consistency" (retry) Post by: devijvers on April 01, 2010, 08:29:12 PM ??? what do you mean ? i only see bands of iterations, and current iteration complex value used for coloring ;) Where can I learn more about "bands of iterations"? Title: Re: Question on "light source consistency" (retry) Post by: Nahee_Enterprises on April 01, 2010, 08:33:15 PM Hey, This is my first post on fractal forums. ...... My question is: can this observation be linked to particular mathematical theories, or can it be explained in other ways? Greetings, and Welcome to this particular Forum !!! :) The images appear to show iteration banding with a limited color palette. Title: Re: Question on "light source consistency" (retry) Post by: Nahee_Enterprises on April 01, 2010, 08:43:43 PM Where can I learn more about "bands of iterations"? I know where such things are discussed in the FractInt manual, which I am more familiar with: http://www.Nahee.com/spanky/www/fractint/frm-tut/frm-tutor.html (http://www.Nahee.com/spanky/www/fractint/frm-tut/frm-tutor.html) http://www.Nahee.com/spanky/www/fractint/append_a_misc.html (http://www.Nahee.com/spanky/www/fractint/append_a_misc.html) http://www.Nahee.com/spanky/www/fractint/contin_pot.html (http://www.Nahee.com/spanky/www/fractint/contin_pot.html) http://www.Nahee.com/spanky/www/fractint/bif_type.html (http://www.Nahee.com/spanky/www/fractint/bif_type.html) http://www.Nahee.com/spanky/www/fractint/commands.html (http://www.Nahee.com/spanky/www/fractint/commands.html) Title: Re: Question on "light source consistency" (retry) Post by: cKleinhuis on April 01, 2010, 09:41:35 PM so, usually u give a certain iteration a color, in your case it is variable "t"
(((int)(z.abs() * 128)) % 255) | 0x90 you are assuming, that the value is below 2, hence you are multipliying it by 128 to map it to full 255 colors ... if you wanna play a litte, try using abs(z.real) or, abs(z.imag) to examine results but with lighting it hasnt really anything to do .. :( Title: Re: Question on "light source consistency" (retry) Post by: Timeroot on April 02, 2010, 01:09:52 AM Never mind, first he's multiplying, I see... it's the XOR that's giving the banding, I guess. What made you pick XOR 0x90? Why not some number like A0, or 50? Wait, no, I see... you wanted the 8 bands in each "big" iteration band, and you wanted it to be greater than 128 so that it wouldn't be overly bright. Clever. If you want something with a bit more interesting, you could try (colorValue!=0)? t%255 : colorValue for the blue component. When you put something like MAX in, it leaves the whole picture looking somewhat monotonic... I agree with Trifox, though, that this doesn't have anything much to due with lighting. I see what you mean, though, that on the outsides of the bands it looks like it's reflecting something, and the whole thing is an elevated hump. This is quite simply due to the fact that in the green component, it grows approximately the same as the z.abs() does. And the farther that the pixel is away from the set, the greater its absolute value will be. So farther = more green = brighter coloring. Hope that answers your question! |