1 Single Scattering in Refractive Media with Triangle Mesh Boundaries Bruce Walter Shuang Zhao Nicolas Holzschuch Kavita Bala Cornell Univ. Grenoble Univ.

Slides:



Advertisements
Similar presentations
Multidimensional Lightcuts Bruce Walter Adam Arbree Kavita Bala Donald P. Greenberg Program of Computer Graphics, Cornell University.
Advertisements

Lecture 14 Illumination II – Global Models
IIIT Hyderabad Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad,
Zhao Dong 1, Jan Kautz 2, Christian Theobalt 3 Hans-Peter Seidel 1 Interactive Global Illumination Using Implicit Visibility 1 MPI Informatik Germany 2.
Chunhui Yao 1 Bin Wang 1 Bin Chan 2 Junhai Yong 1 Jean-Claude Paul 3,1 1 Tsinghua University, China 2 The University of Hong Kong, China 3 INRIA, France.
Many-light methods – Clamping & compensation
Advanced Computer Graphics
Subsurface scattering Model of light transport in translucent materials Marble, jade, milk, skin Light penetrates material and exits at different point.
Scalability with many lights II (row-column sampling, visibity clustering) Miloš Hašan.
Light Issues in Computer Graphics Presented by Saleema Amershi.
Light: Geometric Optics
5D COVARIA NCE TRACING FOR EFFICIENT DEFOCUS AND MOTION BLUR Laurent Belcour 1 Cyril Soler 2 Kartic Subr 3 Nicolas Holzschuch 2 Frédo Durand 4 1 Grenoble.
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.
Rasterization and Ray Tracing in Real-Time Applications (Games) Andrew Graff.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lectures 18, 19: Monte Carlo Integration Ravi Ramamoorthi Acknowledgements.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Computer Graphics (Fall 2005) COMS 4160, Lecture 21: Ray Tracing
RAY TRACING.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Geometric Sound Propagation Anish Chandak & Dinesh Manocha UNC Chapel Hill
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
Matrix Row-Column Sampling for the Many-Light Problem Miloš Hašan (Cornell University) Fabio Pellacini (Dartmouth College) Kavita Bala (Cornell University)
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Fast Agglomerative Clustering for Rendering Bruce Walter, Kavita Bala, Cornell University Milind Kulkarni, Keshav Pingali University of Texas, Austin.
RT08, August ‘08 Large Ray Packets for Real-time Whitted Ray Tracing Ryan Overbeck Columbia University Ravi Ramamoorthi Columbia University William R.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Direct Illumination with Lazy Visibility Evaluation David Hart Philip Dutré Donald P. Greenberg Cornell University SIGGRAPH 99.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
Computer graphics & visualization Ray-Tracing – A Quick review.
COMP 175: Computer Graphics March 24, 2015
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
-Global Illumination Techniques
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
Raytracing and Global Illumination Intro. to Computer Graphics, CS180, Fall 2008 UC Santa Barbara.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
Global Illumination with a Virtual Light Field Mel Slater Jesper Mortensen Pankaj Khanna Insu Yu Dept of Computer Science University College London
Interactive Visualization of Exceptionally Complex Industrial CAD Datasets Andreas Dietrich Ingo Wald Philipp Slusallek Computer Graphics Group Saarland.
1 Implicit Visibility and Antiradiance for Interactive Global Illumination Carsten Dachsbacher 1, Marc Stamminger 2, George Drettakis 1, Frédo Durand 3.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Recursion and Data Structures in Computer Graphics Ray Tracing 1.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
Ray Tracer Spring 2008 Help Session. Outline Project Web Resources What do you have to do for this project? Ray Class Isect Class Requirements Tricks.
- 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.
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.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
RENDERING : Global Illumination
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
Path/Ray Tracing Examples. Path/Ray Tracing Rendering algorithms that trace photon rays Trace from eye – Where does this photon come from? Trace from.
Distributed Ray Tracing. Can you get this with ray tracing?
Distributed Ray Tracing. Can you get this with ray tracing?
CS552: Computer Graphics Lecture 33: Illumination and Shading.
CS552: Computer Graphics Lecture 36: Ray Tracing.
Interactive Rendering of Translucent Deformable Objects Tom Mertens 1, Jan Kautz 2, Philippe Bekaert 1, Hans-Peter Seidel 2, Frank Van Reeth
Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad, India.
Combining Edges and Points for Interactive High-Quality Rendering
3D Graphics Rendering PPT By Ricardo Veguilla.
© University of Wisconsin, CS559 Fall 2004
Path Tracing (some material from University of Wisconsin)
Virtual Spherical Lights for Many-Light Rendering of Glossy Scenes
(c) 2002 University of Wisconsin
Smoother Subsurface Scattering
Presentation transcript:

