FOR THE COMPO READ THE RULES; ONLY UPLOADS TO THE RIGHT GALLERY SECTION MAY COMPETE!!!

Logo by Trifox - Contribute your own Logo!
News: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register., Guest. Please login or register. May 19, 2013, 12:04:25 PM


Login with username, password and session length



Pages: 1 2 [3]   Go Down
  Print  
Share this topic on Facebook
Author Topic: A Mandelbox distance estimate formula  (Read 12109 times)
0 Members and 1 Guest are viewing this topic.
knighty
Fractal Phenom
******
Posts: 452


« 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
Forums Freshman
**
Posts: 7



« 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 Phenom
******
Posts: 452


« 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
Understanding the Mandelbox formula (for 2D) Programming jwm-art 6 1535 Last post November 23, 2010, 05:48:17 AM
by Tglad
The tetrahedral Mandelbox, formula and some parameters New Theories & Research DarkBeam 5 851 Last post April 17, 2013, 02:33:14 PM
by Alef
Mandelbox distance estimation problem 3D Fractal Generation « 1 2 » barkeg 23 4418 Last post August 27, 2011, 12:28:36 PM
by barkeg
Convert a Distance Estimate to a Mesh General Discussion eiffie 9 2689 Last post October 11, 2011, 05:22:34 PM
by eiffie
Mandelbox DE formula 3D Fractal Generation khyperia 5 882 Last post April 04, 2012, 01:48:32 PM
by DarkBeam

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

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