You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Anton Lydike a508cab2bc add openacc compatible version 2 years ago
.idea cleaned up a lot of code, but sadly no real speed up yet. Plan on debugging and fine-tuning later tho 3 years ago
images@f503f1835f updated images version 3 years ago
renders added logo, fixed naming in main 5 years ago
src add openacc compatible version 2 years ago
.gitignore refactored most of the code 3 years ago
.gitmodules fixed git module 4 years ago
Makefile add openacc compatible version 2 years ago
README.md added animate script, clarified nixos usage in readme 5 years ago
animate added animate script, clarified nixos usage in readme 5 years ago
bench.c cleaned up a lot of code, but sadly no real speed up yet. Plan on debugging and fine-tuning later tho 3 years ago
default.nix removed gtk dependency 5 years ago
gpu.c add openacc compatible version 2 years ago
marcher.c cleaned up a lot of code, but sadly no real speed up yet. Plan on debugging and fine-tuning later tho 3 years ago

README.md

Raymarching in C

Visit the website at renders.datenvorr.at

infinite spheres

Compiling:

# 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

./march.out <power> <file name>

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.