# fractal result by accident

This topic is 2084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I was tinkering a bit with my basic raytracing code and by accident i

received some kind of fractal pattern

[attachment=19801:ff.jpg]

does maybe someone know if it has some official name? i think i saw this already in some book or something

the code to get this is like i was counting distance from screen points (along the rays) to sphere (this distance should be about 0 to 1000)  then just multiplying this by 255.9

casting to unsigned and adding it like

unsigned color_ = (red<<16) + (green<<8) + (blue);

then setting pixel :/ i do not know exactly reason of this outcome but it is funny ;\ (in mathematical way)

##### Share on other sites

Looks like normal sampling aliasing or interference patterns. As the frequency of the rings increase, they approach and pass the limit at which you sample the rings at the pixels.

##### Share on other sites

Looks like normal sampling aliasing or interference patterns. As the frequency of the rings increase, they approach and pass the limit at which you sample the rings at the pixels.

may be but besides is a some specyfic fractal structure, (type of fractal) probably/maybe has some name

##### Share on other sites

Zoom in on those structures and see what happens when you get closer to them. If the patterns change as you zoom in, then this is definitely just normal sampling aliasing. The fact that you only calculate a distance and transforms it into some color means that the pattern should just be circular rings around a center point, but circular patterns with too high frequency for the display produces those particular patterns. Nothing fractal at all about it.

I cannot agree this is not a fractal, iMO this is a well defined fractal.

I think this coloring is stable, it is you probably can paint a real wooden

ball this way - this is probably effect of colouring some geometrical surface based on distance to point with cyclic palette - you will get stripes here, if distance would be counted from only one point you will

probbly get centric circles on a ball, but this distance is counted not

from one point but from each screen pixel so it results in such strange fractal (this is what i think i am not sure)

zooming the ball I think will not change the effects with covering spray

(just zooming it) but probably with rising the spatial frequenzy of palette wil uncover infinite complexity of the rings... that i suspect

##### Share on other sites

Why "I think" and "I suspect" when you can try to verify your claims and be completely confident instead? Zoom in on some part of the image showing a fractal behavior. If it is indeed a fractal pattern, the pattern should remain stable as you zoom in and recalculate the region at a higher resolution.

##### Share on other sites

Clearly an aliasing effect and nothing fractal about it.

If you say so ;\ (yawn)

##### Share on other sites

You asked about an effect that was unknown to you and I gave an answer about an effect that is known to me. You don't have to take my word for it, but I did give you experiments you can perform to either enforce or refute my answer. I have at least provided examples to back my answer up and mentioned experiments you can do to see for yourself. It is not about just believing in my word at that point.

• ### Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• 16
• 9
• 15
• 9
• 11