Advertisement Jump to content
Sign in to follow this  
fir

fractal result by accident

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement

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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites

 

Clearly an aliasing effect and nothing fractal about it.

 

If you say so ;\ (yawn)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!