Ray Tracing, Version 3.0
| Goal: Ray trace a scene where
|
Directory:
Ray Tracing Tools:
Vector operator - (Point secondPoint);
Vector multiplyByMatrixTranspose(Matrix_4x4
M); // which returns the product of the transpose
of M postmultiplied by this vectpr Vector operator + (GLdoubleVector other);// which returns the sum of this vector and other vector
class Light
{
public://methods:
Constructor, which initializes values//data:
Color3 ambient, diffuse, specular;
Point pos; //position of light}
class Material
{
public://methods:
Constructor, which initializes values
void set(Material source);//data:
Color3 ambient, diffuse, specular, emissive;
float specularExponent;}
/classes/cs3114/RayTracing/Projects/Scenes/lighted_sphere.scn
for example of how this will be done.Test File:
/classes/cs3114/RayTracing/Projects/Scenes/lighted_sphere.scnis a good one to test. It only has one generic sphere and one light. The rendered scene is in Blackboard->Gallery
Working Directory:
Make a subdirectory v3.0 in your Working Directory. When you have version 3.0 working correctly, copy all files pertaining to it, including the makefile, to that directory and don't touch it!
Submit:
|