https://github.com/icelk/fractal-renderer
https://github.com/icelk/fractal-renderer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icelk/fractal-renderer
- Owner: Icelk
- License: apache-2.0
- Created: 2022-01-25T13:28:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T13:21:34.000Z (about 4 years ago)
- Last Synced: 2025-08-18T19:30:00.447Z (10 months ago)
- Language: Rust
- Size: 827 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Fractal renderer
This was a fun but brief project I worked on.
Most of the functionallity is implemented.
If you have any ideas regarding colouring and general performance, please reach out.
I'd also ultimately like to render this on the GPU.
Rendering the Mandelbrot set at 1,000,000x zoom.

It took my shitty laptop ~1 second to render the 3000x3000 image above. And that's on the CPU!
# Installation
You have to have NASM installed to build the image compression library.
In the future, I'll make the feature optional and enable you to use other image formats instead.
## Using the GPU feature
> Currently does not work.
> The progress is stalled due to precision issues. ([FP](http://www.bealto.com/mp-mandelbrot_intro.html) is a possible solution?)
> Check out the [gpu](https://github.com/Icelk/fractal-renderer/tree/gpu) branch.
This renders the fractals on the GPU.
```bash
$ rustup install nightly-2022-01-13
$ rustup update
$ rustup component add --toolchain nightly-2022-01-13 rust-src rustc-dev llvm-tools-preview
```
Run using the following
```bash
$ cargo +nighly-2022-01-13 r --feaures gpu
```
# Examples
To give arguments to this binary when using `cargo run --release`, add them after two hyphens: `cargo r --release -- `.
Look at [the examples MD doc](examples.md).
# Contribution
This project is dual-licensed under Apache 2.0 or MIT.
All contributions are assumed to also be.