Logo by HPDZ - 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: Visit us on facebook
 
*
Welcome, Guest. Please login or register. December 01, 2025, 09:58:10 AM


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]   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: Question on "light source consistency" (retry)  (Read 2378 times)
0 Members and 1 Guest are viewing this topic.
devijvers
Guest
« 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) {
ComplexNumber z = z0;
int t = 0;
for (; t < MAX; t++) { // MAX = 200
if (z.abs() > 2.0) break;
z = z.times(z).plus(z0);
}
final int colorValue = MAX - t;

raster.setPixel(x, y, new int[] {
colorValue,
(colorValue != 0) ? (((int)(z.abs() * 128)) % 255) | 0x90 : colorValue, // light source consistency
(colorValue != 0) ? MAX : colorValue});
}

Thanks

Steven






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


formerly known as 'Trifox'


WWW
« Reply #1 on: April 01, 2010, 07:33:31 PM »

what is your question ?!
Logged

---

divide and conquer - iterate and rule - chaos is No random!
devijvers
Guest
« Reply #2 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?
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: April 01, 2010, 08:02:40 PM »

huh? what do you mean ? i only see bands of iterations, and current iteration complex value used for coloring wink
Logged

---

divide and conquer - iterate and rule - chaos is No random!
devijvers
Guest
« Reply #4 on: April 01, 2010, 08:29:12 PM »

huh? what do you mean ? i only see bands of iterations, and current iteration complex value used for coloring wink


Where can I learn more about "bands of iterations"?
Logged
Nahee_Enterprises
World Renowned
Fractal Senior
******
Posts: 2250


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #5 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 !!!    smiley

The images appear to show iteration banding with a limited color palette.
 
Logged

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


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #6 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/append_a_misc.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/commands.html
 
Logged

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


formerly known as 'Trifox'


WWW
« Reply #7 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 .. sad

Logged

---

divide and conquer - iterate and rule - chaos is No random!
Timeroot
Fractal Fertilizer
*****
Posts: 362


The pwnge.


WWW
« Reply #8 on: April 02, 2010, 01:09:52 AM »

It's not really mapping to the full 255 colors, because he's just taking the integer part. That's why you get the banding within the bands.

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!
Logged

Someday, man will understand primary theory; how every aspect of our universe has come about. Then we will describe all of physics, build a complete understanding of genetic engineering, catalog all planets, and find intelligent life. And then we'll just puzzle over fractals for eternity.
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Finding "X" With The New Math Fractal Humor Sockratease 2 1240 Last post April 26, 2010, 12:55:25 AM
by Nahee_Enterprises
"Light Cube" Mandelbulb3D Gallery Andrew Wilson 4 894 Last post May 10, 2015, 06:24:42 PM
by Andrew Wilson
Mandelbulb 3D - color-mapping question ("Fabergè Experiment") Help & Support m2001 1 966 Last post May 24, 2015, 01:25:01 PM
by m2001

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.209 seconds with 26 queries. (Pretty URLs adds 0.01s, 2q)