1 Single Scattering in Refractive Media with Triangle Mesh Boundaries Bruce Walter Shuang Zhao Nicolas Holzschuch Kavita Bala Cornell Univ. Grenoble Univ. Cornell Univ. Presented at SIGGRAPH 2009

2 Single Scattering Direct illumination in refractive objects is hard Single scatter from a single point light source

3 Single Scattering Single scatter from a single point light source

4 Single Scattering Single scatter from a single point light source

5 Eye ray Problem

6 L V Eye ray Problem

7 Ignoring refraction P L V Eye ray Problem

8 P L V Eye ray Challenges: Bending of Path Ignoring refractionWith refraction L V P1P1 Eye ray

9 P L V Challenges: Multiple Paths Ignoring refractionWith refraction L V P1P1 P2P2 Eye ray

10 Is it important? Glass tile quality comparison Our methodShadow rays ignore refraction

11 Challenges Summary Bending of paths Multiple paths Shading normals Large triangle meshes

12 Challenges: Shading Normals Shading normals NGNG NGNG Geometric normals NSNS NSNS NSNS

13 Challenges: Shading Normals Shading normals NGNG NGNG Geometric normals NSNS NSNS NSNS

14 Limitations Finds connections that – Cross the boundary exactly once – Have no other changes in direction – Cost depends on path count and boundary L V No L V L V Yes

15 Prior Work Diffusion and multiple scatter – [eg, Stam 95, Jensen et al. 01, Wang et al. 08] Monte Carlo – [eg, Kajiya 86, Veach 97] Beam tracing – [eg, Nishita & Nakamae 94, Iwasaki et al. 03, Ernst et al. 05] Photon mapping – [eg, Jensen 01, Sun et al. 08, Jarosz et al. 08] Fermat’s principle – [eg, Mitchell & Hanrahan 92, Chen & Arvo 00]

16 Prior Work Mitchell & Hanrahan 92 – Used Fermat’s principle and Newton’s method – Reflection (shown) and refraction Limitations – Only supported implicit surfaces – Cannot handle shading normals – Expensive 3D search – Not scalable to complex geometry Mitchell & Hanrahan 92

17 Contributions Support triangles with shading normals – Most widely used geometry format – Required fundamental problem reformulation – New search methods and intensity equations Hierarchical culling – Scales to complex objects with many triangles CPU and GPU implementations – Interactive performance on some scenes

18 Outline Half-vector formulation Solving for a single triangle Hierarchical culling for meshes Results

19 Fermat’s Principle Index of refraction = η L V P

20 Half-Vector Formulation L V P ωLωL ωVωV

21 Half-Vector Formulation L V P ωLωL ωVωV ωLωL η ωVη ωV H H

22 Half-Vector Formulation L V P H N

23 Half-Vector Formulation L V P H N

24 Newton’s Method Review x0x0 x1x1 x2x2 f(x) 0

25 Outline Half-vector formulation Solving for a single triangle – Geometric normal - 1D Newton – Shading normals - 2D Newton – Subdivision oracles Hierarchical culling for meshes Results

26 Triangle Without Shading Normals L V H P NGNG

27 Triangle Without Shading Normals L V H P NGNG

Triangle with Shading Normal Shading normal, N S, varies over triangle – Full 2D search over triangle’s area Function f(P) = H + N S maps 2D to 3D – Derivative is 2X3 Jacobian matrix is non-invertible – Use pseudoinverse for Newton’s method:

29 Triangle with Shading Normal Need good starting points May have zero, one, or multiple solutions – Subdivide triangle as needed to isolate solutions

30 Two Triangle Subdivision Oracles Test with strong guarantees – Based on [Krawczyk 69], [Mitchell&Hanrahan 92] – Conditions guarantee uniqueness and convergence Fast empirical heuristic – Based on solid angles of triangle and normals

31 Triangle summary For each triangle: – If no shading normals Solve for P with 1D Newton – Else if passes the subdivision oracle Solve for P with 2D Newton – Else Subdivide into 4 triangles and try again – Test if P lies within the triangle

32 Outline Half-vector formulation Solving for a single triangle Hierarchical culling for meshes Results

