Logo by miles - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 25, 2024, 04:54:49 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   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: Escape From The Mandelbox  (Read 1081 times)
Description: Voxel based rendering of mandelbox
0 Members and 1 Guest are viewing this topic.
sbowline
Forums Newbie
*
Posts: 1


« on: January 05, 2014, 04:37:47 AM »

Hi, all, this is my first posting.  I've been writing some toy code for doing a voxel based renders of mandelboxes and am a bit confused about some things.  Maybe some of you can help.  The point of this exercise is to test and explore some fractal parameters in mandelbulber and then render my own voxels with the settings.

First of all, I'm not sure I'm varying the constant across the domain properly.  At first I was voxelizing across the cube domain -1,1 but wasn't getting anything near a match to what mandelbulber would compute.  Setting the limits in mandelbulber to the cube -4,4 and voxelizing my domain accordingly seems to work pretty well.  But this fractal doesn't behave like I was expecting (e.g. a kind of zoom) so narrowing the domain may not be doing what I assumed it would.

Second, it's not clear to me how the termination condition and the colorization relate.  I would normally assume that if the function did not diverge over the course of the iterations that the voxel was "in the set" and could be rendered, say, black.  For the mandelbox I can get an entire volume of interesting iteration counts, but I'm not sure at all what would constitute a void or black voxel.

Any help or suggestions are welcome!

Here's a code fragment that might explain a little better than my words:

    C = (x*8.0 / DimX - 4.0,
         y*8.0 / DimY - 4.0,
         z*8.0 / DimZ - 4.0)
    Z = (0, 0, 0)

    r = 0.
    while r<1024. and iterations < 16:
        Z = boxFold (Z)
        Z = ballFold (Z)
        Z = compAdd (scalarMult (scale, Z), C)
        r = magnitude (Z)
        iterations = iterations + 1

    if iterations<16:
        return iterations

    return 0
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Spir@l escape UltraFractal Gallery bib 0 598 Last post June 02, 2009, 08:18:46 PM
by bib
Rollercoaster escape Movies Showcase (Rate My Movie) marius 2 716 Last post November 08, 2010, 09:06:10 PM
by marius
(Beginner) Escape conditions for mandelbox 3D Fractal Generation barkeg 14 5906 Last post August 26, 2011, 01:50:09 AM
by knighty
No Escape Mandelbulb3D Gallery CO99A5 0 634 Last post September 05, 2011, 04:49:13 PM
by CO99A5
Escape JWildfire Gallery thargor6 0 442 Last post December 18, 2012, 12:35:25 AM
by thargor6

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

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