Wednesday, December 9, 2009

Scene Setup













The first step in this whole thing is to get the scene ready. We use the plane and two spheres. For this little test I actually used a thin box for the floor, but a plane can be substituted during raytracing easily.

The material is a simple per-vertex lambertian and I enabled simple stencil shadows just because it was 2 extra lines of code.

The scene:
  • Ball1 = 2 units, (1, 2, -5)
  • Ball2 = 2 units (-0.5, 1.6, -7)
  • Light = (-5, 5, 0)
  • Floor = 10x1x20, (0, 0, -5)

No comments:

Post a Comment