Logo by Dinkydau - Contribute your own Logo!
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 25, 2014, 04:46:53 AM


Login with username, password and session length



Pages: 1 2 [3]   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: A Mandelbox distance estimate formula  (Read 14735 times)
0 Members and 1 Guest are viewing this topic.
knighty
Fractal Bachius
*
Posts: 540


« Reply #30 on: September 10, 2010, 09:27:44 PM »

Thank you for these valuable informations smiley

I'm using knighty's formula
Acutally it's Buddhi's formula.smiley I've just modified it a little bit. I think it can be improved further.
BTW! the statment:
distance = (sqrt(x*x+y*y+z*z)-abs(scale-1))/abs(DEfactor) - abs(scale)^(1-i);
is over complicated. Now i do instead:
distance = (sqrt(x*x+y*y+z*z)-BVR)/abs(DEfactor)
BVR is the radius of the bounding volume of the fractal.

It's possible to use max(max(abs(x),abs(y)),abs(z)) as the norm instead of sqrt(x*x+y*y+z*z). This is not an optimization, just another way to do it.
In case you are interrested, it's also possible to keep the size of the (positive scale) mandelbox constant.link.

« Last Edit: September 10, 2010, 09:40:05 PM by knighty » Logged
Teraflop
Guest
« Reply #31 on: November 06, 2010, 05:53:40 PM »

Hm, nice... this "-BVR" makes a subtle but still visible improvement. Overall, I discovered, that sometimes you can multiply the distance estimation by some number above 1 and it will still work (typically somewhere between 1.5 and 2.5), but in some unusual cases, numbers below 1 are required.
Logged
knighty
Fractal Bachius
*
Posts: 540


« Reply #32 on: September 07, 2011, 02:38:02 PM »

Overall, I discovered, that sometimes you can multiply the distance estimation by some number above 1 and it will still work (typically somewhere between 1.5 and 2.5), but in some unusual cases, numbers below 1 are required.
I guess that happens with positive scale Mandelboxes. I've finally found a tweek to "improve" their DE estimate:
Replace:
Code:
DEfactor = DEfactor * abs(scale) + 1.0;
by
Code:
DEfactor = -DEfactor * scale + 1.0;

This way, it's not necessary (AFAIK) to scale down the DE for negative scales. Unfortunately, this is not true with positive scales. There are areas where it's necessary to downscale the DE by a factor down to 0.45 or so... Something is still missing. sad
Logged
Pages: 1 2 [3]   Go Down
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
The tetrahedral Mandelbox, formula and some parameters New Theories & Research DarkBeam 5 985 Last post April 17, 2013, 02:33:14 PM
by Alef
Mandelbox distance estimation problem 3D Fractal Generation « 1 2 » barkeg 23 5020 Last post August 27, 2011, 12:28:36 PM
by barkeg
Convert a Distance Estimate to a Mesh General Discussion eiffie 9 3023 Last post October 11, 2011, 05:22:34 PM
by eiffie
Mandelbox DE formula 3D Fractal Generation khyperia 5 1276 Last post April 04, 2012, 01:48:32 PM
by DarkBeam
Need help with distance estimation formula for the Phoenix fractal Programming top-quark 3 87 Last post Today at 02:26:40 AM
by top-quark

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.259 seconds with 30 queries. (Pretty URLs adds 0.011s, 2q)