November 2009
1 post
Ray Tracing
Intersecting With the Objects in Your Scene
The first and simplest step in a ray tracer is simply finding the objects in your scene and showing them on the screen. For each pixel in your image, you have to send out a ray from the “eye” (the position of the virtual camera) through that pixel in order to determine what object, if any, it intersects with. If the ray hits multiple...