Welcome to Fractal Forums

Fractal Software => Help & Support => Topic started by: gabo11 on October 05, 2011, 09:18:30 PM




Title: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 05, 2011, 09:18:30 PM
hello everyone,

I am pretty new to the topic and developed a small app that calculates the 2d mandelbrot set.

My idea now is to turn the whole thing into 3d as follows:
- flip the mandelbrot set to a heightmap, so that it looks like a canyon
- starting from over the canyon I would like to dive into the wall of the canyon and deep zoom into it
- generate a movie of the whole thing

do you have any suggestions or examples how to do this with ChaosPro or another tool?
is this possible? thank you for your help!

Gabo


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 07, 2011, 08:12:37 PM
hello, could you please respond me wheter my question was wrong or this hasn't done before?

thank you for your help


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: cKleinhuis on October 07, 2011, 08:45:41 PM
Many programs offer this. But iam not in there

in my eyes an aoproach using dynamic tesselation on a nowadaysdays gpu could work ppreferably
One with double precision

check out fragmentarium for realtime ray marching which could adopted for your needs

generalprocedure without gpu would implement a fast guessing mandelbrot renderer and use this information as heightmap. Recalculated 50 times a second

a gpu can come in handy when translating the points via texture



Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: David Makin on October 07, 2011, 10:00:39 PM
hello, could you please respond me wheter my question was wrong or this hasn't done before?

thank you for your help

There are two approaches to this - convert the 2D fractal to a heightmap grid and render as triangles/polygons or create a distance estimation method (that returns spot heights for given locations and from that calculates a distance estimate) for ray marching - the latter is by far the better method if you want realtime results with deep-zooming calculated at runtime, though that's only really feasible both on a GPU and with double accuracy.


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: Syntopia on October 07, 2011, 10:38:27 PM
Fragmentarium already comes with a Mandelbrot heightfield example courtesy of Knighty ("Examples/Knighty Collection/MandelbrotHeightfield.frag"), which can be rendered in real-time. (You need to download and compile the latest Github version to run it)

It will not give you a feeling of flying through a canyon, though. It is more like riding on a stretched rubber surface :-) Don't know why, but the distance estimate used as heightmap for the Mandelbrot seems all too smooth - perhaps a better function could be found. Or perhaps it is a resolution thing as David says - Fragmentarium is single precision only.

Example:




Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: knighty on October 08, 2011, 03:15:01 PM
Note that a more eficient approache would be to use cone step mapping instead of "my" method. In fact, being lazy, I just derived a distance estimate that gives a sphere that is always inside the cone. That way I could use syntopia's DE raymarcher without further work. O0


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 09, 2011, 08:17:45 PM
Hi Syntopia

The example is pretty much what I am looking for. But I can't find the Knighty Collection in Fragmentarium 0.8. Where did you get the examples from?

Regards
Gabo


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 09, 2011, 08:29:27 PM
ok, I found them, but it says:

Camera: Use W/S to fly. 1/3 adjusts speed. Q/E rolls. Click on 3D window for key focus. See Help Menu for more.
Could not find :CR
Could not find :CG
Could not find :CB
Could not find :CR
Could not find :CG
Could not find :CB
Could not find :CR
Could not find :CG
Could not find :CB

and it does not generate an image, any idea?

Thank You


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 09, 2011, 09:07:21 PM
ok, I found all the necessary includes  :embarrass:, I think... but now it says :

Parse: D:/Eigene Dateien/Downloads/Fragmentarium/Heightmap_GOR.frag
Including file: D:/Eigene Dateien/Downloads/Fragmentarium/Examples/Include/DE-Raytracer.frag
Including file: D:/Eigene Dateien/Downloads/Fragmentarium/Examples/Include/MathUtils.frag
Mandelbrot set 2.5D
Default Raytracer (by Syntopia)
Changing camera control to: 3D
Camera: Use W/S to fly. 1/3 adjusts speed. Q/E rolls. Click on 3D window for key focus. See Help Menu for more.
Found 'default' index. Executing...
Could not find: CamLightMin2
Could not find: GlowMax
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles
Copied 1 lines to clipboard
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles
Could not find :X
Could not find :Y
Could not find :Z
Could not find :R
Could not find :CycleColors
Could not find :Cycles


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: Syntopia on October 09, 2011, 09:37:52 PM
Hi,

You shouldn't need any files. The ones that are part of Fragmentarium 0.8 should do. I just tested with a v0.8 version and it seems to work.

What happens if you copy and paste the file from GitHub:
https://raw.github.com/Syntopia/Fragmentarium/master/Fragmentarium-Source/Examples/Knighty%20Collection/MandelbrotHeightfield.frag

into a window, and press the 'Build' button? Also try to click the 'Apply' button (next to the 'Preset: Default') to get some proper settings.

You can ignore the warnings about unused parameters. This is because the script uses some features which are not part of 0.8.


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: knighty on October 09, 2011, 09:42:22 PM
works here with 0.8 version.
What is : D:/Eigene Dateien/Downloads/Fragmentarium/Heightmap_GOR.frag ?


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: gabo11 on October 09, 2011, 10:04:38 PM
ok, works now..
but I don't get the heightmap, something seems to be wrong with the presets.

D:/Eigene Dateien/Downloads/Fragmentarium/Heightmap_GOR.frag is the MandelbrotHeightfield.frag


Title: Re: realtime-2dheihtmap-landscape-flyby-with-deeep-zooming
Post by: Syntopia on October 09, 2011, 10:27:00 PM
Are you sure you are using the right script? (The link above). I don't think there is a 'spacing' variable in it?

Also be sure to set the 'render mode' to automatic.

Does the Mandelbulb render correctly when starting the program?