Extending the Disney BRDF to a BSDF with Integrated Subsurface Scattering. Brent Burley Walt Disney Animation Studios

Similar documents
AWE Surface 1.0 Documentation

CS 5625 Lec 2: Shading Models

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

RND102 - Intro to Path Tracing & RIS in RenderMan

Timothy Walsh. Reflection Models

Wednesday, July 24, 13

Local Reflection Models

02 Shading and Frames. Steve Marschner CS5625 Spring 2016

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

Property of: Entrada Interactive. PBR Workflow. Working within a PBR-based environment

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

The Rendering Equation. Computer Graphics CMU /15-662

Lecture 4: Reflection Models

Illumination. Illumination CMSC 435/634

Materials in Kerkythea ~ a beginners guide

Here I ll present a brief summary of the important aspects and then dive into improvements we made on Black Ops II.

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

CS6670: Computer Vision

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Global Illumination The Game of Light Transport. Jian Huang

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Ray Tracing: shading

Lighting and Materials

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Chapter 4- Blender Render Engines

Background: Physics and Math of Shading

Lighting and Shading

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Point based global illumination is now a standard tool for film quality renderers. Since it started out as a real time technique it is only natural

Path Traced Subsurface Scattering using Anisotropic Phase Functions and Non-Exponential Free Flights

Complex Shading Algorithms

Interactive Methods in Scientific Visualization

Physically Based Shading in Unity. Aras Pranckevičius Rendering Dude

Life on the Bleeding Edge: More Secrets of the NVIDIA Demo Team Eugene d Eon NVIDIA Corporation.

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Chapter 9- Ray-Tracing

Subsurface Scattering & Complex Material Properties

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Lighting Killzone : Shadow Fall

3 Interactions of Light Waves

Texture Mapping. Images from 3D Creative Magazine

of the NVIDIA Demo Team Eugene d Eon 2008 NVIDIA Corporation.

Iray Uber Shader Properties. Workshop Reference Guide

Shading & Material Appearance

Shading I Computer Graphics I, Fall 2008

Due to time constraints, I will be brief. You can check the slides for more details later.

Lab 9 - Metal and Glass

Virtual Spherical Lights for Many-Light Rendering of Glossy Scenes

Radiometry and reflectance

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

CS6670: Computer Vision

Shading. Brian Curless CSE 557 Autumn 2017

Physically Based Shading at Disney

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Computer Graphics. Illumination and Shading

Materials & Shadows. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Winter 2017

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Ray Tracing: Special Topics CSCI 4239/5239 Advanced Computer Graphics Spring 2018

Recall: Basic Ray Tracer

Snow Shader R&D in UDK I3 DLC

Surface Reflection Models

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Simple Lighting/Illumination Models

BRDFs. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Introduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF

Comp 410/510 Computer Graphics. Spring Shading

CSE 681 Illumination and Phong Shading

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source

Visual Appearance and Color. Gianpaolo Palma

Adding Spherical Harmonic Lighting to the Sushi Engine. Chris Oat 3D Application Research Group. ATI Research, Inc.

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Lecture 15: Shading-I. CITS3003 Graphics & Animation

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component

Virtual Reality for Human Computer Interaction

Soft shadows. Steve Marschner Cornell University CS 569 Spring 2008, 21 February

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again.

Oso Toon Shader. Step 1: Flat Color

Lighting affects appearance

Material Definition Language

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Computer Graphics (CS 543) Lecture 8 (Part 1): Physically-Based Lighting Models

Illumination and Shading - II

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Reflection models and radiometry Advanced Graphics

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

8 Human Skin Materials and Faking Sub Surface Scattering in Cycles

CS-184: Computer Graphics. Today

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014

The Bidirectional Scattering Distribution Function as a First-class Citizen in Radiance. Greg Ward, Anyhere Software

CS452/552; EE465/505. Intro to Lighting

Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs

Material Definition Language Handbook

Transcription:

