Shadow Maps. Previous Work 1.Casting Curved Shadows On Curved Surfaces ( Williams/sigg1978 ) 2.Deep Shadow Maps ( Lokovic/sigg2000 ) 3.Adaptive Shadow.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

Exploration of advanced lighting and shading techniques
Graphics Pipeline.
Direct Volume Rendering. What is volume rendering? Accumulate information along 1 dimension line through volume.
A Coherent Grid Traversal Algorithm for Volume Rendering Ioannis Makris Supervisors: Philipp Slusallek*, Céline Loscos *Computer Graphics Lab, Universität.
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
CHAPTER 12 Height Maps, Hidden Surface Removal, Clipping and Level of Detail Algorithms © 2008 Cengage Learning EMEA.
High-Quality Parallel Depth-of- Field Using Line Samples Stanley Tzeng, Anjul Patney, Andrew Davidson, Mohamed S. Ebeida, Scott A. Mitchell, John D. Owens.
Shadow and Shadow Maps [5]. Object without shadow seem floating above the scene Shadow gives the depth information Shadow gives the information of the.
Tuesday February 19 th, 2002 Deep Shadow Maps Tom Lokovic & Eric Veach Pixar Animation Studios Presented by Tom Lechner.
December 5, 2013Computer Vision Lecture 20: Hidden Markov Models/Depth 1 Stereo Vision Due to the limited resolution of images, increasing the baseline.
Nice, 17/18 December 2001 Adaptive Grids For Bathymetry Mapping And Navigation Michel Chedid and Maria-João Rendas I3S - MAUVE.
18.1 Si31_2001 SI31 Advanced Computer Graphics AGR Lecture 18 Image-based Rendering Light Maps What We Did Not Cover Learning More...
Shadow Silhouette Maps Pradeep Sen, Mike Cammarano, Pat Hanrahan Stanford University.
Final Gathering on GPU Toshiya Hachisuka University of Tokyo Introduction Producing global illumination image without any noise.
Flexible Bump Map Capture From Video James A. Paterson and Andrew W. Fitzgibbon University of Oxford Calibration Requirement:
Face Recognition Based on 3D Shape Estimation
Perspective Shadow Maps Marc Stamminger REVES/INRIA, Sophia-Antipolis, France now at: Bauhaus-Universität, Weimar, Germany George Drettakis REVES/INRIA,
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Beyond Meshes Spring 2012.
Erdem Alpay Ala Nawaiseh. Why Shadows? Real world has shadows More control of the game’s feel  dramatic effects  spooky effects Without shadows the.
Computer Graphics Mirror and Shadows
Ansh Bahri Sandeep Thippeswamy Sohil Himanish Anuja Chandorkar
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
Direct Illumination with Lazy Visibility Evaluation David Hart Philip Dutré Donald P. Greenberg Cornell University SIGGRAPH 99.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Stefan Roettger University of Stuttgart A Two-Step Approach for Interactive Pre-Integrated Volume Rendering of Unstructured Grids VolVis '02 A Two-Step.
Rendering Adaptive Resolution Data Models Daniel Bolan Abstract For the past several years, a model for large datasets has been developed and extended.
Computer Graphics Texture Mapping
Lecture 3 : Direct Volume Rendering Bong-Soo Sohn School of Computer Science and Engineering Chung-Ang University Acknowledgement : Han-Wei Shen Lecture.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
-Global Illumination Techniques
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
09/11/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Graphics Pipeline Texturing Overview Cubic Environment Mapping.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Marching Cubes: A High Resolution 3D Surface Construction Algorithm William E. Lorenson Harvey E. Cline General Electric Company Corporate Research and.
02/18/05© 2005 University of Wisconsin Last Time Radiosity –Converting the LTE into the radiosity equation –Solving with Gauss-Seidel relaxation –Form.
December 4, 2014Computer Vision Lecture 22: Depth 1 Stereo Vision Comparing the similar triangles PMC l and p l LC l, we get: Similarly, for PNC r and.
Real-Time Rendering SPEEDING UP RENDERING Lecture 04 Marina Gavrilova.
Emerging Technologies for Games Alpha Sorting and “Soft” Particles CO3303 Week 15.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Unstructured Volume Rendering Jian Huang, CS 594, Spring 2002 This set of slides reference slides developed by Prof. Torsten Moeller, SFU, Canada.
CS-378: Game Technology Lecture #4: Texture and Other Maps Prof. Okan Arikan University of Texas, Austin V Lecture #4: Texture and Other Maps.
Geometric Objects and Transformation
Computer Graphics 2 Lecture 7: Texture Mapping Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
Hierarchical Penumbra Casting Samuli Laine Timo Aila Helsinki University of Technology Hybrid Graphics, Ltd.
Computer Graphics II University of Illinois at Chicago Volume Rendering Presentation for Computer Graphics II Prof. Andy Johnson By Raj Vikram Singh.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Where We Stand At this point we know how to: –Convert points from local to window coordinates –Clip polygons and lines to the view volume –Determine which.
Discontinuous Displacement Mapping for Volume Graphics, Volume Graphics 2006, July 30, Boston, MA Discontinuous Displacement Mapping for Volume Graphics.
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
1 Shadow Rendering Techniques: Hard and Soft Author: Jamiur Rahman Supervisor: Mushfiqur Rouf Department of CSE BRAC University.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
09/23/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Reflections Shadows Part 1 Stage 1 is in.
Presented by 翁丞世  View Interpolation  Layered Depth Images  Light Fields and Lumigraphs  Environment Mattes  Video-Based.
Shuen-Huei Guan Seminar in CMLab, NTU
Real-Time Soft Shadows with Adaptive Light Source Sampling
3D Graphics Rendering PPT By Ricardo Veguilla.
Jim X. Chen George Mason University
Common Classification Tasks
3D Rendering Pipeline Hidden Surface Removal 3D Primitives
CS-378: Game Technology Lecture #4: Texture and Other Maps
Presentation transcript:

