Abstract
This paper introduces an efficient and simple algorithm for constructing Multiple Reference (MR) octrees on a GPU in application to Photon Mapping and Irradiance Caching techniques. Although MR-octrees are hierarchical structures, we successfully ignore their hierarchical nature and present an approach with plain construction, compact data layout and stack-less traversal. Our algorithm uses only 2 parallel primitives (parallel append and parallel sort) and can be expressed in several lines of pseudo-code.
Similar content being viewed by others
References
Krivanek, J. and Gautron, P., Practical global illumination with irradiance caching. Synthesis lectures in computer graphics and animation, Morgan and Claypool Publishers, 2009, ISBN: 1598296442, 978-1598296440.
Morton, G., A computer oriented geodetic data base and a new technique in file sequencing, International Business Machines Company, 1966.
Ajmera, P., Goradia, R., Chandran, S., and Aluru, S., Fast, parallel, GPU-based construction of space filling curves and octrees, Proceedings of the 2008 Symposium on Interactive 3D Graphics and Games, I3D’ 08, New York, NY, USA: ACM, 2008, 10:1–10:1.
Zhou, K., Gong, M., Huang, X., and Guo, B., Dataparallel Octrees for Surface Reconstruction, IEEE Transactions on Visualization and Computer Graphics, 2011, vol. 17, no. 5, pp. 669–681.
Crassin, G. and Green, S., Octree-based sparse voxelization using the GPU hardware rasterizer, OpenGL Insights, CRC Press, Patrick Cozzi and Christophe Riccio, 2012.
Karras, T., Maximizing parallelism in the construction of BVHs, octrees, and k-d trees, EGGH-HPG’12 Proceedings of the Fourth ACM SIGGRAPH, Eurographics Conference on High-Performance Graphics, 2012, pp. 33–37.
Le Grand, S., Broad-phase collision detection with CUDA, GPU Gems 3, Addison-Wesley, 2008, pp. 697–721.
Purcell, T.J., Donner, G., Cammarano, M., et al., Photon mapping on programmable graphics hardware, Proceedings of the ACM SIGGRAPH/EUROGRAPHICS Conference on Graphics Hardware, Eurographics Association, 2003, pp. 41–50.
Zhou, K., Hou, Q., Wang, R., and Guo, B., Real-time KD-tree construction on graphics hardware, ACM Trans. Graph., 2008, vol. 27, no. 5, pp. 126:1–126:11.
Fabianowski, B. and Dingliana, J., Interactive global photon mapping, Computer Graphics Forum, 2009, vol. 28, no. 4, pp. 1151–1159.
Garanzha, K., Pantaleoni, J., and McAllister, D., Simpler and faster HLBVH with work queues, Proceedings of the ACM SIGGRAPH Symposium on High Performance Graphics. HPG’ 11, New York, NY, USA: ACM, 2011, pp. 59–64.
Alcantara, D.A., Sharf, A., Abbasinejad, F., et al., Real-time parallel hashing on the GPU, ACM Trans. Graph., 2009, vol. 28, no. 5, pp. 154:1–154:9.
Fleisz, M., Photon mapping on the GPU, Master of Science, 2009, vol. School of Informatics, University of Edinburgh, no. 1, pp. 1–60.
Hachisuka, T. and Jensen, H.W., Parallel progressive photon mapping on GPUs, ACM SIGGRAPH ASIA 2010 Sketches, SA’ 10, New York, NY, USA: ACM, 2010, pp. 54:1–54:1.
Carlberg, K., Stochastic progressive photon mapping using parallel hashing, Master Thesis, 2011, vol. Lund University, no. 1, pp. 1–51.
McGwire, M. and Luebke, D., Hardware-accelerated global illumination by image space photon mapping, Proceedings of the 2009 ACM SIGGRAPH/EuroGraphics Conference on High Performance Graphics, New York, NY, USA: ACM, 2009.
Gautron, P., Krivanek, J., Bouatouch, K., and Pattanaik, S.N., Radiance cache splatting: A GPU-friendly global illumination algorithm, Rendering Techniques, Deussen, O., Keller, A., Bala, K., et al., Eds., Eurographics Association, 2005, pp. 55–64.
Mara, M., McGwire, M., and Luebke, D., Toward practical real-time photon mapping: Efficient GPU density-estimation, Interactive 3D Graphics and Games 2013, 2013.
Aila, T. and Laine, S., Understanding the efficiency of ray traversal on GPUs, in Proceedings of the Conference on High Performance Graphics 2009, New Orleans, Louisiana, 2009, S. N.
Frolov, V., Vostryakov, K., Kharlamov, A., and Galaktionov, V., Implementing irradiance cache in a GPU realistic renderer, Trans. on Comput. Sci. XIX, LNCS 7870, 2013, vol. 7870, no. 1, pp. 17–32.
Doidge, I.C., Jones, M.W., and Mora, B., Mixing Monte Carlo and progressive rendering for improved global illumination, Vis. Comput., 2012, vol. 28, no. 68, pp. 603–612.
Hachisuka, T., Pantaleoni, J., and Jensen, H.W., A path space extension for robust light transport simulation, ACM Trans. Graph., 2012, vol. 31, no. 6, pp. 191:1–191:10.
Author information
Authors and Affiliations
Corresponding author
Additional information
Published in Russian in Programmirovanie, 2014, Vol. 4, No. 4.
The article is published in the original.
Rights and permissions
About this article
Cite this article
Frolov, V.A., Kharlamov, A.A., Galaktionov, V.A. et al. Multiple reference octrees for a GPU photon mapping and irradiance caching. Program Comput Soft 40, 208–214 (2014). https://doi.org/10.1134/S0361768814040033
Received:
Published:
Issue Date:
DOI: https://doi.org/10.1134/S0361768814040033