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.

Slides:



Advertisements
Similar presentations
Illumination Lighting and Shading CSE 470/598 Introduction to Computer Graphics Arizona State University Dianne Hansford.
Advertisements

1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 6.
Lecture 14 Illumination II – Global Models
CSPC 352: Computer Graphics
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Lighting and Illumination Lighting is the major problem in computer graphics, for either realism or real-time compositions- harder than modeling Consider.
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
Computer Graphics - Class 10
IMGD 1001: Illumination by Mark Claypool
Lighting and Shading Wen-Chieh (Steve) Lin
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
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.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Illumination and Shading
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Course Website: Computer Graphics 16: Illumination.
Lighting & Shading.
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.
Shading Surface can either (both) 1.Emit light. E.g. light bult 2.Reflect light. E.g. Mirror.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
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.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Illumination and Shading
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
Local Illumination and Shading
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
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.
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
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
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)
Computer Graphics: Illumination
Illumination Models and Surface-Rendering Methods CEng 477 Introduction to Computer Graphics.
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.
7. Illumination Phong Illumination Diffuse, Specular and Ambient
Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
Lighting.
CSE 470 Introduction to Computer Graphics Arizona State University
Isaac Gang University of Mary Hardin-Baylor
Chapter IX Lighting.
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
Advanced Computer Graphics
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CS 480/680 Computer Graphics Shading.
Lighting Calculations
Presentation transcript:

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

What is Lighting? 3 Light plays an important part in computer graphics for rendering realistic images. Using lighting models, we can simulate shading, reflection and refraction of light, comparable to what we see in the real world. 2. As a wave

What is a Illumination? 4 Example 1. Find the cubic polynomial or that passes through the four points and satisfies Interactions between light sources and the object surface An “illumination model” describes inputs, assumptions, and outputs used to calculate illumination (color / brightness) of surface elements Usually includes Light attributes (intensity, color, position, direction, shape) Object surface properties (color, reflectivity, transparency, etc.) Interaction between lights and objects

Basic Light Sources 5 Example 1. Find the cubic polynomial or that passes through the four points and satisfies  The amount that a light illuminates an object decreases with the square of the distance between them. This is known as Light Attenuation. As part of illumination models, one can specify whether the light intensity varies with the distance between the object and the light source

Illumination Models  Local Illumination  Takes only direct lighting information  refers to direct interaction between one light source and one object surface.  Global Illumination  refers to the interaction of light between all surfaces in a scene.  Most light striking a surface element comes directly from a light emitting source (direct illumination)  Sometimes light from a source is blocked by another object, resulting in shadows  However, objects in the shadow can still receive light from light bouncing off other objects (indirect illumination) 6

Example 1: Local Illumination Only considers the light, the observer position, and the object’s material properties OpenGL does this.

Example 2: Global Illumination Takes into account of the interaction of light from all the surfaces in the scene Recursive ray tracing is an example. It models light rays bouncing between objects

Local Illumination Model 9 In computer graphics, single object-light interaction is approximated through local illumination models. Basic model used is the Phong model which breaks local illumination into 3 components: Ambient reflection Diffuse reflection Specular reflection For every point, or small surface area, of an object, we want to calculate the light due to these three components.

Ambient Reflection 10 Example 1. Find the cubic polynomial or that passes through the four points and satisfies Ambient light = background light, it is used to simulate indirect lighting Ambient component Independent of Object’s position Viewer’s position Light source’s position Dependent of A constant factor (in each of the R, G, B channels)

Diffuse Reflection Diffuse light = illumination that a surface receives from a light source that reflects equally in all directions Independent of: Viewer’s position Dependent of: Light’s position Surface property (normal, reflectance property) 11

Lambert’s Law Need to know how much light a point on the object receives from the light source Solution based on Lambert’s Law 12 Point receives more light Point receives less light Diffuse = Kd*I*cos(theta)

Specular Reflection I  Specular light = light reflection from shiny surfaces  Color depends on material and how it scatters light  Shiny surfaces (metal, mirror, etc.) reflect more light  Specular light depends on both light source position and view position 13 Example 1. Find the cubic polynomial or that passes through the four points and satisfies

Specular Reflection II 14 Example 1. Find the cubic polynomial or that passes through the four points and satisfies

Variation in Diffuse and Specular in Local Model Putting Diffuse and Specular together in a local illumination model 15 Example 1. Find the cubic polynomial or that passes through the four points and satisfies

Phong Lighting Equation 16

Shading vs. Lighting  How is Shading different from Lighting?  Lighting evaluates the lighting equation at each point on the surface of an object  Shading is kind of a “hack” that computes only lighting equations on the vertices, and interpolates the pixels in between