Tuesday, December 9, 2008

Raytracer Checkpoint 1: Scene Layout


I designed a scene layout to match Whitted's original rendering. This image was simply drawn with OpenGL to get the general geometry of the scene. The spheres are near each other but not quite touching.
The settings are as follows:

Foreground sphere: at [0,0,-2.6] radius = 1.0
Background sphere: at [-1.2,-1.0,-3.7] radius = 0.9


Floor plane corners:
  • (-8,-2,0)
  • (2.7,-2,0)
  • (2.7,-2,-15)
  • (-8,-2,-15)

Light source
  • Location: (2.0, 5.0, 0.0)
  • Diffuse: (0.7, 0.7, 0.7)
  • Ambient: (0.4, 0.4, 0.4)

Camera
  • Position: (0,0,1)
  • Lookat: (0,0,0)
  • Up: (0,1,0)
  • Field of view = 60.0 degrees
  • Aspect ratio = 1.3 (640/480)

No comments: