Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Fractal Fun Pictures!
paerl Offline
Junior Member

Posts: 1
Threads: 0
Joined: Nov 2009
Reputation: 0
#16
RE: Fractal Fun Pictures!

Fantastic program Smile:

Found a small change in the GL code that that increases the speed quite a lot. Putting the limit test inside the loop will make it drop out after only a few iterations a vast majority of times (it's well worth the extra work when we actually hit something). Then it's possible to reduce the search granularity and still run at a decent frame rate with much greater detail already at the first try.

bool RenderMandelBrot(vec3 avPosition, int alIterations, float afPower)
{
vec3 vTestPos = avPosition;
for(int i=0; i<alIterations; ++i)
{
vTestPos = PolarCoordMulExp(vTestPos,afPower) + avPosition;
if (dot(vTestPos, vTestPos) > 2)
return false;
}
return true;
}

And here's an image from the jungle:
[Image: attachment.php?aid=767]

I also tried to increase the number of iterations, but it quickly becomes very grainy and pixelated. I think this is because we reach the limit for the 32-bit float resolution of the GPU. All CPU based programs use 64-bit floats, allowing a lot better resolution. I guess this is what you have to pay for the speed and usability of this program.
(This post was last modified: 11-29-2009, 02:36 AM by ChrisTiff.)
11-29-2009, 02:19 AM
Find


Messages In This Thread
Fractal Fun Pictures! - by Thomas - 11-17-2009, 07:07 PM
RE: Fractal Fun Pictures! - by Thomas - 12-12-2010, 04:16 PM
RE: Fractal Fun Pictures! - by hollowleviathan - 12-14-2010, 07:49 PM
RE: Fractal Fun Pictures! - by xiphirx - 12-14-2010, 08:02 PM
RE: Fractal Fun Pictures! - by WindexGlow - 12-15-2010, 11:55 PM
RE: Fractal Fun Pictures! - by OC_Burner - 02-10-2014, 05:25 PM



Users browsing this thread: 1 Guest(s)