The 42nd International Conference and Exhibition on Computer Graphics and Interactive Techniques Extending the Disney BRDF to a BSDF with Integrated Subsurface Scattering Brent Burley Walt Disney Animation Studios Disney This talk will show how we extended our BRDF to include refraction and subsurface scattering.

Wreck-It Ralph (2012) Disney Enterprises, Inc. Developed physically based BRDF for Wreck-It Ralph Used on everything but hair

Disney BRDF 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 subsurface metallic specular speculartint roughness anisotropic sheen sheentint clearcoat clearcoatgloss Disney Enterprises, Inc. It had 10 uniform parameters, all combinations were plausible, or at least well behaved.

Frozen (2013) Disney Enterprises, Inc. BRDF unmodified for Frozen Refraction and subsurface blended in separately by artists

Disney Enterprises, Inc. For Big Hero 6 we switched to path-traced GI. This required refraction and subsurface to be integrated to ensure energy conservation. Also needed efficient sampling because we needed to shaded 1000 times as many shading points, and we wanted to improve the ease of use.

BRDF diffuse transmission specular transmission subsurface scattering Examples of effects we wanted to achieve. Need to support thin surfaces as well as solids. refraction

Disney BRDF metallic BRDF mix metallic dielectric BRDF To recap, our BRDF was a blend of two distinct material models. Our goal wasn t to make plasti-metal. Rather, we want to allow all parameters to be driven with texture maps.

Disney BSDF specular BSDF metallic BRDF mix mix spectrans metallic dielectric BRDF For our BSDF we blended in a third model with a new parameter, spectrans. Metallic takes precedence - metal over glass.

surface diffuse subsurface For subsurface, most models assume the bounding surface is perfectly smooth.

micro-surface diffuse retro-reflection sheen subsurface Instead, we view the surface as having micro-surface diffuse effects: retro-reflection and sheen For subsurface scattering we want to replace just the diffuse portion

micro-surface diffuse retro-reflection sheen http://blog.selfshadow.com/publications/s2012-shading-course/burley/ s2012_pbs_disney_brdf_notes_v3.pdf subsurface See our 2012 course notes for more details. Note: Additional details such as a description of sheen were added in v3 in 2014.

micro-surface diffuse retro-reflection sheen http://blog.selfshadow.com/publications/s2012-shading-course/burley/ s2012_pbs_disney_brdf_notes_v3.pdf subsurface See our 2012 course notes for more details. Note: Additional details such as a description of sheen were added in v3 in 2014.

Outline Specular transmission Subsurface scattering Thin surface approximation Layered shader UI Production results

Specular Transmission

Couple things to be careful about: - not reciprocal... be careful about direction - there s a factor omitted from Walter to account for solid angle compression that you may or may not need Details in the notes. Specular Transmission clearcoat specular specular reflection = FDG specular transmission = f(η) (1-F)DG Microfacet Models for Refraction, Walter et al., 2007 Disney Enterprises, Inc. This is just the Walter model which is the standard now. Same as reflection but with 1-F and IOR correction.

Furnace Test Rough glass sphere The microfacet model is known to lose energy due to shadowing. Rough glass sphere is rendered with path tracing and fails furnace test. Eric Heitz showed that Smith shadowing used by Walter conserves energy if you measure energy leaving the microsurface before shadowing. He calls this the weak furnace test, but it still loses energy in practice. This is visible in practice and our artists complain about this darkening.

Furnace Test Rough glass sphere + sheen Interestingly, adding sheen can replace the lost energy. Note: this is very approximate, and doesn t work as well for other roughness values and justifies our motivation more than exact implementation, though it suggests it s at least in the ballpark.

1.0 Fresnel ( =0.4) 0.8 Schlick Schlick ( t ) 0.6 F ( ) 0.4 0.2 critical angle for total internal reflection 0.0 0 c /2 There s a problem when using Schlick for internal reflection. Should go to 1 at critical angle for total internal reflection. Easy fix: use θt instead of θi. Details in course notes.

