Skip to content

A program written in C++ and GLSL that can render the Mandelbrot Fractal using OpenGL.

License

Notifications You must be signed in to change notification settings

Vitaspiros/mandelbrotViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot Viewer

A simple program written in C++ and OpenGL that renders the Mandelbrot Fractal. This is a rewrite of the older and slower mandelbrotVisualizer, which is written in Java.

Configuration

You can now pass in a custom number of iterations by using the -i flag:

./main.out -i 1000 # or --iterations

The default is 500 iterations.

Features

  • Render the fractal with colors
  • Pan, zoom in and out

Compiling and Running

make
./main.out

Required dependencies: glfw3

Double and single precision

I recently made a change that uses double precision instead of single precision. While this enables you to zoom further into the fractal, it causes the program to be slower. If you want to regain the performance, and you don't care about the zoom level, you can apply the patch in the patches directory using:

git apply patches/float.patch

Screenshots

Screenshot of program when it starts up Screenshot of zoomed in Mandelbrot fractal Screenshot of zoomed in Mandelbrot fractal Screenshot of zoomed in Mandelbrot fractal

About

A program written in C++ and GLSL that can render the Mandelbrot Fractal using OpenGL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages