To my surprise, this books already proposes a similar method, using a photon map with "Shadow Photons" to reduce the number of shadow rays in a scéne. The description of their method is presented in the paper Efficiently rendering shadows using the photon map also by Henrik Wann Jensen.
Similar to my method they trace photons from the light source, which are only stored after a first intersection. These photons are the "Shadow Photons". In the paper they also trace the regular photons called "Illumination Photons" (see figure 1)
Figure 1: Shadow photon creation. Courtesy: Henrik Wann Jensen, "Efficiently Rendering Shadow Using the Photon Map", 1995 |
- there are only shadow photons: no shadow rays have to be traced since the point is completely in shadow
- there are only illumination photons: no shadow rays have to be traced since the point is completely illuminated
- there is a mix of shadow and illumination photons: shadow rays have to be traced.
Jensen also proposes to estimate the visibility vi as ni / (ni+ns) where ni is the number of illumination photons and s is the number of shadow photons. However, this requires a great number of photons.
The results from the paper indicate an average reduction in the number of shadow rays of 90%.
The results from the paper indicate an average reduction in the number of shadow rays of 90%.
No comments:
Post a Comment