Materials Digital Image Synthesis Yung-Yu Chuang 11/08/2005 with slides by Robin Chen.

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

Color: This channel applies color, textured patterns, or images to the surface.
Shaders Information on Light, Shadows & Roughness.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Retrospect Digital Image Synthesis Yu-Ting Wu. So far we have learned: Geometry and transforms Shapes Accelerators Color and radiometry Cameras Sampling.
Light Issues in Computer Graphics Presented by Saleema Amershi.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
ENVIRONMENT MAPPING. Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel.
Object recognition under varying illumination. Lighting changes objects appearance.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
LIGHTING Part One - Theory based on Chapter 6. Lights in the real world Lights bounce off surfaces and reflect colors, scattering light in many directions.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
© 2005 University of Wisconsin
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Digital Image Synthesis Yung-Yu Chuang
CS 445 / 645: Introductory Computer Graphics
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Reflection Models I Today Types of reflection models The BRDF and.
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
Geometry and Transformations Digital Image Synthesis Yung-Yu Chuang 9/28/2006 with slides by Pat Hanrahan.
MIT EECS 6.837, Durand and Cutler Local Illumination.
Digital Image Synthesis Yung-Yu Chuang
Materials Digital Image Synthesis Yung-Yu Chuang 11/19/2008 with slides by Robin Chen.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Reflection models Digital Image Synthesis Yung-Yu Chuang 11/01/2005 with slides by Pat Hanrahan and Matt Pharr.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Reflection models Digital Image Synthesis Yung-Yu Chuang 11/22/2007 with slides by Pat Hanrahan and Matt Pharr.
© Machiraju/Möller Fundamentals of Rendering - Reflectance Functions cis782 Advanced Computer Graphics Raghu Machiraju.
Shapes Digital Image Synthesis Yung-Yu Chuang 10/05/2006 with slides by Pat Hanrahan.
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.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
Color: This channel applies color, textured patterns, or images to the surface.
Getting in Light’s Way. Optics For the study of optics, when looking at the behaviour of light, it is very helpful to use a simplified model called the.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
CS348B Lecture 10Pat Hanrahan, Spring 2005 Reflection Models I Today Types of reflection models The BRDF and reflectance The reflection equation Ideal.
COMPUTER GRAPHICS CS 482 – FALL 2015 OCTOBER 27, 2015 SCATTERING LIGHT SCATTERING PHYSICALLY BASED SCATTERING SUBSURFACE SCATTERING AMBIENT OCCLUSION.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by Pat Hanrahan and Matt Pharr.
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)
Light. Intensity calculation = wavelength I( ) = wavelength intensity of light reaching eye I( ) = I diff ( ) + I spec ( ) + I refl ( ) + I trans ( )
Computer Graphics: Illumination
Physics fundamentals of 3D rendering Szirmay-Kalos László Science is either physics or stamp collecting. Rutherford.
1 Dr. Scott Schaefer Lighting. 2/49 Lighting/Illumination Color is a function of how light reflects from surfaces to the eye Global illumination accounts.
7. Illumination Phong Illumination Diffuse, Specular and Ambient
Digital Image Synthesis Yung-Yu Chuang 11/16/2006
Digital Image Synthesis Yung-Yu Chuang 11/16/2006
Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model
Illumination Model How to compute color to represent a scene
Digital Image Synthesis Yung-Yu Chuang 10/4/2005
Digital Image Synthesis Yung-Yu Chuang 9/27/2005
Digital Image Synthesis Yung-Yu Chuang 10/19/2006
Digital Image Synthesis Yung-Yu Chuang 9/28/2006
Digital Image Synthesis Yung-Yu Chuang 10/22/2009
Isaac Gang University of Mary Hardin-Baylor
Computer Graphics (Fall 2003)
Digital Image Synthesis Yung-Yu Chuang 9/24/2009
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Materials Digital Image Synthesis Yung-Yu Chuang 11/08/2005 with slides by Robin Chen

Bump mapping Augments geometrical details to a surface without changing the surface itself

Bump mapping

often ignored Material::Bump(…) does the above calculation

Materials A surface shader, represented by Material, is bound to each primitive in the scene. Material=BSDF+Texture (canned materials)

BSDFs BSDF =a collection of BxDF (BRDFs and BTDFs) A real material is likely a mixture of several specular, diffuse and glossy components (pbrt limits 8 components) inline void BSDF::Add(BxDF *b) { Assert(nBxDFs < MAX_BxDFS); bxdfs[nBxDFs++] = b; }

BSDF Spectrum BSDF::f(const Vector &woW,const Vector &wiW, BxDFType flags) { Vector wi=WorldToLocal(wiW), wo=WorldToLocal(woW); if (Dot(wiW, ng) * Dot(woW, ng) > 0) // ignore BTDFs flags = BxDFType(flags & ~BSDF_TRANSMISSION); else // ignore BRDFs flags = BxDFType(flags & ~BSDF_REFLECTION); Spectrum f = 0.; for (int i = 0; i < nBxDFs; ++i) if (bxdfs[i]->MatchesFlags(flags)) f += bxdfs[i]->f(wo, wi); return f; }

Material core/material.*, materials/*.cpp Material::GetBSDF() determines the reflective properties for a given point on the surface. BSDF *GetBSDF(DifferentialGeometry &dgGeom, DifferentialGeometry &dgShading);

Matte Purely diffuse surface class Matte : public Material { public: Matte(Reference > kd, Reference > sig, Reference > bump) { Kd = kd; sigma = sig; bumpMap = bump; } BSDF *GetBSDF(const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading) const; private: Reference > Kd; Reference > sigma, bumpMap; };

Matte BSDF *Matte::GetBSDF(DifferentialGeometry &dgGeom, DifferentialGeometry &dgShading) { DifferentialGeometry dgs; if (bumpMap) Bump(bumpMap, dgGeom, dgShading, &dgs); else dgs = dgShading; BSDF *bsdf = BSDF_ALLOC(BSDF)(dgs, dgGeom.nn); Spectrum r = Kd->Evaluate(dgs).Clamp(); float sig = Clamp(sigma->Evaluate(dgs), 0.f, 90.f); if (sig == 0.) bsdf->Add(BSDF_ALLOC(Lambertian)(r)); else bsdf->Add(BSDF_ALLOC(OrenNayar)(r, sig)); return bsdf; }

Lambertian

Oren-Nayer model

Plastic A mixture of a diffuse and glossy scattering function with parameters, kd, ks and rough BSDF *Plastic::GetBSDF(...) { Spectrum kd = Kd->Evaluate(dgs).Clamp(); BxDF *diff = BSDF_ALLOC(Lambertian)(kd); Fresnel *f=BSDF_ALLOC(FresnelDielectric)(1.5f,1.f); Spectrum ks = Ks->Evaluate(dgs).Clamp(); float rough = roughness->Evaluate(dgs); BxDF *spec = BSDF_ALLOC(Microfacet)(ks, f, BSDF_ALLOC(Blinn)(1.f / rough)); bsdf->Add(diff); bsdf->Add(spec); return bsdf; }

Plastic

Additional materials There are totally 14 material plug-ins available in pbrt. Most of them are just variations of Matte and Plastic. Translucent : glossy transmission Mirror : perfect specular reflection Glass : reflection and transmission, Fresnel weighted ShinyMetal: Substrate: layered-model Clay, Felt, Primer, Skin, BluePaint, Brushed Metal : measured data fitted by Lafortune Uber

Blue paint (measured Lafortune)

Substrate