Lighting Models. CS116B Chris Pollett Mar 21, 2004.

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

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

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

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

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

Illumination and Shading

Shading I Computer Graphics I, Fall 2008

Illumination & Shading I

CSCI 4620/8626. Computer Graphics Illumination Models and Surface Rendering Methods (Chapter 17)

Illumination & Shading

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Computer Graphics. Illumination and Shading

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

Illumination in Computer Graphics

Comp 410/510 Computer Graphics. Spring Shading

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

From Graphics to Visualization

CEng 477 Introduction to Computer Graphics Fall

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

CSE 681 Illumination and Phong Shading

Reflection and Shading

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Visualisatie BMT. Rendering. Arjan Kok

Simple Lighting/Illumination Models

Computer Graphics. Illumination and Shading

CS5620 Intro to Computer Graphics

Illumination Models. To calculate the color of an illuminated position on the

CS Computer Graphics: Illumination and Shading I

CS Computer Graphics: Illumination and Shading I

Computer Graphics. Illumination Models and Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Illumination Models & Shading

Illumination & Shading: Part 1

Introduction to Computer Graphics 7. Shading

w Foley, Section16.1 Reading

Chapter 10. Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

CPSC / Illumination and Shading

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

Illumination Models and Shading

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

CPSC 314 LIGHTING AND SHADING

Ambient reflection. Jacobs University Visualization and Computer Graphics Lab : Graphics and Visualization 407

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

Illumination Models and Surface-Rendering Methods. Chapter 10

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

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

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons

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

Illumination Model. The governing principles for computing the. Apply the lighting model at a set of points across the entire surface.

Shading. Brian Curless CSE 557 Autumn 2017

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Illumination and Shading

Lighting affects appearance

Illumination and Shading

Ray-Tracing. Misha Kazhdan

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

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

Raytracing CS148 AS3. Due :59pm PDT

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

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

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

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014

Virtual Reality for Human Computer Interaction

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

7: Rendering (1) COMP Computer Graphics and Image Processing. Local illumination model. Global illumination model. Direct Direct.

Three-Dimensional Graphics V. Guoying Zhao 1 / 55

Interactive Real-Time Raycasting

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

Lighting and Reflectance COS 426

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

Shading & Material Appearance

Illumination. Courtesy of Adam Finkelstein, Princeton University

Sung-Eui Yoon ( 윤성의 )

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

Ray Tracing. CS116B Chris Pollett Apr 20, 2004.

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

Illumination and Shading ECE 567

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

Dithering and Rendering. CS116B Chris Pollett Apr 18, 2004.

Lighting. Figure 10.1

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

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

CS 5625 Lec 2: Shading Models

Shading and Illumination

Ø Sampling Theory" Ø Fourier Analysis Ø Anti-aliasing Ø Supersampling Strategies" Ø The Hall illumination model. Ø Original ray tracing paper

Photo Studio Optimizer

Shading. Shading = find color values at pixels of screen (when rendering a virtual 3D scene).

Shading 1: basics Christian Miller CS Fall 2011

Raytracing. COSC 4328/5327 Scott A. King

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

Lighting/Shading III. Week 7, Wed Mar 3

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

Engineered Diffusers Intensity vs Irradiance

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

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

CS3500 Computer Graphics Module: Lighting and Shading

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016

Given: scene specification (object positions, optical properties p of the surface, viewer position, viewing direction, )

CS 325 Computer Graphics

Photometric Stereo.

Lighting affects appearance

Transcription:

Lighting Models CS116B Chris Pollett Mar 21, 2004.

Outline Overview Light Sources Surface Lighting Effect Basic Illumination Models

Overview An illumination model (lighting model) is used to calculate the color of the illuminated positions of an object The procedure for applying a lighting model to obtain a pixel colors for all projected surface positions is called surface rendering. In computer graphics, illumination models are usually easy to compute approximations of physical laws that describe surface-effect lighting.

Light Sources Any object that is emitting radiant energy is a light source that contributes to the lighting effect of the scene. Usually light sources will be treated as only emitters, but can also be reflectors. Ex: flourescent light panel. We can specify a light source s: position, color of its light, light emission direction, shape, and reflectivity.

Point Light Sources Point light sources consist of a position and an RGB value of the light emitted. Light is modeled as coming from this source in radially diverging lines This is a reasonable model for light sources whose size is small compared to the dimensions of the scene.

Infinitely Distant Light Sources A large light source which is very far from the scene can also be modeled as a point light source. In contrast to a close emitter a distant emitter illuminates object is the scene from only one direction Light paths for distant objects are nearly parallel. So can assign a color, and direction light is coming from. Don t need position of source.

Radial Intensity Attenuation As radiant energy from a light source travels outward, its amplitude at a distance d falls off as 1/d^2. So to produce realistic lighting effects should take this into account. Unfortunately, for objects close to a point source, this does not look realistic (basically because things in real-world not point sources). So a model of the form 1/(a +bd +cd^2) is used with a,b,c being adjustable parameters. If the light source is really distant, the source should not attenuate much within scene so in this case ignore attenuation factor.

Directional Light Sources and Spot Light Effects To make a light source directional, we can assign an angle θ to the source so that if the object is outside this angle and the direction the source is pointing, it does not get illuminated θ

Angular Intensity Attenuation Within a light can also attenuate the signal based on angle to get a more realistic directional lighting effect. For example, we can multiply the intensity by cos a ϕ for ϕ< θ and where a is some positive exponent we hand-tune

Extended Light Source and the Warn Model To approximate large non-point sources close to objects in a scene, one can use several point sources arranged in a grid. The Warn model does this and also allows one to specify ``flaps on the sides of the lighting region to give the light more directionality.

Surface Lighting Effects In a lighting model we usually assign surfaces materials which have certain properties of transparency, color reflectance, and texture. When light hits an opaque surface part of it is reflected part is absorbed. Shiny materials reflect more light; dull materials absorb more. Transparent materials also transmit light. Rough, or grainy surfaces reflect light in all directions. (Diffuse reflection.) Some of this light gets concentrate in a bright spot called a specular reflection A scene might also be exposed to background light also called ambient light

Basic Lighting Models We are now ready to give a rough model for how to do lighting for point sources.

Ambient Light Ambient light in a scene will be incorporated by setting a general brightness level for the scene. To keep things simple we assume this affects all colors equally and can be specified by an intensity parameter I_a

Diffuse Reflection Diffuse lighting can be modeled using Lambert s cosine law.: Intensity of radiant energy from any small surface da in a direction θ relative to the surface normal is proportional to cos θ. Using this can model diffuse light as: I_diff = k I cos θ where k is a tweakable constant for the whole scene. Can calculate θ using dot product. So model so far is k_a*i_a + I_diff = k_a*i_a + k_d*i_d(n.l) if N.L>0 and k_ai_a otherwise.

Specular Reflection and the θ θ φ Phong Model Phong has proposed the following model for specular lighting effects : I_spec= W(θ)Icos n φ. Here W(θ) is called the specular reflection coefficient and its value changes with the angle of incidence (book plots function for some common materials). I.e., θ is the angle the light hits the surface and is reflected by on other side of normal. φ is the angle we are from where this reflected incident light is supposed to appear. n is bigger for shinnier materials.

Combined Diffuse and Specular Reflections Model for Fall 2004 is I = k_a*i_a+ I_diff + I_spec Will say more next day.