Chapter 13. Advanced Searching

[ LiB ]

Chapter 13. Advanced Searching

Now that you understand the photon-mapping algorithm, you need to find ways to improve its efficiencyto optimize it. Currently, you're using an array to store photons . Arrays, however, are poor candidates for indexing data. In the photon-contribution method, traversing through an array to find the nearest photons around the point of intersection is a very slow task. This is because you need to begin searching the first element of the array and move forward. Sometimes, however, the relevant photons in the photon map are located at the end of the array, so moving through each unimportant ele-ment is really a waste of time. This chapter therefore focuses on a better method for retrieving photons when finding the radiance estimate.

[ 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