SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production SIGGRAPH 2010 Physically Based Shading Models in Film and Game Production.

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

Exploration of advanced lighting and shading techniques
Shaders Information on Light, Shadows & Roughness.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Computer graphics & visualization Global Illumination Effects.
Environment Mapping CSE 781 – Roger Crawfis
Lecture 14 Illumination II – Global Models
Week 9 - Monday.  What did we talk about last time?  BRDFs  Texture mapping and bump mapping in shaders.
Spherical Harmonic Lighting of Wavelength-dependent Phenomena Clifford Lindsay, Emmanuel Agu Worcester Polytechnic Institute (USA)
Image Based Lighting (IBL)
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Definition Platforms for this talk –Windows / DirectX11 –OpenGL 4 / OpenGL ES 3.0 –PlayStation 4 –Xbox One.
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
Based on slides created by Edward Angel
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular.
Rendering (彩現 渲染).
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Part I: Basics of Computer Graphics
(conventional Cartesian reference system)
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
IN4151 Introduction 3D graphics 1 Introduction to 3D computer graphics part 2 Viewing pipeline Multi-processor implementation GPU architecture GPU algorithms.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Course Website: Computer Graphics 16: Illumination.
Illumination Behaviour of light. Shading Overview Classical real-time shading: – vertices projected to screen – lighting calculation done at each vertex.
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Computer Graphics Inf4/MSc Computer Graphics Lecture Notes #16 Image-Based Lighting.
SIGGRAPH 2010 Course: Color Enhancement and Rendering in Film and Game Production SIGGRAPH 2010 Color Enhancement and Rendering in Film and Game Production.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
Real-Time Rendering Digital Image Synthesis Yung-Yu Chuang 01/03/2006 with slides by Ravi Ramamoorthi and Robin Green.
An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University SIGGRAPH 2001 Stanford University SIGGRAPH.
Real-time Shading with Filtered Importance Sampling Jaroslav Křivánek Czech Technical University in Prague Mark Colbert University of Central Florida.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Steve Sterley. Real World Lighting Physical objects tend to interact with light in three ways: Absorption (black body) Reflection (mirror) Transmission.
Advanced Illumination Models Chapter 7 of “Real-Time Rendering, 3 rd Edition”
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Specular Reflection Lecture 27 Mon, Nov 10, 2003.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
Local Illumination and Shading
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
CSE 681 Introduction to Ray Tracing. CSE 681 Ray Tracing Shoot a ray through each pixel; Find first object intersected by ray. Image plane Eye Compute.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics Lecture 30 Mathematics of Lighting and Shading - IV Taqdees A. Siddiqi
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Reflectance Models CS 319 Advanced Topics in Computer Graphics John C. Hart.
Computer Graphics: Illumination
Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
Shading Variation in observed color across an object
Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model
Chapter XVI Texturing toward Global Illumination
Chapter IX Lighting.
CS5500 Computer Graphics May 29, 2006
Introduction to Ray Tracing
Presentation transcript:

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production SIGGRAPH 2010 Physically Based Shading Models in Film and Game Production - Practical implementation at tri-Ace Yoshiharu Gotanda Research and Development Department tri-Ace, Inc.

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production History Non-physical Blinn-Phong model, as commonly used in games n : Shininess (cosine power) R d : Diffuse color R s : Specular color F 0 : Fresnel coefficient G : Geometry Attenuation

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Difficulty with ad-hoc models Artists tend to have difficulty matching physical accurate values –Even if one object has a 1,000x stronger specular than another, they don’t set those values Difficult to see this dynamic difference in Low Dynamic Range (LDR) images –Problem with Schlick’s approximation in production Wrong setting

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with Schlick’s approximation Fresnel term is implemented with Schlick’s approximation –For Blinn model shaders and Fresnel shaders Previously, artists directly set f 0 parameter in a tool –e.g. A material has a refractive index of 1.5, setting f 0 to 0.04 is correct and means »Reflection ratio between normal and glancing direction is 25 –But…

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with Schlick’s approximation 25x specular variance is not intuitively acceptable by artists 25x specular variance f 0 = 0.04 f 0 = 0.04 with a refractive index of 1.5

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with Schlick’s approximation Then, an artist incorrectly sets 0.3 or 0.5 based on their intuition –Consequently normal reflectance becomes stronger Specular looks too strong compared to reality The artist reduces specular intensity –Specular looks too weak at glancing angles Specular highlight on the edge with back lighting can’t be represented

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production If f 0 is too large Too weak specular on edge Too strong specular in normal direction Too small specular value Correct Too high Fresnel value

