Simulating Specular Reflections

[ LiB ]

Simulating Specular Reflections

Specular energy reflected in the opposite direction shouldn't be simulated using photon mapping. Remember, a large number of photons are required to reflect a mirror image. It's therefore better to use ray tracing to create mirror reflections. This is done at the time of the rendering process when a new ray is traced in the mirror direction using backward ray tracing. The mirror reflection code used in ray tracing is added to the photon contribution method to combine the lighting effects (ray tracing and photon mapping effects) into one solution. Figure 14.8 shows an example of diffuse interaction done with photon mapping and mirror reflection done with ray tracing.

Figure 14.8. Ray tracing (mirror reflection) and pho- ton mapping (diffuse inter action).

graphic/14fig08.gif


[ LiB ]


Focus On Photon Mapping
Focus On Photon Mapping (Premier Press Game Development)
ISBN: 1592000088
EAN: 2147483647
Year: 2005
Pages: 128
Authors: Marlon John

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net