Skip to content

jmaing42/miniRT

Repository files navigation

miniRT

mini scene renderer using Ray Tracing.

Usage

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.

Build

Supported platforms are POSIX-like systems (such as Linux, macOS) and Windows

POSIX-like systems

# 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

Windows

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

Test

Testing is available if GNU Make and AddressSanitizer is available.

sh metamake.sh
V=1 gmake test -s
# or `make` instead of `gmake`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published