1.0 Fresnel ( =1.02) 0.8 Schlick 0.6 F ( ) 0.4 0.2 0.0 0 /2 Another problem when IOR is near 1.0. 1.02 is the relative IOR of ice in water. Schlick is up to 40x too bright. For refraction, real Fresnel is almost as cheap as Schlick given that you need to compute θt anyway, so we just use the real thing.

1.02 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 IOR spectrans 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 2.0 Example of our new parameters. IOR controls bending and strength of specular highlight. 1-2 roughly corresponds to specular 0-1 of our BRDF. Note: 1.0 would be invisible. Disney Enterprises, Inc.

Transmittance Beer-Lambert Law Disney Enterprises, Inc. Transmittance is exponentially proportional to distance times absorption coefficient, but parameterization is not intuitive.

Transmittance T: d: 1.0, 0.7, 0.1 16 8 4 2 1 Beer-Lambert Law Disney Enterprises, Inc. Instead, we allow specification of a transmittance color and a distance at which that color is reached, and we infer the absorption coefficient.

Subsurface Scattering

Refactored Diffuse Lobe diffuse/retro-reflection + sheen Disney Enterprises, Inc. For subsurface, we want to replace just the diffuse lobe. To do this, we had to refactor our retroreflection to be additive. Details in the course notes.

Refactored Diffuse Lobe diffuse/retro-reflection + sheen diffuse or subsurface + retroreflection + sheen Disney Enterprises, Inc. For subsurface, we want to replace just the diffuse lobe. To do this, we had to refactor our retroreflection to be additive. Details in the course notes.

Subsurface Scattering Path Tracing Subsurface scattering can be computed using random path tracing. This has traditionally been considered prohibitive so a diffusion approximation is used.

Subsurface Scattering r Rd(r) Diffusion A random distance is chosen and a precomputed diffusion profile is used to estimate how much energy would make it to that point. An semi-infinite solid is assumed

Monte Carlo reference dipole Disney Enterprises, Inc. Dipole is too soft and has cyan band. Artists would typically use two dipoles combined in an ad-hoc way.

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.010 0.005 r Rd(r) 0.001 5 10-4 1 10-4 We fit first exponential to tail - (exp is a line in log space) We fit second exponential to residual 2 4 6 8 10 12 14 r

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.031 exp(-0.41 r) 0.010 0.005 r Rd(r) 0.001 5 10-4 1 10-4 We fit first exponential to tail - (exp is a line in log space) We fit second exponential to residual 2 4 6 8 10 12 14 r

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.031 exp(-0.41 r) + 0.02 exp(-1.7 r) 0.010 0.005 r Rd(r) 0.001 5 10-4 1 10-4 We fit first exponential to tail - (exp is a line in log space) We fit second exponential to residual 2 4 6 8 10 12 14 r

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.031 exp(-0.41 r) + 0.02 exp(-1.7 r) 0.010 0.005 r Rd(r) 0.001 5 10-4 1 10-4 We fit first exponential to tail - (exp is a line in log space) We fit second exponential to residual 2 4 6 8 10 12 14 r

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.010 0.005 r Rd(r) 0.001 5 10-4 1 10-4 2 4 6 8 10 12 14 Excellent fit with dipole shown for reference Blue dots exclude first scattering event and still don t fit the dipole r

Subsurface Scattering - investigation exponential fit Monte Carlo reference dipole Disney Enterprises, Inc. Our fit is visually indistinguishable from reference.

0.050 Monte Carlo reference 0.031 exp(-0.41 r) +.02 exp(-1.7 r) MC excluding single-scattering dipole 0.010 0.005 r Rd(r) exp(-r/3) + exp(-r) 0.001 5 10-4 1 10-4 2 4 6 8 10 12 14 Fitting 1000 s of profiles, we found this to be a representative shape in terms of the relative weight and scale of the lobes. It s not perfect so the constants are intentionally imprecise. r

Normalized Diffusion Disney Enterprises, Inc. Normalized in plane. d is the scatter distance. Mult. by basecolor at end - no albedo inversion required Can directly importance sample (as two lobes)

