Welcome to Fractal Forums

Fractal Software => Programming => Topic started by: flexiverse on April 08, 2013, 05:20:12 PM




Title: Mandelbulb3d source code?
Post by: flexiverse on April 08, 2013, 05:20:12 PM
I was wondering what programming language mandel bulb 3d was programmed in?

Just looking for some example code to learn from.

I thought maybe like. Quake/doom style. V1 may be releases as source?

Or even a basic version with gui input to wrap my head around?

I can't seem to find a tutorial that explains to newbies how to program a mandelbulb/box etc..
Everyone I've found assumes a mass of knowledge!



Title: Re: Mandelbulb3d source code?
Post by: eiffie on April 09, 2013, 05:46:52 PM
I mentioned it in your other thread but I think it bears repeating. You can find the code to Mandelbulber (another nice CPU based 3d fractal app) on sourceforge.


Title: Re: Mandelbulb3d source code?
Post by: cKleinhuis on April 09, 2013, 05:58:36 PM
hi again, so, the mandelbox is very nice described on tom lowes page:
https://sites.google.com/site/mandelbox/what-is-a-mandelbox

the mandelbox is in my eyes even easier to program because you do not have to know anything about the complex multiplication, all the functions that make up the object are easy to implement, and as it is written in the mandelbox page:

"Like the Mandelbrot set a Mandelbox is calculated by applying a formula repeatedly to every point in space. That point v is part of a Mandelbox if it does not escape to infinity. 
In fact it replaces the Mandelbrot equation z = z2 + c with:   v = s*ballFold(r, f*boxFold(v)) + c"

so, to wrap your head around it, get your mandelbrot code and exchange to formula, to achieve a 2d version of the mandelbox

 O0


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 09, 2013, 06:53:46 PM
Still non the wiser what language / IDE   Mandelbulb 3d. Is programmed in!

Is it a secret ? 


Title: Re: Mandelbulb3d source code?
Post by: cKleinhuis on April 09, 2013, 07:32:07 PM
mandelbulb 3d is closed source and is programmed using the pascal object dialect "Delphi"


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 09, 2013, 08:09:00 PM
mandelbulb 3d is closed source and is programmed using the pascal object dialect "Delphi"

hmmm wonder why delphi?

This must be a cool environment to learn 3D Fractals.

Is there any code around anyone know  that does 3D Fractals in Delphi?


Title: Re: Mandelbulb3d source code?
Post by: cKleinhuis on April 09, 2013, 08:30:59 PM
no, delphi is - in my eyes - an outdated abstraction layer forced to live on by borland after the ms-dos turbo pascal, i was using it as well, but in my eyes the language of choice nowadays is c# ... so, as before, you seem to lack fundamental knowledge, and again: stick to your already present 2d renderer and hack the mandelbox straight into it, with
the parameters it is fun to play with even in 2d

for the whole gpu stuff, the website with the gpu glsl webgl implementation contains all you need, a raymarcher and the formula, obviously including a distance estimator, the distance estimator is in my eyes what makes the formula utterly hard to understand and utterly hard to play around or change it ....


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 10, 2013, 05:51:09 PM
thinking about it.

apophysis   is programmed in delphi and the interface looks just like mandelbulb 3d.

I guess the programmer used  apophysis source code  / gui as a basis to build mandelbulb.

From my programming history  I recall borland compilers  were the best and fastest.

Not sure what happened to borland since the good old days, but their libraries made life
a lot easier  in developing windows programs for sure.

would like to see more modern platforms used  like  D  and Python.

but I guess  it's all painful having to construct your own GUIs, it certainly was easier in the borland days.

Now for longevity you've got to use something like QT  gui which is a painful learning curve.

I think these days you've got to be cross platform. 

The coolest interface I've ever seen is for  mojoworld   which works in  mac and pc.

It was written in  Wx Widgets  - but looks like it had custom widgets.

So I guess the old borland ways are still the fastest and pain free to get things done !



Title: Re: Mandelbulb3d source code?
Post by: David Makin on April 12, 2013, 11:54:31 AM
thinking about it.

apophysis   is programmed in delphi and the interface looks just like mandelbulb 3d.

I guess the programmer used  apophysis source code  / gui as a basis to build mandelbulb.

From my programming history  I recall borland compilers  were the best and fastest.

Not sure what happened to borland since the good old days, but their libraries made life
a lot easier  in developing windows programs for sure.

would like to see more modern platforms used  like  D  and Python.

but I guess  it's all painful having to construct your own GUIs, it certainly was easier in the borland days.

Now for longevity you've got to use something like QT  gui which is a painful learning curve.

I think these days you've got to be cross platform. 

The coolest interface I've ever seen is for  mojoworld   which works in  mac and pc.

It was written in  Wx Widgets  - but looks like it had custom widgets.

So I guess the old borland ways are still the fastest and pain free to get things done !



Nah - screw Windoze, just write everything in Xcode, it's a breeze compared to any other dev software.


Title: Re: Mandelbulb3d source code?
Post by: Jesse on April 12, 2013, 07:53:40 PM
apophysis   is programmed in delphi and the interface looks just like mandelbulb 3d.

I guess the programmer used  apophysis source code  / gui as a basis to build mandelbulb.


Lol, it would make absolute no sense to use another GUI, since the GUI is the easiest to do in Delphi (not borland anymore).
Filling the GUI with functionality is the still the biggest part in a project, i just robbed the ideas from the great people here in the forum and investigated much time and work to make a useful program out of it.

If i would start a new project nowadays, Delphi would not be my first choice, like others already said....


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 13, 2013, 04:51:28 PM

If i would start a new project nowadays, Delphi would not be my first choice, like others already said....

Interesting what would you use ?

Free pascal actually looks good!

Wxwidgets?  Qt?    C++?  D?


Personally I like D for fast code, otherwise python.

You can compile python into c  so for productivity  python has to be the way to go!

Rather than java or C#.




Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 13, 2013, 04:52:29 PM
Nah - screw Windoze, just write everything in Xcode, it's a breeze compared to any other dev software.

Yeah but how do you convert the program to run in windows and Linux ?


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on April 13, 2013, 05:58:31 PM
Yeah but how do you convert the program to run in windows and Linux ?

This?


JUCE (Jules' Utility Class Extensions) is an all-encompassing C++ class library for developing cross-platform software.


http://www.rawmaterialsoftware.com/juce.php


Title: Re: Mandelbulb3d source code?
Post by: flexiverse on March 25, 2015, 12:50:36 AM
Is the source going to be released in order to keep it going if development as stopped ?


Title: Re: Mandelbulb3d source code?
Post by: DarkBeam on April 14, 2015, 11:39:52 AM
Solved!
http://www.fractalforums.com/mandelbulb-3d/mandelbulb3d-source-code-t21204/