Checkpoint 1
Setting the Scene
This is just a basic setup in OpenGL with some basic geometry to get the coordinates of objects in the scene in preparation for the real ray tracing.
Spheres:
- Both are unit spheres.
- The front orange sphere has been translated from the origin to (0.2, 0.5, 1.5)
- The back pink sphere has been translated from the origin to (-1.35,-0.3, -0.3)
Floor:
- The was a unit cube scaled out to (6.0, 0.5, 13.0)
- The floor was translated down from the origin to (-0.15, -3.0, 0.0)
Light:
- The light has ambience, diffuse, specular highlights, and shininess turned on so the spheres look somewhat realistic and somewhat bright. All of the objects also have similar material properties.
- The light position is (0.5, 4.0, 5.0)
Camera:
- Eyepoint: (0.0, 0.0, 5.0)
- Center: (0.0, 0.0, 0.0)
- Up: (0.0, 1.0, 0.0)

Comments are closed.