Per Christensen was able to find a mapping to our profile from standard scattering parameters and use it as a drop-in replacement. He found that it has less error that state of the art physically based profiles, and it is easier to compute.

scatterdist [0,0,0] [0.5, 0.25, 0.125] We do diffusion when scatterdist is non-zero, BRDF otherwise. You can see here that it converges exactly. 0.5 also goes about 1/2 way through the unit sphere.

Diffusion is not perfect. Here s a surface cavity and a path-traced path.

Here s how diffusion sees the surface. It transports too much energy.

We compensate by fading out the diffusion when the normals are opposing.

DISNEY It breaks down completely on more complex geometry. The small globules are too dark, and the complex areas on the base are too bright. This is because diffusion assumes the surface is an infinite slab (which is never the case).

Diffusion DISNEY We found that path tracing subsurface can now actually be practical. The result is more plausible and consistent. Path Tracing

Path-traced Subsurface Scattering Disney Enterprises, Inc. We used path-traced subsurface on Frozen Fever. Snow and ice integrated well. Very easy to set up.

Thin Surface BSDF

Thin Surface - Specular Transmission clearcoat specular specular reflection = FDG specular transmission = (1-F)DG Disney Enterprises, Inc. Just like solid but with no bending. But what value for roughness? Same as reflection? More, because there are two scattering events?

Reflection lobe width Refraction lobe width To our surprise, and artists, transmission is often less blurry than reflection. This figure illustrates why - the reflection spreads twice as much as the angle between microfacets the refraction bends only a little bit and spreads less. depends on IOR. IOR=1 would be no bend.

Solid Specular Transmission 1.2 1.4 IOR 1.6 1.8 2.0 Roughness=0.35 Disney Enterprises, Inc. Example on thin solid shows effect of IOR or specular transmission.

Solid Thin 1.2 0.15 1.4 0.20 1.6 0.24 1.8 0.29 2.0 0.33 IOR Roughness Roughness=0.35 Disney Enterprises, Inc. Hack - we can remap transmission roughness based on IOR. Not quite right for all angles and values, but better than nothing.

Thin Surface - Diffuse Transmission difftrans 0.0 diffuse sheen retroreflection difftrans 0.5 difftrans 1.0 Diffuse transmission forward vs back-scattering of diffuse. Note: no Fresnel on back side, multiple scattering events means no directionality Disney Enterprises, Inc.

Shader UI

Solid spectrans ior scatrdist R G B Thin spectrans ior flatness difftrans Two shading models New parameters highlighted Flatness is alternate, flatter diffuse shape (previously called subsurface)

Parameter Pass-through Disney Enterprises, Inc. Our parameter layers now support pass-through for selective masking. Esp. needed for subsurface which wants a different mask.

Parameter Pass-through Disney Enterprises, Inc. This is a production example.

Production Impact

DISNEY When we started building the renderer, we tried matching various objects and materials in our photo lab

PHOTO REFERENCE HYPERION RENDER DISNEY We did really well, but were surprised that the ping pong ball was the hardest thing to render. It turned out the ping pong ball needed lost of internal bounces.

PHOTO REFERENCE HYPERION RENDER DISNEY We did really well, but were surprised that the ping pong ball was the hardest thing to render. It turned out the ping pong ball needed lost of internal bounces.

Big Hero 6 (2014) Disney Enterprises, Inc. BSDF used on everything except hair. Baymax is a thin surface blend of spec and diffuse transmission. Thin also used for cloth and paper. Windows typically refractive solids.

Big Hero 6 (2014) Disney Enterprises, Inc. Refraction was used extensively. No longer just a hero effect. Subsurface was also widely used, not just for skin. Materials and lighting were very predictable.

Future Energy conserving microsurface scattering Better thin surface BSDF Better metal See course notes for more discussion and possible directions

Acknowledgements Chuck Tappan Matt Chiang Peter Kutz Christian Eisenacher Greg Nichols Special Thanks Stephen Hill Stephen McAuley