Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Similar documents
CS230 : Computer Graphics Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

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

Shading I Computer Graphics I, Fall 2008

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Illumination & Shading

Comp 410/510 Computer Graphics. Spring Shading

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

Virtual Reality for Human Computer Interaction

Lighting. Figure 10.1

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

Shading. Why we need shading. Scattering. Shading. Objectives

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

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

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

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

Illumination Models & Shading

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014

Introduction to Computer Graphics 7. Shading

Computer Graphics. Shading. Based on slides by Dianna Xu, Bryn Mawr College

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

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

CS5620 Intro to Computer Graphics

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

Interactive Real-Time Raycasting

Raytracing CS148 AS3. Due :59pm PDT

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

Why we need shading?

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

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

Illumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2

surface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source

Computer Graphics. Illumination and Shading

Lighting Models. CS116B Chris Pollett Mar 21, 2004.

CSE 681 Illumination and Phong Shading

Illumination & Shading: Part 1

Shading. Brian Curless CSE 557 Autumn 2017

Visualisatie BMT. Rendering. Arjan Kok

CS 4600 Fall Utah School of Computing

CS452/552; EE465/505. Intro to Lighting

Module 5: Video Modeling Lecture 28: Illumination model. The Lecture Contains: Diffuse and Specular Reflection. Objectives_template

Overview. Shading. Shading. Why we need shading. Shading Light-material interactions Phong model Shading polygons Shading in OpenGL

Illumination and Shading

Today we will start to look at illumination models in computer graphics

CPSC / Illumination and Shading

Computer Graphics. Illumination and Shading

Turn on the Lights: Reflectance

Objectives. Introduce Phong model Introduce modified Phong model Consider computation of required vectors Discuss polygonal shading.

Ray-Tracing. Misha Kazhdan

OpenGl Pipeline. triangles, lines, points, images. Per-vertex ops. Primitive assembly. Texturing. Rasterization. Per-fragment ops.

Simple Lighting/Illumination Models

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Three-Dimensional Graphics V. Guoying Zhao 1 / 55

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

CHAPTER5. We have learned to build three-dimensional graphical models and to LIGHTING AND SHADING

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

CS 325 Computer Graphics

Sung-Eui Yoon ( 윤성의 )

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016

CPSC 314 LIGHTING AND SHADING

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

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

C O M P U T E R G R A P H I C S. Computer Graphics. Three-Dimensional Graphics V. Guoying Zhao 1 / 65

OpenGL Lighting Computer Graphics Spring Frank Palermo

Introduction to Computer Graphics. Farhana Bandukwala, PhD Lecture 14: Light Interacting with Surfaces

Lighting affects appearance

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

Shading. Brian Curless CSE 457 Spring 2017

Color and Light. CSCI 4229/5229 Computer Graphics Summer 2008

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL:

Rendering Light Reflection Models

Reflection and Shading

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

Illumination & Shading

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

w Foley, Section16.1 Reading

Shading , Fall 2004 Nancy Pollard Mark Tomczak

Illumination in Computer Graphics

Shading Intro. Shading & Lighting. Light and Matter. Light and Matter

From Graphics to Visualization

Lighting and Shading

Illumination Models and Shading

Local vs. Global Illumination & Radiosity

Shading II. CITS3003 Graphics & Animation

Raytracing. COSC 4328/5327 Scott A. King

Lights and Lighting. Lecture overview. Light 2/3/2013. Digital Lighting and Rendering CGT 340

Graphics and Visualization

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

CEng 477 Introduction to Computer Graphics Fall

Lecture 17: Shading in OpenGL. CITS3003 Graphics & Animation

Rendering Light Reflection Models

Reading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5.

03 RENDERING PART TWO

Today s class. Simple shadows Shading Lighting in OpenGL. Informationsteknologi. Wednesday, November 21, 2007 Computer Graphics - Class 10 1

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

Lessons Learned from HW4. Shading. Objectives. Why we need shading. Shading. Scattering

Virtual Reality for Human Computer Interaction

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Light Reflection Models

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

Transcription:

Lighting and Shading Slides: Tamar Shinar, Victor Zordon

Why we need shading Suppose we build a model of a sphere using many polygons and color each the same color. We get something like But we want 2

Shading Why does the image of a real sphere look like Light-material interactions cause each point to have a different color or shade Need to consider Light sources Material properties Location of viewer Surface orientation (normal) 3

General rendering The most general approach is based on physics - using principles such as conservation of energy a surface emits light (e.g., light bulb) or reflects light from other illumination sources, or both [Angel and Shreiner] light interaction with materials is recursive the rendering equation is an integral equation describing the limit of this recursive process

Fast local shading models the rendering equation can t be solved analytically numerical methods aren t fast enough for real-time for our fast graphics rendering pipeline, we ll use a local model where shade at a point is independent of other surfaces use Phong reflection model shading based on local light-material interactions

Local shading model direct light [Angel and Shreiner] reflected light

Global Effects shadow [Angel and Shreiner] translucent surface multiple reflection 7

Light-material interactions at a surface, light is absorbed, reflected, or transmitted specular diffuse translucent [Angel and Shreiner]

Lights

General light source Illumination function: [Angel and Shreiner] integrate contributions from all sources to shade the point

Idealized light sources Ambient light Point light Spotlight distant (directional) light [Angel and Shreiner] luminance:

Ambient light source achieve a uniform light level no black shadows ambient light intensity at each point in the scene

Point light source illumination intensity at p: [Angel and Shreiner]

Point light source Most real-world scenes have large light sources Point light sources alone aren t too realistic - add ambient light to mitigate high contrast [Angel and Shreiner] penumbra umbra

Point light source Most real-world scenes have large light sources Point light sources alone aren t too realistic - drop off intensity more slowly [Angel and Shreiner] (We will do the right thing for the raytracing project)

Spotlights [Angel and Shreiner]

Spotlights [Angel and Shreiner]

Distant light source characterized by direction [Angel and Shreiner]

Shading models

Lambertian Reflection Model http://www.andreafisherpottery.com/cgi-bin/artistlnk.cgi?jody_folwell

Lambertian Reflection Model Lambert s cosine law direct: maximum light intensity indirect: reduced light intensity color intensity

Lambertian Reflection Model Lambert s cosine law direct: maximum light intensity indirect: reduced light intensity color intensity

Lambertian Reflection Model Lambert s cosine law direct: maximum light intensity indirect: reduced light intensity color intensity reflectance

Lambertian Reflection Model Lambert s cosine law illumination direct: maximum light intensity indirect: reduced light intensity color intensity reflectance

Lambertian Reflection Model

Ambient Reflection Surfaces facing away from the light will be totally black

Ambient Reflection All surfaces get same amount of ambient light

Phong Reflection Model http://www.andreafisherpottery.com/cgi-bin/artistlnk.cgi?jody_folwell

Ambient reflection different ambient coefficients for different colors ambient reflection coefficient

Diffuse reflection

Diffuse reflection Lambert s cosine law diffuse reflection coefficient direct: maximum light intensity indirect: reduced light intensity

Specular reflection Ideal reflector angle of incidence angle of reflection r is the mirror reflection direction

Specular reflection Specular surface specular highlight specular reflection is strongest in mirror reflection direction

Specular reflection specular reflection coefficient Phong exponent specular reflection drops off with increasing angle

Specular reflection plastic Phong exponent metal

Phong Reflection Model [Brad Smith, Wikimedia Commons] Ambient Diffuse Specular

Phong Reflection Model [Brad Smith, Wikimedia Commons] color intensity reflectance illumination