Fabianowski · DinglianaInteractive Global Photon Mapping1 / 22 Interactive Global Photon Mapping Bartosz Fabianowski · John Dingliana Trinity College Dublin.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

Christian Lauterbach COMP 770, 2/16/2009. Overview  Acceleration structures  Spatial hierarchies  Object hierarchies  Interactive Ray Tracing techniques.
IIIT Hyderabad Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad,
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
Albert Mas Ignacio Martín Gustavo Patow Fast Inverse Reflector Design FIRD Graphics Group of Girona Institut d’Informàtica i Aplicacions Universitat de.
Illumination Model & Surface-rendering Method 박 경 와.
Parallel random walks Brian Moffat. Outline What are random walks What are Markov chains What are cover/hitting/mixing times Speed ups for different graphs.
Path Differentials for MC Rendering Frank Suykens Department of Computer Science K.U.Leuven, Belgium Dagstuhl 2001: Stochastic methods in Rendering.
Paper Presentation - An Efficient GPU-based Approach for Interactive Global Illumination- Rui Wang, Rui Wang, Kun Zhou, Minghao Pan, Hujun Bao Presenter.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Photon Tracing with Arbitrary Materials Patrick Yau.
Ray Casting Ray-Surface Intersections Barycentric Coordinates Reflection and Transmission [Shirley, Ch.9] Ray Tracing Handouts Ray Casting Ray-Surface.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
The Radiosity Method Donald Fong February 10, 2004.
Paper by Alexander Keller
FAST AND SIMPLE AGGLOMERATIVE LBVH CONSTRUCTION
Lecture 12 Monte Carlo Simulations Useful web sites:
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
Presentation by Dr. David Cline Oklahoma State University
Realtime Caustics using Distributed Photon Mapping Johannes Günther Ingo Wald * Philipp Slusallek Computer Graphics Group Saarland University ( * now at.
1 Single Scattering in Refractive Media with Triangle Mesh Boundaries Bruce Walter Shuang Zhao Nicolas Holzschuch Kavita Bala Cornell Univ. Grenoble Univ.
Adaptive Real-Time Rendering of Planetary Terrains WSCG 2010 Raphaël Lerbour Jean-Eudes Marvie Pascal Gautron THOMSON R&D, Rennes, France.
-Global Illumination Techniques
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Global illumination algorithms Graphics.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
Photon Mapping on Programmable Graphics Hardware
On a Few Ray Tracing like Algorithms and Structures. -Ravi Prakash Kammaje -Swansea University.
Computer graphics & visualization Photon Mapping.
Institute of C omputer G raphics, TU Braunschweig Hybrid Scene Structuring with Application to Ray Tracing 24/02/1999 Gordon Müller, Dieter Fellner 1 Hybrid.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
Global Illumination with a Virtual Light Field Mel Slater Jesper Mortensen Pankaj Khanna Insu Yu Dept of Computer Science University College London
Fast BVH Construction on GPUs (Eurographics 2009) Park, Soonchan KAIST (Korea Advanced Institute of Science and Technology)

- Laboratoire d'InfoRmatique en Image et Systèmes d'information
On robust Monte Carlo algorithms for multi-pass global illumination Frank Suykens – De Laet 17 September 2002.
Maximizing Parallelism in the Construction of BVHs, Octrees, and k-d Trees Tero Karras NVIDIA Research.
Monte-Carlo Ray Tracing and
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Pure Path Tracing: the Good and the Bad Path tracing concentrates on important paths only –Those that hit the eye –Those from bright emitters/reflectors.
Advanced topics Advanced Multimedia Technology: Computer Graphics Yung-Yu Chuang 2006/01/04 with slides by Brian Curless, Zoran Popovic, Mario Costa Sousa.
Database Management Systems, R. Ramakrishnan 1 Algorithms for clustering large datasets in arbitrary metric spaces.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
Fast Global Illumination Including Specular Effects Xavier Granier 1 George Drettakis 1 Bruce J. Walter 2 1 iMAGIS -GRAVIR/IMAG-INRIA iMAGIS is a joint.
Global Illumination (3) Photon Mapping (1). Overview Light Transport Notation Path Tracing Photon Mapping –Photon Tracing –The Photon Map.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
David Luebke3/12/2016 Advanced Computer Graphics Lecture 3: More Ray Tracing David Luebke
Path/Ray Tracing Examples. Path/Ray Tracing Rendering algorithms that trace photon rays Trace from eye – Where does this photon come from? Trace from.
Tree and Forest Classification and Regression Tree Bagging of trees Boosting trees Random Forest.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Compact BVH Storage for Ray Tracing and Photon Mapping Bartosz Fabianowski ∙ John.
Visibility-Driven View Cell Construction Oliver Mattausch, Jiří Bittner, Michael Wimmer Institute of Computer Graphics and Algorithms Vienna University.
Visualization of Scanned Cave Data with Global Illumination

Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad, India.
Two-Level Grids for Ray Tracing on GPUs
Real-Time Ray Tracing Stefan Popov.
3D Object Representations
RAY TRACING.
Fast and Robust Object Tracking with Adaptive Detection
Accelerated Single Ray Tracing for Wide Vector Units
© 2005 University of Wisconsin
Progressive Photon Mapping
Incremental Instant Radiosity for Real-Time Indirect Illumination
CSCE 441 Computer Graphics: Radiosity
CSCE 441: Computer Graphics Ray Tracing
Radiosity Sung-Eui Yoon (윤성의) CS580: Course URL:
Introduction to Ray Tracing
An Analysis of Region Clustered BVH Volume Rendering on GPU
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Fabianowski · DinglianaInteractive Global Photon Mapping1 / 22 Interactive Global Photon Mapping Bartosz Fabianowski · John Dingliana Trinity College Dublin

Fabianowski · DinglianaInteractive Global Photon Mapping2 / 22 Density Estimation ● k th-nearest-neighbor density estimation: – Temporary list of nearby photon hits required – Contribution radii a priori unknownkd- tree + Automatic adaptation of contribution radii ● Local kernel density estimation: + Immediate evaluation of nearby photon hits + Contribution radii precisely known BVH – Automatic adaptation of contribution radii lost

Fabianowski · DinglianaInteractive Global Photon Mapping3 / 22 Related Work ● Isotropic footprint per surface: – From number of hits and area [SB97,LP03] – By least squares cross-validation [LP02] ● Isotropic footprint per photon: – From path probabilities [HHK*07] ● Anisotropic footprint per photon: – Photon differentials [SFES07]: – Ray differentials [Ige99] – Path differentials [SW01]

Fabianowski · DinglianaInteractive Global Photon Mapping4 / 22 Photon Differentials ● Photon paths parametrized by and : ● Derivatives of position and direction: ● Distances between neighboring photons: – In sample space:, – In the scene:

Fabianowski · DinglianaInteractive Global Photon Mapping5 / 22 Photon Footprints

Fabianowski · DinglianaInteractive Global Photon Mapping6 / 22 Photon Emission ● Uniform random sampling of, : ● Differentials: ● Distances in sample space:

Fabianowski · DinglianaInteractive Global Photon Mapping7 / 22 Photon Propagation ● Transmission, specular reflection: – No additional parameters – Differentials updated by chain rule ● Russian Roulette: – One additional parameter to determine survival – Instead of introducing new differentials: ● Existing differentials scaled by ● Footprint area increased by

Fabianowski · DinglianaInteractive Global Photon Mapping8 / 22 Diffuse Photon Reflection (1/3) ● Uniform random sampling of, : ● Differentials: ● Distances in sample space:

Fabianowski · DinglianaInteractive Global Photon Mapping9 / 22 Diffuse Photon Reflection (2/3) ● Instead of introducing new differentials: – Treated as absorption and reemission – Parameters now only and ● To preserve current adaptation: – Origin virtually offset backwards – Current footprint area maintained

Fabianowski · DinglianaInteractive Global Photon Mapping10 / 22 Diffuse Photon Reflection (3/3) ● Footprint areas:

Fabianowski · DinglianaInteractive Global Photon Mapping11 / 22 Photon Footprints ● Contribution radii: – Highly adaptive to local hit density – For diffusely reflected photons: ● Progressively damped adaptation ● More variance at sparse photon hits ● Photon map: – BVH over photon hit ellipsoids

Fabianowski · DinglianaInteractive Global Photon Mapping12 / 22 BVH Construction ● Voxel Volume Heuristic [WGS04]: – Recursive minimization of cost metric: – Fast photon hit retrieval – Slow photon map construction

Fabianowski · DinglianaInteractive Global Photon Mapping13 / 22 Linear BVH Build (1/2) ● Recursive bin splitting [LGS*09]: – Photon hits binned on their positions – Bins halved, cycling through coordinates – Hierarchical bin order given by Morton curve

Fabianowski · DinglianaInteractive Global Photon Mapping14 / 22 Linear BVH Build (2/2) ● Leaf construction: – subdivisions per coordinate ( bins) – Bin index computed for each photon hit – Parallel radix sort into bins ● Inner node construction: – Child nodes merged bottom-up – iterations, constructing nodes in parallel ● Fast photon hit retrieval ● Fast photon map construction

Fabianowski · DinglianaInteractive Global Photon Mapping15 / 22 Termination Criterion ● When to stop subdividing depends on: – Scene properties – Illumination conditions ● Termination heuristic: – Stop when number of hits reaches threshold: ● Photon retrieval performance: – Linear build yields of VVH speed – yields of manually tuned speed

Fabianowski · DinglianaInteractive Global Photon Mapping16 / 22 CUDA Implementation (1/2) ● CUDA: – Manycore wide SIMD – Hardware multithreading – Uses current Nvidia GPUs ● Ray and photon tracing: – High quality kd-tree over scene surfaces – Stack-based traversal – One thread per photon/ray

Fabianowski · DinglianaInteractive Global Photon Mapping17 / 22 CUDA Implementation (2/2) ● Photon map construction: – Parallel scan to find overall bounding box – Parallel calculation of bin indices – Parallel radix sort into leaves – Parallel bottom-up merging ● Photon hit retrieval: – Stack-based traversal – Immediate evaluation of located photon hits

Fabianowski · DinglianaInteractive Global Photon Mapping18 / 22 Results (1/3) ● Setup: – One level of specular reflection – Two bounces of indirect lighting – resolution – Nvida GTX280 ● Scenes: – Different sizes and complexities – Diffuse and specular surfaces

Fabianowski · DinglianaInteractive Global Photon Mapping19 / 22 Results (2/3)

Fabianowski · DinglianaInteractive Global Photon Mapping20 / 22 Results (3/3) ● Photons emitted: ● Photon hits: ● Photon hits/query: ● Frame rate: FPS Sponza Scene 6 Conferenc e Sibenik Wal l Rin g Ring (Epanechnikov) s

Fabianowski · DinglianaInteractive Global Photon Mapping21 / 22 Conclusions ● Changes made to photon mapping: – Local kernel density estimation – Footprints by photon differentials – BVH photon map ● Manycore implementation in CUDA ● Interactive global specular and diffuse illumination

Fabianowski · DinglianaInteractive Global Photon Mapping22 / 22 Interactive Global Photon Mapping Bartosz Fabianowski · John Dingliana Trinity College Dublin