accurate benchmark. Thus, we compare the execu-
tion time obtained by a basic implementation of the
photon mapping with and without our improvements
in some preliminary tests. Both implementations use
GPU and the NVIDIA CUDA framework. Table 1
shows the execution time of the two main steps of the
photon mapping: the KNN algorithm and the integra-
tion of the illumination.
Table 1: Execution time in milliseconds for a scene with
100.000 triangles and 4.000.000 photons. Resolution 500 x
500.
Method KNN Integration Total
Photon mapping 150 140 230
Triangle-based pho-
ton mapping
14 140 154
As shown in figure 1, our method significantly de-
creases the execution time of the KNN algorithm. For
all the process, the improvement is estimated to be
around 40%. There are several reasons for this. First,
the photon maps are smaller with our method: an av-
erage of just 40 photons, with a maximum of 300 for
one map. Another reason is the use of a 2D uniform
grid instead of a 3D KD tree. With our method, the
execution time is not directly dependent on the num-
ber of photons, but on the ratio of the photons to the
number of triangles in the scene.
3 CONCLUSIONS
We have shown in this paper that a subdivision of the
photon map decreases significantly the execution time
of the rendering step. This approach modifies the pho-
ton map structure, changing the mode into two dimen-
sions and decreasing the number of photons.
This new approach provides a result close to real
time rendering for walkthrough. This method ren-
ders images with good accuracy simulating a large
part of the light paths, including the last reflection
on a glossy surface. The end users of this simulation
can also interactively modify the power of the light
sources. These features allow lighting simulation for
production pipelines. We are currently implementing
the method of the triangle-based photon mapping in a
real industrial setting.
ACKNOWLEDGEMENTS
This work was carried out for the VIRTUART project
which is funded by the DGSIS and the PACA region
and has been labeled by the PEGASE cluster.
REFERENCES
Bunnell, M. (2005). Dynamic ambient occlusion and
indirect lighting in GPU Gems 2, pages 223–233.
Addison-Wesley.
Christensen, P., Stollnitz, E., Salesin, D., and Derose, T.
(1996). Global illumination of glossy environments
using wavelets and importance. ACM Trans. Graph.,
15(1):37–71.
Cook, R., Porter, T., and Carpenter, L. (1984). Dis-
tributed ray tracing. Computer Graphics (Proc. SIG-
GRAPH’84), 18:135–45.
Eberly, D. H. (2007). 3D Game Engine Design: A Practical
Approach to Real-Time Computer Graphicsesign: a
practical approach to real-time computer graphics -
2nd edition. ISBN 0122290631. Morgan Kaufmann.
Goral, C., Torrance, K., Greenberg, D., and Battaile, B.
(1984). Modeling the interaction of light between dif-
fuse surfaces. Computer Graphics, 18(3):213–222.
Granier, X., Drettakis, G., and Walter, B. (2000). Fast
global illumination including specular effects. In
Peroche, B. and Rushmeier, H., editors, Rendering
Techniques 2000 (Proceedings of the Eleventh Euro-
graphics Workshop on Rendering), pages 47–59. Eu-
rographics, Springer Wien.
Jensen, H. (1996). Global illumination using photon maps.
Eurographics Rendering Workshop, pages 21–30.
Jensen, H. W. (2001). Realistic Image Synthesis Using Pho-
ton Mapping. A.K. Peters.
Kajiya, J. T. (1986). The rendering equation. Com-
puter Graphics (ACM SIGGRAPH ’86 Proceedings),
20:143–150.
Lai, Y., Fan, S., Chenney, S., and Dyer, C. (2007). Photo-
realistic image rendering with population monte carlo
energy redistribution. EGSR ’07, pages 287–296.
Larsen, B. D. and Christensen, N. J. (2004). Simulating
photon mapping for real-time applications. Rendering
techniques, pages 123–132.
Pajot, A., Barthe, L., Paulin, M., and Poulin, P. (2011).
Combinatorial bidirectional path-tracing for efficient
hybrid cpu/gpu rendering. Computer Graphics Forum,
30(2):315–324.
Ritschel, T., Grosch, T., and Seidel, H. P. (2009). Approx-
imating dynamic global illumination in image space.
Proceedings ACM SIGGRAPH Symposium on Inter-
active 3D Graphics and Games (I3D).
Veach, E. and Guibas, L. (1994). Bidirectional estimators
for light transport. Fifth Eurographics Workshop on
Rendering, pages 147–162.
Wald, I., Mark, W., Hunt, W., G¨unther, J., Parker, S., Bou-
los, S., Shirley, P., and Ize, T. (2007). State of the art in
ray tracing animated scenes. Eurographics 2007 State
of the Art Reports, pages 89–116.
Zhukov, S., Iones, A., and Kronin, G. (1998). An ambient
light illumination model. Rendering Techniques ’98,
pages 45–55.
GRAPP 2012 - International Conference on Computer Graphics Theory and Applications
294