|Home | People | Curriculum | Projects | Resources | Media|
Friday, December 5
Ray Tracer for a Sphere
This project extends work from the previous lab assignment, and should not be started until the previous one is completed successfully (see instructor a more precise definition of "successfully").
Design and implement a simple ray tracer application to render a sphere using the Phong illumination model and the algorithms presented in class. You should only need OpenGL call to render a pixel in a color, and the ray tracer should determine the RGB components of that color. Please consider the following build path:
matrixclasses in the cs212 include directory at the path
/Network/Servers/moe.cs.haverford.edu/Users/jd/courses/212/include/or design and implement your own classes -- you will need solid classes with reliable methods.
The general format of the
universe.ent file is (again) given here:
camera //string e.x e.y e.z l.x l.y l.z //9 doubles up.x up.y up.z projection type //string(parallel || perspective || frustum) //if parallel: xmin xmax ymin ymax //6 doubles zmin zmax //if projection: width height //3 doubles distance from camera //if frustum xmin xmax ymin ymax //3 doubles zmin zmax num of objects //int for each object, a filename (.ent)
Grade Candy: to be considered only after completing the basic assignment above ...
Again, please submit either a file or a folder into the cs212 dropbox using the name convention
Links for CS212 -- Other CS212 Assignments: 0 1 2 3 4 5 6 7