Skip to content

jon-grangien/OpenGL-mandelbulb-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbulb renderer

Render the mandelbulb fractal patterns interactively, with PostFX.

full screenshot

Usage

Usage: ./mandelbulb -c
Options:
	-h,--help		Show this message
	-w,--weak 		Lower settings for weak computer i.e. shitty Intel HD graphics laptop
	-c,--coordinates 	Log coordinates in console every frame 

Controls:
	Q 	Quit the program
	L 	Reload shaders
	WASD 	Movement around center
	Z 	Zoom in
	X 	Zoom out
	R 	Reset position

Tick the "FREE MODE" box to enter free roaming mode, where wasd changes view direction relative to position.

Environment

Built for Linux and tested on Arch Linux. Mac support limitedly implemented. Windows support not implemented.

Dependencies and installing

  • OpenGL 3.3+ (GLSL 330)
  • GLFW (included submodule)
  • GLEW
  • GLM
  • imgui (included submodule)

To get the applied versions of GLFW and imgui, clone this repository recursively

git clone [email protected]:codingInSpace/OpenGL-mandelbulb-explorer.git --recursive

GLFW needs to be built for the hardware:

cd ext/glfw
cmake .
make

If you didn't clone the repo recursively you can get the submodules like this:

git submodule update --init --recursive

Running

cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
./mandelbulb

Or use CLion with working directory as build folder (run configurations, edit, set working directory)

License

MIT