Computer Graphics, Spring 2013

Ray Tracing Examples


Ray-Primitive + Ray-Scene Intersection

sphere
Intersect with a sphere
raypro sphere0.scn sphere0.jpg
box
Intersect with an axis-aligned box
raypro cube.scn box0.jpg
teapot
Intersect with a triangle mesh
raypro teapot.scn teapot0.jpg
cylinder
Intersect with an axis-aligned cylinder
raypro cylinder.scn cyl0.jpg
cone
Intersect with an axis-aligned cone
raypro cone.scn cone0.jpg
scene
Intersect with a scene
raypro transform.scn transform0.jpg

Lighting

materials
Phong Illumination

raypro materials.scn materials.jpg

Texture Mapping

texture
Texture Mapping (texture image)

raypro checker-sphere.scn texture.jpg

Shadows

shadow
Shadow Rays

raypro forShadow.scn shadow.jpg
area
Area Lights & Soft Shadows

raypro area.scn area.jpg

Global Illuminations

reflect
Specular Reflection (1 ray per pixel)

raypro dinopet_reflect.scn reflect.jpg
transmission
Transmission & Refraction

raypro transmission.scn transmission.jpg

Camera Effects

Camera Antialiasing
s1
raypro teapot.scn s1.jpg -samples 1
s8
raypro teapot.scn s8.jpg -samples 8
s24
raypro teapot.scn s64.jpg -samples 24
Motion Blur
motionblur
-motion 0.2 0.2 0.2
Reconstruction Filters
box
-width 320 -height 240 -samples 4 -filter 0
gauss
-width 320 -height 240 -samples 4 -filter 1

The reconstruction effect is somewhat subtle, but notice that the Box reconstruction (left) is slightly sharper than the Gaussian reconstruction (right) due to the shape of the filters.


Debugging

sphere
Intersect with a sphere

rayview sphere.scn sphere.jpg
box
Intersect with an axis-aligned box

rayview cube.scn cube.jpg
teapot
Intersect with a triangle mesh

rayview teapot.scn teapot.jpg
cylinder
Intersect with an axis-aligned cylinder
rayview cylinder.scn cylinder.jpg
cone
Intersect with an axis-aligned cone
rayview cone.scn cone.jpg
scene
Intersect with a scene
rayview transform.scn scene.jpg