Efficient Image-Based Methods for Rendering Soft Shadows

Slides:



Advertisements
Similar presentations
Parameterized Environment Maps
Advertisements

Accelerating Real-Time Shading with Reverse Reprojection Caching Diego Nehab 1 Pedro V. Sander 2 Jason Lawrence 3 Natalya Tatarchuk 4 John R. Isidoro 4.
Exploration of advanced lighting and shading techniques
Ray Tracing Depth Maps Using Precomputed Edge Tables Kevin Egan Rhythm & Hues Studios.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
CSL 859: Advanced Computer Graphics Dept of Computer Sc. & Engg. IIT Delhi.
Lecture 14 Illumination II – Global Models
Zhao Dong 1, Jan Kautz 2, Christian Theobalt 3 Hans-Peter Seidel 1 Interactive Global Illumination Using Implicit Visibility 1 MPI Informatik Germany 2.
Interactive Rendering using the Render Cache Bruce Walter, George Drettakis iMAGIS*-GRAVIR/IMAG-INRIA Steven Parker University of Utah *iMAGIS is a joint.
Render Cache John Tran CS851 - Interactive Ray Tracing February 5, 2003.
Multi-Layered Impostors for Accelerated Rendering Xavier Decoret, iMAGIS This is joint work with Gernot Schaufler and Julie Dorsey at MIT and François.
Tuesday February 19 th, 2002 Deep Shadow Maps Tom Lokovic & Eric Veach Pixar Animation Studios Presented by Tom Lechner.
Rendering Fake Soft Shadows with Smoothies Laboratory for Computer Science Massachusetts Institute of Technology Eric Chan Frédo Durand.
1Notes  Assignment 1 is out, due October 12  Inverse Kinematics  Evaluating Catmull-Rom splines for motion curves  Wednesday: may be late (will get.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 14 Ravi Ramamoorthi
Copyright  Philipp Slusallek Cs fall IBR: Model-based Methods Philipp Slusallek.
Efficient Complex Shadows from Environment Maps Aner Ben-Artzi – Columbia UniversityRavi Ramamoorthi – Columbia University Maneesh Agrawala – Microsoft.
Computer Graphics (Fall 2005) COMS 4160, Lecture 21: Ray Tracing
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 16: Image-Based Rendering and Light Fields Ravi Ramamoorthi
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 21: Image-Based Rendering Ravi Ramamoorthi
Efficient Image-Based Methods for Rendering Soft Shadows Maneesh Agrawala Ravi Ramamoorthi Alan Heirich Laurent Moll Pixar Animation Studios Stanford University.
Image-Based Modeling and Rendering CS 6998 Lecture 6.
3D Graphics Processor Architecture Victor Moya. PhD Project Research on architecture improvements for future Graphic Processor Units (GPUs). Research.
Final Gathering on GPU Toshiya Hachisuka University of Tokyo Introduction Producing global illumination image without any noise.
Real-Time High Quality Rendering COMS 6160 [Fall 2004], Lecture 4 Shadow and Environment Mapping
Approximate Soft Shadows on Arbitrary Surfaces using Penumbra Wedges Tomas Akenine-Möller Ulf Assarsson Department of Computer Engineering, Chalmers University.
Copyright  Philipp Slusallek IBR: View Interpolation Philipp Slusallek.
Realistic Reflections and Refractions on Graphics Hardware with Hybrid Rendering and Layered Environment Maps Ziyad S. Hakura John M. Snyder Ziyad S. Hakura.
CSCE 641 Computer Graphics: Image-based Rendering (cont.) Jinxiang Chai.
Creating soft shadows Computer Graphics methods Submitted by: Zusman Dimitry.
Paper by Alexander Keller
CSCE 641: Computer Graphics Image-based Rendering Jinxiang Chai.
 Marc Levoy IBM / IBR “The study of image-based modeling and rendering is the study of sampled representations of geometry.”
 Marc Levoy IBM / IBR “The study of image-based modeling and rendering is the study of sampled representations of geometry.”
Real-Time High Quality Rendering CSE 291 [Winter 2015], Lecture 6 Image-Based Rendering and Light Fields
Erdem Alpay Ala Nawaiseh. Why Shadows? Real world has shadows More control of the game’s feel  dramatic effects  spooky effects Without shadows the.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 15: Image-Based Rendering and Light Fields Ravi Ramamoorthi
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
Project Raytracing. Content Goals Idea of Raytracing Ray Casting – Therory – Practice Raytracing – Theory – Light model – Practice Output images Conclusion.
Raytracing and Global Illumination Intro. to Computer Graphics, CS180, Fall 2008 UC Santa Barbara.
1 Rendering Geometry with Relief Textures L.Baboud X.Décoret ARTIS-GRAVIR/IMAG-INRIA.
Penumbra Deep Shadow Maps Jean-Francois St-Amour, LIGUM – Université de Montreal Eric Paquette, LESIA - ETS Pierre Poulin, LIGUM – Université de Montreal.
Image-based Rendering. © 2002 James K. Hahn2 Image-based Rendering Usually based on 2-D imagesUsually based on 2-D images Pre-calculationPre-calculation.
Real-time Shading with Filtered Importance Sampling Jaroslav Křivánek Czech Technical University in Prague Mark Colbert University of Central Florida.
Depth Edge Detection with Multi- Flash Imaging Gabriela Martínez Final Project – Processamento de Imagem IMPA.
Rendering Fake Soft Shadows with Smoothies Eric Chan Massachusetts Institute of Technology.
Hardware-accelerated Rendering of Antialiased Shadows With Shadow Maps Stefan Brabec and Hans-Peter Seidel Max-Planck-Institut für Informatik Saarbrücken,
Efficient Image-Based Methods for Rendering Soft Shadows SIGGRAPH 2001 Maneesh Agrawala Ravi Ramamoorthi Alan Heirich Laurent Moll Pixar Animation Studios.
CSL 859: Advanced Computer Graphics Dept of Computer Sc. & Engg. IIT Delhi.
Sample Based Visibility for Soft Shadows using Alias-free Shadow Maps Erik Sintorn – Ulf Assarsson – uffe.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Real-Time Relief Mapping on Arbitrary Polygonal Surfaces Fabio Policarpo Manuel M. Oliveira Joao L. D. Comba.
CSCE 641 Computer Graphics: Image-based Rendering (cont.) Jinxiang Chai.
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.
1 Shadow Rendering Techniques: Hard and Soft Author: Jamiur Rahman Supervisor: Mushfiqur Rouf Department of CSE BRAC University.
Distributed Ray Tracing. Can you get this with ray tracing?
Real-Time Relief Mapping on Arbitrary Polygonal Surfaces Fabio Policarpo Manuel M. Oliveira Joao L. D. Comba.
Presented by 翁丞世  View Interpolation  Layered Depth Images  Light Fields and Lumigraphs  Environment Mattes  Video-Based.
Shadow Maps & Smoothies CS 446: Real-Time Rendering & Game Technology David Luebke University of Virginia.
Advanced Computer Graphics
Real-Time Soft Shadows with Adaptive Light Source Sampling
Combining Edges and Points for Interactive High-Quality Rendering
Interactive Computer Graphics
Alias-Free Shadow Maps
Visibility Computations
Chapter XV Shadow Mapping
Presentation transcript:

Efficient Image-Based Methods for Rendering Soft Shadows Maneesh Agrawala Ravi Ramamoorthi Alan Heirich Laurent Moll Pixar Animation Studios Stanford University Compaq Computer Corporation

Hard vs. Soft Shadows Hard ShadowsSoft Shadows

Shadow maps Image-based hard shadows [Williams 78] Time, memory depend on image size, not geometric scene complexity Disadvantage: bias and aliasing artifacts Soft shadows [Chen and Williams 93] View interpolate multiple shadow maps Image-based hard shadows [Williams 78] Time, memory depend on image size, not geometric scene complexity Disadvantage: bias and aliasing artifacts Soft shadows [Chen and Williams 93] View interpolate multiple shadow maps

IBR good for soft shadows IBR good for secondary effects Artifacts less perceptible IBR works well for nearby viewpoints Shadow maps from light source Light source localized area Poorly sampled regions are also dimly lit IBR good for secondary effects Artifacts less perceptible IBR works well for nearby viewpoints Shadow maps from light source Light source localized area Poorly sampled regions are also dimly lit

IBR good for soft shadows Poorly sampled regions are also dimly lit Attenuation onlyWith lighting Light Shadow map

ContributionsContributions Extend shadow maps to soft shadows Image-based rendering especially suitable Two novel image-based algorithms: Layered attenuation maps (LAM) Coherence-based raytracing (CBRT) Extend shadow maps to soft shadows Image-based rendering especially suitable Two novel image-based algorithms: Layered attenuation maps (LAM) Coherence-based raytracing (CBRT)

LAM Display: 5-10 fps Some aliasing artifacts Interactive applications Games Previewing CBRT Render: min Speedup: 12.96x Production quality images

Refresher: LDIs Layered depth images [Shade et al. 98] Geometry Camera

Refresher: LDIs Layered depth images [Shade et al. 98] LDI

Refresher: LDIs Layered depth images [Shade et al. 98] LDI (Depth, Color)

PrecomputationPrecomputation Render views from points on light (hardware) Create layered attenuation map (software) Warp views into LDI Store (depth, attenuation) Objects in LAM visible in at least 1 view Render views from points on light (hardware) Create layered attenuation map (software) Warp views into LDI Store (depth, attenuation) Objects in LAM visible in at least 1 view

PrecomputationPrecomputation 1 st viewpoint

PrecomputationPrecomputation 2 nd viewpoint Attenuation = 1/2 Attenuation = 2/2

PrecomputationPrecomputation Warped 2 nd viewpoint Attenuation = 1/2 Attenuation = 2/2 Not present

DisplayDisplay Render scene without shadows (hardware) Project into LAM (software) Read off attenuation Attenuation modulates shadowless rendering Render scene without shadows (hardware) Project into LAM (software) Read off attenuation Attenuation modulates shadowless rendering

DisplayDisplay LAM (center of light) Eye

DisplayDisplay LAM (center of light) Eye Attenuation = 2/2 Color = Color * 2/2

DisplayDisplay LAM (center of light) Eye

DisplayDisplay LAM (center of light) Eye Not in LAM Attenuation = 0 Color = Color * 0

Previous Interactive Methods HW per-object textures [Herf and Heckbert 97] Convolution [Soler and Sillion 98] Texture intensive HW per-object textures [Herf and Heckbert 97] Convolution [Soler and Sillion 98] Texture intensive

LAM size: 512 x 512 Avg num depth layers: 1.5 Precomp: 7.7 sec (64 views) 29.4 sec (256 views) Display: 5-10 fps

LAM size: 512 x 512 Avg num depth layers: 2 Precomp: 6.0 sec (64 views) 22.4 sec (256 views) Display: 5-10 fps

LAM Video

Layered attenuation maps – fast, aliases Coherence-based raytracing – slow, noise Layered attenuation maps – fast, aliases Coherence-based raytracing – slow, noise LAMCBRT

Coherence-based raytracing Hierarchical raytracing through depth images Time, memory decoupled from geometric scene complexity Coherence-based sampling Light source visibility changes slowly Reduce number shadow rays traced Also usable with geometric raytracer Hierarchical raytracing through depth images Time, memory decoupled from geometric scene complexity Coherence-based sampling Light source visibility changes slowly Reduce number shadow rays traced Also usable with geometric raytracer

Represent scene with multiple shadow maps Light Image-based raytracing 1 st shadow map

Represent scene with multiple shadow maps Light Image-based raytracing 2 nd shadow map 1 st shadow map

Trace shadow ray through shadow maps Light Image-based raytracing 2 nd shadow map 1 st shadow map

Hierarchical img based raytracing Previous Height fields:[Musgrave et al. 89] New views:[Marcato 98] [Chang 98] [Lischinski and Rappoport 98] Shadows:[Keating and Max 99] Our contributions Accelerations – shadow ray traversal Fast methods handling multiple depth images Speedup: ~ 2.20 x Previous Height fields:[Musgrave et al. 89] New views:[Marcato 98] [Chang 98] [Lischinski and Rappoport 98] Shadows:[Keating and Max 99] Our contributions Accelerations – shadow ray traversal Fast methods handling multiple depth images Speedup: ~ 2.20 x

Light source visibility image Light Visibility image s1s1

Light source visibility image s1s1 s2s2 Vis image for s 1 Light Visibility image

Coherence-based sampling Compute visibility image at first point s 1 Loop over following surface points s i Predict visibility image at s i from s i-1 Trace rays where prediction confidence low Compute visibility image at first point s 1 Loop over following surface points s i Predict visibility image at s i from s i-1 Trace rays where prediction confidence low

Predicting visibility Blocker pts s1s1 s1s1 s2s2 Prediction

Predicting visibility Blocker pts s1s1 s1s1 s2s2 Prediction

Low confidence Light source edges Blocked/unblocked edges Prediction confidence Predicted visibility Trace rays in all X’ed cells High confidence:5 Low confidence:31 Total cells:36 Ratio:5/36 = 0.14

Low confidence Light source edges Blocked/unblocked edges Prediction confidence Predicted visibility Trace rays in all X’ed cells High confidence:56 Low confidence:88 Total cells:144 Ratio:56/144 = 0.40

Propagating low confidence If traced ray = prediction trace neighbor cells Similar to [Hart et al. 99] Prediction correct

Propagating low confidence If traced ray = prediction trace neighbor cells Prediction incorrect Similar to [Hart et al. 99]

Light cells: 16 x 16 (256) Four 1024 x 1024 maps Precomp: 2.33 min Render:19.83 min Rays:79.86 Speedup:12.96x 2.27x due to image-based raytracing accelerations 5.71x due to coherence-based sampling

Light cells: 16 x 16 (256) Four 1024 x 1024 maps Precomp: 3.93 min Render:65.13 min Rays:88.74 Speedup:8.52x 2.16x due to image-based raytracing accelerations 3.94x due to coherence-based sampling

LAMCBRT

ConclusionsConclusions Two efficient image-based methods Layered attenuation maps Interactive applications Coherence-based raytracing Production quality images IBR ideal for soft shadows – secondary effects Two efficient image-based methods Layered attenuation maps Interactive applications Coherence-based raytracing Production quality images IBR ideal for soft shadows – secondary effects

Future work Dynamic scenes Antialiasing with deep shadow maps Hardware implementation Dynamic scenes Antialiasing with deep shadow maps Hardware implementation

AcknowledgementsAcknowledgements Tom Lokovic Reid Gershbein, Tony Apodaca, Mark VandeWettering, Craig Kolb Stanford graphics group Tom Lokovic Reid Gershbein, Tony Apodaca, Mark VandeWettering, Craig Kolb Stanford graphics group

Prediction errors Missed blockers Dependent on surface sampling density Missed holes Dependent on light source sampling density Missed blockers Dependent on surface sampling density Missed holes Dependent on light source sampling density s1s1 s2s2 missed blocker