https://github.com/kraglik/pyfractalexplorer
https://github.com/kraglik/pyfractalexplorer
fractals gpgpu mandelbox mandelbulb opencl pyopencl python raytracing
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kraglik/pyfractalexplorer
- Owner: kraglik
- Created: 2019-03-26T11:24:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T22:41:51.000Z (over 2 years ago)
- Last Synced: 2025-02-14T12:16:12.853Z (over 1 year ago)
- Topics: fractals, gpgpu, mandelbox, mandelbulb, opencl, pyopencl, python, raytracing
- Language: Python
- Size: 5.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyFractalExplorer (now with ray-tracing)
## Examples
Static fractals (YouTube):
[](https://www.youtube.com/watch?v=rY8E3OwOmJo)
Animated fractals (YouTube):
[](https://www.youtube.com/watch?v=jOQ5DM4bYTk)
Ray-traced Mandelbox fractal:


## Controls:
W - forward
A - left
S - back
D - right
Space - up
Left CTRL - down
Q - push current speed to stack
E - restore speed from stack
Mouse - look
Mouse wheel up - increase zoom
Mouse wheel down - decrease zoom
Mouse wheel - set zoom to 1.0
left arrow - increase accuracy (lower epsilon, more details)
right arrow - decrease accuracy
up arrow - increase movement speed
down arrow - decrease movement speed
PageUp / PageDown - change fractal
LESS ( < ) / GREATER ( > ) - increase or decrease amplitude
T - enable time dependency (cos(time) * amplitude)
P - take screenshot
= / - to increase / decrease raymarcher iteration limit (regulates quality)
Esc - exit
## Available fractals
1. Mandelbox
2. Mandelbulb
3. Sierpinski Triangle
4. Menger Sponge
## System requirements
OpenCL must be installed on your machine.
Windows: https://streamhpc.com/blog/2015-03-16/how-to-install-opencl-on-windows/
Linux: https://gist.github.com/Brainiarc7/dc80b023af5b4e0d02b33923de7ba1ed
## Installation
git clone https://github.com/kraglik/pyfractalexplorer.git
cd pyfractalexplorer
python3 -m venv ./venv
source venv/bin/activate
pip install -r requirements.txt
## Running
source venv/bin/activate
python main.py