Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => Mandelbulb Implementation => Topic started by: Snakehand on December 17, 2009, 12:50:15 PM




Title: SDL / C++ application for exploring mandelbulb slices
Post by: Snakehand on December 17, 2009, 12:50:15 PM
I hereby make the following code available for tinkering with:

http://traxme.net/fractal/2d-slices-bulb.tar.gz (http://traxme.net/fractal/2d-slices-bulb.tar.gz)

It is a small SDL application that compiles on Linux, but should be easy to compile on Windows / Mac. It allows the user to interactively explore slices of the order 8 mandelbulb.

Controls are: Up/down/left/right - pan
Page up / page down - zoom
asdf / zxcv move the plane up / down at varying intervals.



Title: Re: SDL / C++ application for exploring mandelbulb slices
Post by: TimGolden on December 17, 2009, 03:40:08 PM
I tried out your code.
So nice and light and simple!

For a beginner you may need to make some mods to get started.
I modified the Makefile to:

#BROOK_INC=/usr/local/atibrook/sdk/include
#BROOK_LIB_PATH=/usr/local/atibrook/sdk/lib/

all: bulber

#Bulber.o: Bulber.cpp
#   gcc -O2 -mtune=athlon-4 -c Bulber.cpp -I $(BROOK_INC)
Bulber.o: Bulber.cpp
   gcc -O2 -c Bulber.cpp

SdlMain.o: SdlMain.cpp
   gcc -c SdlMain.cpp \
   `sdl-config --cflags --libs`

bulber: Bulber.o SdlMain.o
   g++ -o bulber Bulber.o SdlMain.o -ldl `sdl-config --cflags --libs`

clean:
   rm bulber Bulber.o SdlMain.o

<End of Makefile>
which I put here in case a beginner comes along and doesn't know about Makefiles.
Also I needed to add the sdl development files for SDL.h, but that is standard stuff.
There is also a file named bulb.o in the original Makefile which is a bug.

Nice Work Snakehand! This is the lightest graphical interface that I've ever seen.
Sweet Simplicity.

 - Tim


Title: Re: SDL / C++ application for exploring mandelbulb slices
Post by: Snakehand on December 17, 2009, 04:01:19 PM
...
which I put here in case a beginner comes along and doesn't know about Makefiles.
Also I needed to add the sdl development files for SDL.h, but that is standard stuff.
There is also a file named bulb.o in the original Makefile which is a bug.

Nice Work Snakehand! This is the lightest graphical interface that I've ever seen.
Sweet Simplicity.

 - Tim


Thanks, I updated the Makefile & tar archive with your fixes.