Lighting CSIS 5838: Graphics and Animation for Gaming.

Slides:



Advertisements
Similar presentations
Computer Graphics - Shading -
Advertisements

Shaders Information on Light, Shadows & Roughness.
The bouncing off of light as it hits a surface
Foundations of Physics
Light and Optics 4.1 Mirrors form images by reflecting light. 4.2
Reflection Light incident upon a boundary between
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.
Reflection and Mirrors Chapter 23 Lesson 2 Notes.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
Computer Graphics - Class 10
Chapter 11 Review Mirrors & Lenses. What is an angle of incidence? 2 The angle between an incident ray and the normal of an optical device. Category:
7M836 Animation & Rendering
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
18.2 Reflection and Mirrors
Optics Lesson 3 Introduction to Reflection and Plane Mirrors
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
CH 32: geometric optics. Reflection: Reflection is the simplest method for changing the direction of light. Reflection – Light incident on a boundary.
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.
LIGHT AND ITS USES. LIGHT RAY STRAIGHT LINE PATH OF LIGHT.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
Characteristics & Ray Diagrams
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Chapter 23 Ray Optics Why doesn’t this work with real spoons?
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Illumination and Shading How to shade surfaces based on the position,orientation,characteristics of the surfaces and the light sources illuminating them.
Law of reflection Watch the next 5 slides for Part IV.
Diffuse Reflections from Rough Surfaces Lecture #5
Illumination and Shading
Light and Its Uses.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Ray Tracing CSIS 5838: Graphics and Animation for Gaming.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
Local Illumination and Shading
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Laws of Reflection and Plane Mirror Images
Why we see images in mirrors Or… The angle of reflection is equal to the angle of incidence.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Lighting and Reflection Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
The incident ray and the reflected ray behave in predictable ways, which leads to the two laws of reflection: 1.The angle of incidence equals the angle.
A light beam striking a boundary between two media can be partly transmitted and partly reflected at the boundary.
Radiometry of Image Formation Jitendra Malik. What is in an image? The image is an array of brightness values (three arrays for RGB images)
Computer Graphics Lecture 26 Mathematics of Lighting and Shading Part II Taqdees A. Siddiqi
Light and Reflection.
Chapter 17 Objectives: 1) Define the Law of Reflection and use a plane mirror as an example. 2) Differentiate between regular and diffuse reflection. 3)
Laws of reflection.
Reflection of Light Definition of Reflection Types of Reflection
Ch. 22 Sec. 3 Reflection & Mirrors
CSC461: Lecture 23 Shading Computation
Illumination Model How to compute color to represent a scene
Lesson 14 Key Concepts and Notes
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Mirrors.
Isaac Gang University of Mary Hardin-Baylor
Reflection Physics Chapter 18a.
OPTICAL DESIGN K.F. Chan (Mr.) MEBS 6002.
Lighting and Shading (I)
14th Lecture – Final Lecture
Chapter 14 Shading Models.
CS 480/680 Computer Graphics Shading.
Physics 1161 Prelecture 16 Reflection of Light
Reflection.
Presentation transcript:

Lighting CSIS 5838: Graphics and Animation for Gaming

Terminology ϴ L : Incident light angle to point on surface ϴ V : Incident viewing angle to point on surface K: Intensity of light source Surface in image Focal point of camera Light source (intensity I) Image plane ϴLϴL ϴVϴV

Reflected Light Amount of light received by surface proportional to K cos(ϴ L ) Light source Light concentrated in smallest area at ϴ L = 90° Light more “spread out” at smaller ϴ L

Shape from Shading Brain reverses this process, interpolating shape from shading across surface – No variation in lighting  flat surface – Slow variation in lighting  curved surface – Sharp variation in lighting  corners

Smooth Shading Can create illusion that non-curved surface is curved – More efficient than adding large number of vertices Interpolate curve through series of edges – Often done with Bezier curves (built into Blender) Render image based on interpolated curves, not actual surface

Diffuse Reflection Portion of light “scattered” from surface, reflecting in all directions ϴ V Surface in image Focal point of camera Light sourceImage plane ϴLϴL ϴVϴV

Specular Reflection Portion of light directly reflected from surface, only visible if ϴ V = ϴ L (Snell’s law) Surface in image Not visible Light source ϴLϴL ϴVϴV visible

Specular Reflection in Blender “Hardness” parameter defines additional angles at which specular light visible Light intensity function of |ϴ L - ϴ v |/hardness ϴ L - ϴ V Intensity Hardness = 20 Hardness = 2

Lambertian Model Assumption: Amount of light reflected in direction ϴ V = K cos(ϴ V ) – Most light reflected normal to surface – Less light reflected parallel to surface

Lambertian Model Amount of surface projected to camera inversely proportional to ϴ V = 1/cos(ϴ V ) Light source Smallest surface at ϴ v = 90° More surface at smaller ϴ V

Lambertian Model Amount of light received by camera = K cos(ϴ V ) * 1/cos(ϴ V ) Lambertian assumption: Amount of light percieved independent of viewing direction – Simplest to compute – Close to being true for many surfaces (moon)