mini scene renderer using Ray Tracing.
Using pack file, without options
minirt < myScene.pack > result.bmp
Using options
minirt --input="myScene.rt" --base=".." --output="result.bmp"
Use the --help
option to see how to use individual executables.
Supported platforms are POSIX-like systems (such as Linux, macOS) and Windows
# optional
sh metamake.sh
# build
make MINIRT_PRECISION=1
If above fails (because your environment has fake gcc/clang), try below
echo "CC = cc" > common.mk
USE_DEPS=0 make
Building on Windows requires CMake and a suitable build system.
# create CMakeLists.txt
metacmake
# for example
cmake -B builddir -G "Visual Studio 17 2022" -DMINIRT_PRECISION="double"
# build
cmake --build builddir
Testing is available if GNU Make and AddressSanitizer is available.
sh metamake.sh
V=1 gmake test -s
# or `make` instead of `gmake`