Shadow Maps

Previous Work 1.Casting Curved Shadows On Curved Surfaces ( Williams/sigg1978 ) 2.Deep Shadow Maps ( Lokovic/sigg2000 ) 3.Adaptive Shadow Maps ( Fernando/sigg2001 ) 4.Perspective Shadow Maps ( Stamminger/sigg2002 )

Adaptive Shadow Maps 1.Introduction 2.The ASM 2.1 Creating Nodes 2.2 Removing Nodes 3.Implementation 4.Results

Deep Shadow Maps 1.Introduction 2.The DSM 2.1 Definition 2.2 Sampling 2.3 Compression 3.Results 4.Conclusion

Adaptive Shadow Maps Randima Fernando Sebastian Fernandez Kavita Bala Donald P.Greenberg Program of Computer Graphics Cornell University

Introduction Want to create high-resolution pieces of the shadow map when needed.

Adaptive Shadow Maps Observation Only regions that contain shadow boundaries need to be high-quality. Solution ASM hierarchically subdivides the shadow map in visually important regions.

Adaptive Shadow Maps ASMs has three main characteristics: 1.It is view-driven. 2.It is confined to a user-specifiable memory limit. 3.It is progressive. Meaning that once a particular viewpoint is established, image quality continues to improve until the user-prescribed memory limit is reached.

Adaptive Shadow Maps ASMs are organized as trees. Each node in an ASM tree has a shadow map of a fixed resolution and a partitioning of that shadow map into a fixed number of cells. Each of these cells may contain another tree node. All this is done in response to the user-specified restrictions on memory usage.

Creating Nodes

At any time there are many cells that require new nodes to be assigned to them. It is only beneficial to create a new node if it causes a perceived improvement in shadow quality.

Creating Nodes Using cost-benefit metric We quantify this perceived benefit by counting the number of transformed eye pixels within the cell that straddle a depth discontinuity and whose shadow map resolution is lower than eye view resolution.

Creating Nodes The resolution required for the new shadow map to match the eye view resolution is: N’ = N * (Projected Area in Eye) / (Projected Area in Shadow Map) N :current resolution N’:required resolution

Creating Nodes The cost of generating a new shadow map can be approximated by: cost = a*N’ + b a :the per-pixel rendering b :the constant overhead

Removing Nodes

