Cuda accelerated fractal rendering.
The viewer is an interactive GUI fractal renderer.
The viewer uses PyTorch cuda vector code to render fractals efficiently with only python.
cd ./viewer
python main.py --alg mandel
python main.py --alg buddha
python main.py --alg nebulaThis uses native C and Cuda code to render fractals. It is designed to export high quality images, but also includes a live viewer for the mandelbrot.
This is faster than the viewer, but is harder to use.
This is the first version of this project, which can still be found on the old
branch.
Realtime visualization of the mandelbrot set.
cd ./render/mandelbrot
# If you have a CUDA gpu
make cuda
# or use cpu
make cpu
# generate image
python main.py image --width 4096 --height 4096
# use pygame interactively
python main.py live --width 1280 --height 720
# change kernels
python main.py --kernel cpuOptions to main.py:
mode:imageorlive.--kernel:cpuorcudato set computing kernel. GPU is usually faster.--width: Width of viewing window or generated image.--height: Height--max-iters: Max iters to simulate function. More iters is slower but more accurate.
Render the buddhabrot or nebulabrot.
cd ./render/buddhabrot
make cpu
# generate buddhabrot
# Args are [iters] [samples]
./a.out 1000 10000000
python convert.py out.img buddhabrot.png
# generate nebulabrot
# calls a.out, convert.py, nebula.py many times and compiles the final image.
./nebula.shHyprland themed render of Mandelbrot and Buddhabrot.




