Skip to content
/ GI Public

Simple ray tracer from a Global Illumination course; also included is a renderman scene

Notifications You must be signed in to change notification settings

4LT/GI

Repository files navigation

-Ray Tracer-
Seth Rader

Setup

1. Install required packages.

SDL 2:
 Mac OSX: Obtain development libraries from http://libsdl.org/download-2.0.php
 Ubuntu: install package "libsdl2-dev"
 Arch: install package "sdl2"

2. Building
 Requires gcc or clang, run "make". Run "make OPMZ=1" for local architecture
 optimizations.

3. Running
 Run "./rayt" for main raytracer
     "./ply2tri" to draw stanford bunny at lowest resolution
     "./ply2tri <filename> [usetree [<redundancy limit>]]" to draw a ply file.
        If "usetree" is included, use KD tree optimization.  The redundancy 
        limit determines the maximum number of shapes that can straddle a 
        division between KD nodes before being placed in a leaf node.

External Sources

rply - ply format parser
info provided in rply-1.1.4/LICENSE

About

Simple ray tracer from a Global Illumination course; also included is a renderman scene

Resources

Stars

Watchers

Forks

Packages

No packages published