Since the ASM only uses a fixed amount of memory, a particular node’s memory might need to be reclaimed. LRU( Least Recently Used) is used. Removing least recently used nodes. But, if there are no such nodes……….

Implementation Mip-mapping It has the advantages of increasing the rendering speed and the level of detail. MIP Mapping works by using more than one version of each texture. With multiple levels of detail, it is not necessary to do as much computation to draw the texture, saving valuable processor time. Performing this calculation in software is too expensive,so we approximate this calculation using mip- mapping.

Implementation Combining ID and Depth Comparisons 1.Depth Comparison Shadow Maps 2.Polygon IDs Algorithms for Antialiased Cast Shadows(Nicolas/1985) 3.Depth Comparison + Polygons IDs

Results

Deep Shadow Maps Tom Lokovic Eric Veach Pixer Animation Studios

Introduction Because accurate self- shadowing is so important, rendering hair,fur,and smoke is difficult. The traditional Shadow Maps whose inadequate sampling results in sparkling when in the animation.

Introduction Deep Shadow Maps Rather than storing a single depth at each pixel, which stores a fractional visibility function. 補充 shadow maps: depth value / pixel deep shadow maps: visibility function / pixel DSP can process the opacities of surfaces and volume element in the same time.

Introduction DSP’s advantages: 1. They support semitransparent surfaces and volumetric primitives, such as smoke. 2. For high-quality shadows, they are smaller than equivalent shadow maps by an order of magnitude and are significantly faster to access. 3. Unlike ordinary shadow maps, they support mip-mapping. This can dramatically reduce lookup costs when objects are viewed over a wide range of scales.

Deep Shadow Maps Definition A deep shadow map is a rectangular array of pixels in which every pixel stores a visibility function. visibility function : The function value at a given depth is simply the fraction of the beam’s initial power that penetrates to that depth. The visibility function of each pixel is now obtained by filtering the nearby transmittance functions and resampling at the pixel center.

Deep Shadow Maps

Transmittance function The fraction of light that penetrates to a given depth z is known as the transmittance Visibility function 1.(i + 1/2, j + 1/2) is the pixel center. 2.f is the desired bandlimiting pixel filter,and r is the filter radius.

Deep Shadow Maps Visibility functions are closely related to the alpha channels used for image compositing. A deep shadow maps is equivalent to computing the approximate value of 1-α at all depths, and storing the result as a function of z.

Sampling

To generate a deep shadow map, we select a set of sample points across the shadow camera’s image plane.

Sampling For each sample point we determine the corresponding transmittance function. Finally, the visibility function for each pixel is computed by taking a weighted combination of the transmittance function at nearby sample points.

To compute a single transmittance function Given an image point (x, y), The transmittance function at this point can be expressed as: :Surface transmittance function :Volume transmittance function

To compute a single transmittance function Which is estimated using all of the surface intersection along the primary ray at( x,y ). Each surface hit has a depth value Zi and an opacity Oi. Starting with a transparency of 1 and multiplting by 1-Oi at each surface hit,to yield a piecewise constant function.

To compute a single transmittance function We sample the atmospheric density at regular intervals along the ray. Each volume sample has a depth value Zi and an extinction coefficient Ki that measures the light falloff per unit distance along the ray.

To compute a single transmittance function Since that function is not piecewise linear,we approximate it by evaluting the transmittance at each vertex of the extinction function and linearly interpolating. Finally transmittance function

Sampling

Compression

It is very important that the compression method preserve the z values of important features,since even small errors in z can lead to undesirable self-shadow artifact. V :visibility function V’:a new visibility function of our algorithm,and where V’ typically has a much smaller number of control points.

Compression The basic idea is that at each step, the algorithm draws the longest possible line segment that stays within the error bounds. Similar to hitting a ball through as many wickets as possible in a game of croquet. The origin of the current segment is fixed, and we only need to choose the direction and length of the segment.

Compression

Results

19 sec559 sec 400 samples/lookup 37 sec 256 samples/pixel

Results

Conclusion

A nice feature of deep shadow maps is their generality:they suppport ordinary surfaces,volumetric objects,and dense fur. A deep shadow map can be viewed as a two- dimensional function image of piecewise liner one- dimensional functions.

報告完畢