Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonlydike/raymarcher.c
A raymarching engine written in C
https://github.com/antonlydike/raymarcher.c
fractals mandelbulb raymarching rendering
Last synced: about 1 month ago
JSON representation
A raymarching engine written in C
- Host: GitHub
- URL: https://github.com/antonlydike/raymarcher.c
- Owner: AntonLydike
- Created: 2020-04-30T12:36:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T05:16:19.000Z (over 4 years ago)
- Last Synced: 2024-11-06T13:00:50.482Z (3 months ago)
- Topics: fractals, mandelbulb, raymarching, rendering
- Language: C
- Homepage: https://renders.datenvorr.at
- Size: 13.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raymarching in C
Visit the website at [renders.datenvorr.at](https://renders.datenvorr.at)
![infinite spheres](renders/mandelbulb-pow3.png)
## Compiling:
```bash
# load dev environment (for nixos. this loads just gcc and gdb)
nix-shell
# run gcc with flags
gcc -lm -Wall -Wextra -o march.out main.c
```## Running
give it the number of threads you want to use
```bash
./march.out
```## Animating the power
Make sure you compiled a version of the program wich takes the power as first arg and target file name as second arg. I would suggest you hardcode the number of threads to use and set up a suitable camera location manually.
Then edit the parameters in the animate script (it's a fish script, just beware of that) and run it. Depending on your parameters this might take a loooong time to complete. The animate script will not show output of each individual render, but instread display a little progress meter showing the percent of frames complete, the starting power, current power, and the power we want to reach.