33 Culling Tests

34 Spindle Culling Test L V arccos  P

35 Spindle Culling Test L V arccos  P

36 Spindle Culling Test L V arccos  P

37 Sidedness Culling Test N L V arccos 

38 Hierarchical Culling for Meshes Position-normal tree

39 Algorithm Summary Build position-normal tree for each boundary mesh For each eye ray – Trace until hits surface or volume-scatters at V – Select a light source point, L – Traverse tree to solve for all P on boundary – For each solution point P Check for occlusion along path Compute effective light distance Add contribution to pixel value L V P1P1 P2P2 Eye ray

40 Effective Distance to Source Refraction alters usual 1 / r 2 intensity falloff – Can focus or defocus the light Compute effective light distance for each path – Simple formula for triangles without shading normal – Use ray differentials [Igehy 99] for shading normal case – See paper for details

41 Outline Half-vector formulation Solving for a single triangle Hierarchical culling for meshes Results

42 Results - CPU Three scenes without shading normals TeapotAmberCuboctahedron

43 Results - CPU Three scenes without shading normals 512x512 images, 64 samples per pixel, 8-core 2.83GHz Intel Core2 Teapot 15.3s Amber 19.2s Cuboctahedron 13.9s

44 Results - Teapot Teapot quality comparison Our method (15.4s)Shadow rays ignore refraction

45 Results - Teapot Teapot quality comparison Shadow rays ignore refractionOur method (15.4s)

46 Results - Cuboctahedron Cuboctahedron movie (13.9s)

47 Results - GPU Implemented on GPU using CUDA 2.0 – 1D, 2D Newton iteration – Hierarchical pruning – Ray tracing based on [Popov et al. 2007] – One kernel thread per eye ray – Does not yet support all scenes

48 Results - GPU Name Render Time FPS Teapot0.1 s 10 fps Cuboctahedro n 0.14 s 7 fps Amber0.3 s 3 fps 512x512 images, 2 eye rays per pixel volume samples, nVIDIA GTX 280, CUDA 2.0

49 Results - GPU Teapot example – 10 fps on GPU

50 Results - CPU Three scenes with shading normals Glass tilePoolGlass mosaic

51 Results - CPU Three scenes with shading normals 512x512 images, 64 samples per pixel, 8-core 2.83GHz Intel Core2 Glass tile 66.9s Pool 59.4s Glass mosaic 87.8s

52 Results - Glass Tile Our method (66.9s)Photon map (equal time)

53 Results - Glass Mosaic Glass mosaic movie (87.8s)

54 Results - Component Evaluation Evaluation of algorithm components – Pool (2632 triangles in boundary) TimeRatio Without Hierarchy s 32x Guaranteed Convergenc e 141.1s 2.4x Subdivision Heuristic 59.4s 1x

55 Results - Bumpy sphere Bumpy sphere (9680 triangles) – Volume sampling noise Used 128 samples per pixel Effective distance clamping Our method s

56 Results - Bumpy sphere Bumpy sphere (9680 triangles) Our methodShadow rays ignore refraction

57 Results - Bumpy sphere Bumpy sphere (9680 triangles) Our methodPath tracing(16x time)

58 Results - Bumpy sphere Bumpy sphere (9680 triangles) Our methodPhoton map 10M (equal time)

59 Conclusion New method for single scatter in refractive media – Applicable to many rendering algorithms – New half-vector formulation – Efficient culling and search methods – Supports shading normals and large triangle meshes – Interactive performance for some scenes Future work – Better culling – Reflections and low-order scattering – Multiple interfaces

60 Acknowledgements Sponsors – NSF Career , CPA , CNS , CNS – Intel – NVidia – Microsoft – INRIA sabbatical program PCG Graphics Lab and Elizabeth Popolo

61 The End

62 Results - CPU timings Name Render Time Triangles Shading Normals SurfaceOther Teapot15.3 s No Cuboctahedro n 13.9 s200 No Amber19.2 s No Glass tile66.9 s79860 Yes Glass mosaic87.8 s Yes Pool59.4 s Yes Bumpy Sphere s96800 Yes 512x512 images, 64 samples per pixel (128 for bumpy sphere), 8-core 2.83GHz Intel Core2 CPU

63 x0x0 Newton’s Method f(x) 0

64 x0x0 Newton’s Method x1x1 f(x) 0

65 x0x0 Newton’s Method x1x1 x2x2 f(x) 0