Our solution Parameters for Fresnel are changed to use either Complex refractive indices OR Prebuilt material templates SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production

Why physically based? Artists can more easily manipulate the parameters –Fewer parameters and textures –Shader guarantees physically correct appearance

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Our BRDF model Blinn-Phong based BRDF Our customized Blinn-Phong n : Shininess (cosine power) R d : Diffuse albedo F 0 : Normal Specular Reflectance Details on how we derived this expression are in the course notes

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Normalization Factor Approximation The result is expensive for real-time –Therefore, we approximate it with a linear function instead Normalization Factor shininess

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Final Model Diffuse term is also approximated for performance Our customized model

Comparison SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ad-hoc Our spectral model

Comparison - shininess map only SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ad-hoc Our model

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Comparison - reflectance map only Ad-hoc with specular color map Our model Our spectral model

Comparison SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ad-hoc Our model Ad-hocOur Spectral model

Comparison - shininess map only SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ad-hocOur model Ad-hocSpectral model

Comparison - metal SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Aluminum CopperTitanium Our spectral model Our metal model

Other shader variations SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production MarschnerKajiya-Kay

Other shader variations SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ashikhmin-ShirleyOur anisotropic model

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with ambient lighting Even with physically-based shading models, ambient lighting is still not physically-based –Ambient term is typically computed as a constant Based on a diffuse only term Based on arbitrary value between diffuse and specular terms Ideally, ambient lighting should be computed as spherical area lighting with a proper BRDF

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with ambient lighting Quality degrades in scenes mainly lit by ambient lighting –Shadowed areas –Inside a house lit only by daylight (no artificial lights) –Cloudy outside

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ambient lighting improvements Spherical Harmonic lighting –Irradiance or SH volumes Image based lighting (environment mapping) Ambient occlusion Ambient Occlusion OFFAmbient Occlusion ON

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Problem with ambient lighting

Manual solutions Artists have fought against the problem by hand –Put secondary lights Rim light, fill light –Build a special shader Solve the problem using our highly flexible shader system Non-physical solution SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production

Manual solutions No solutionSpecial shader by an artist (No BRDF solution) Manual lighting

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ambient BRDF A new BRDF model for ambient shading –In order to improve quality of ambient shading Specular and diffuse components are computed taking into account ambient lighting Ambient term is no longer a constant –Ambient lighting is regarded as area lighting

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production BRDF integral for ambient shading Integrate a BRDF model over hemisphere –The results are stored in a linear (non-swizzled) volume texture U – (E ・ N) : dot product of eye and normal vector V – shininess W – f 0

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Ambient BRDF Shading Use the volume texture in pixel shader –Specular term is computed as texture fetch The texture directly stores the specular term –Diffuse term is Rd*(1 – specular) Ideally diffuse term should be stored in the texture for accurate result In our case, diffuse term is approximated for performance

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Color terms for Ambient BRDF For SH lighting –Diffuse lighting color is computed with a normal vector –Specular lighting color is computed with a reflection vector No specular cosine lobe is considered Coarsely approximated

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Color terms for Ambient BRDF For image based lighting –Diffuse lighting color is computed with Diffuse cube map SH vector (computed from an environment map) –Specular lighting color is computed with Pre-filtered mipmapped environment map

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Result - Ambient + Ambient BRDF

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Comparison – Ambient BRDF OFFON

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Comparison – Ambient BRDF OFFON

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Performance Ad-hoc model Customized model Anisotropic model Spectral model Metal model Ashikhmin Ambient BRDF off Ambient BRDF on N/A Unit : ms

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Final comparison 1 Our physically based models Ad-hoc model

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Final comparison 2 Our physically based models Ad-hoc model

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Final comparison 3 Our physically based models Ad-hoc model

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Conclusion A physically based model is –Easy to use for artists –Easy to get photo-realistic results –Reasonable to use in terms of performance Ambient shading improvement is important –Improvement is possible in real-time

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Thanks to the following people R&D programmers: –Tatsuya Shoji, Bart Sekura and Elliott Davis Artists: –Kenichi Kanekura, Kazuki Shigeta, Kenichi Kaneko and Ryo Mizukami Speakers for this course

SIGGRAPH 2010 Course: Physically Based Shading Models in Film and Game Production Thanks htttp://research.tri-ace.com