Awesome
trinity
Simple raytracer in C++11 for the FMI raytracing course. The course site is http://raytracing-bg.net/
How to set it up on your machine
-
Copy the appropriate for your OS trinity-{win32,linux}.cbp to trinity.cbp This step is important to avoid source-control thinking that you modified the project file
-
If you're using Windows:
-
Download the SDL-devel package for mingw32 from libsdl.org (Download > SDL 1.2)
-
Unpack it anywhere (mine is in F:\develop\SDK\SDL-1.2.15) and create a substitution using subst:
subst L: F:\develop\SDK
This will create a virtual drive L:, pointing to your F:\develop\SDK. Of course, on your machine the latter path can be different.
-
Copy SDL-1.2.15\bin\SDL.dll in the root directory of the raytracer (i.e., where the *.cbp files are).
-
Download the OpenEXR libraries for Windows from raytracing-bg.net/lib/openexr-devel-trinity.zip
-
Unpack it in the SDK drive (copy to L:, and right click -> "Extract Here...") This will create a directory "L:\OpenEXR-mingw"
-
Copy trinity-win32.cbp to trinity.cbp and open it. You're all set.
-
-
If you're using Linux:
- Ensure you installed the gcc compiler, the SDL-development package and the OpenEXR development package ("SDL-devel" and "OpenEXR-devel" on Fedora-based distros, "libsdl-dev" and "libopenexr-dev" on Ubuntu et al).
- Copy trinity-linux.cbp to trinity.cbp and open it. You're all set.