Illumination Models and Shading. Illumination Models and Shading. Illumination Model Parameters. Illumination Models. Light Source Models

Similar documents
Computer Graphics. Introduction. Computer graphics. What is computer graphics? Yung-Yu Chuang

Computer Applications in Textile Engineering. Computer Applications in Textile Engineering

Monash University Clayton s School of Information Technology CSE3313 Computer Graphics Sample Exam Questions 2007

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

INTRODUCTION TO RENDERING TECHNIQUES

Computer Graphics Global Illumination (2): Monte-Carlo Ray Tracing and Photon Mapping. Lecture 15 Taku Komura

Specular reflection. Dielectrics and Distribution in Ray Tracing. Snell s Law. Ray tracing dielectrics

Maya 2014 Still Life Part 1 Texturing & Lighting

Computer Animation: Art, Science and Criticism

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

PRODUCT LIFECYCLE MANAGEMENT COMPETENCY CENTRE RENDERING. PLMCC, JSS Academy of Technical Education, Noida Rendering 1 of 16

Reflectance Measurements of Materials Used in the Solar Industry. Selecting the Appropriate Accessories for UV/Vis/NIR Measurements.

My Materials. In this tutorial, we ll examine the material settings for some simple common materials used in modeling.

Introduction to polarization of light

Dhiren Bhatia Carnegie Mellon University

So, you want to make a photo-realistic rendering of the Earth from orbit, eh? And you want it to look just like what astronauts see from the shuttle

Making natural looking Volumetric Clouds In Blender 2.48a

Realtime 3D Computer Graphics Virtual Reality

Chapter 23. The Reflection of Light: Mirrors

High Resolution Spatial Electroluminescence Imaging of Photovoltaic Modules

Overview. What is EMR? Electromagnetic Radiation (EMR) LA502 Special Studies Remote Sensing

Any source of light can be described in terms of four unique and independently respective properties:

Thea Omni Light. Thea Spot Light. Light setup & Optimization

REAL-TIME IMAGE BASED LIGHTING FOR OUTDOOR AUGMENTED REALITY UNDER DYNAMICALLY CHANGING ILLUMINATION CONDITIONS

2D Geometrical Transformations. Foley & Van Dam, Chapter 5

Lighting Estimation in Indoor Environments from Low-Quality Images

2 Absorbing Solar Energy

Path Tracing. Michael Doggett Department of Computer Science Lund university Michael Doggett

Synthetic Sensing: Proximity / Distance Sensors

PHOTON mapping is a practical approach for computing global illumination within complex

Computer Vision for Quality Control in Latin American Food Industry, A Case Study

SPECIFICATION Aluminum Module Frames. Allowed anodization before fabrication for clear frames.

CSE168 Computer Graphics II, Rendering. Spring 2006 Matthias Zwicker

w = COI EYE view direction vector u = w ( 010,, ) cross product with y-axis v = w u up vector

Materials in NX Render

LIST OF CONTENTS CHAPTER CONTENT PAGE DECLARATION DEDICATION ACKNOWLEDGEMENTS ABSTRACT ABSTRAK

Rotation and Inter interpolation Using Quaternion Representation

2.1 Three Dimensional Curves and Surfaces

Light Control and Efficacy using Light Guides and Diffusers

Lesson 26: Reflection & Mirror Diagrams

EVIDENCE PHOTOGRAPHY TEST SPECIFICATIONS MODULE 1: CAMERA SYSTEMS & LIGHT THEORY (37)

CUBE-MAP DATA STRUCTURE FOR INTERACTIVE GLOBAL ILLUMINATION COMPUTATION IN DYNAMIC DIFFUSE ENVIRONMENTS

Learning about light and optics in on-line general education classes using at-home experimentation.

A Short Introduction to Computer Graphics

CS 431/636 Advanced Rendering Techniques"

LIGHTING HANDBOOK. How to Get The Most. From Your New ARRI Kit. by Bill Holshevnikoff SECOND EDITION

Introduction to Computer Graphics

ELECTRIC FIELD LINES AND EQUIPOTENTIAL SURFACES

Introduction to acoustic imaging

ICC Recommendations for Color Measurement

White Paper. "See" what is important

Two Research Schools become ONE

PATH TRACING: A NON-BIASED SOLUTION TO THE RENDERING EQUATION

The Lighting Effects Filter

X-ray diffraction techniques for thin films

GRAFICA - A COMPUTER GRAPHICS TEACHING ASSISTANT. Andreas Savva, George Ioannou, Vasso Stylianou, and George Portides, University of Nicosia Cyprus

How To Fuse A Point Cloud With A Laser And Image Data From A Pointcloud

Interference. Physics 102 Workshop #3. General Instructions

Sensor Modeling for a Walking Robot Simulation. 1 Introduction

Geometric Optics Converging Lenses and Mirrors Physics Lab IV

A Language for Shading and Lighting Calculations

Treasure Hunt. Lecture 2 How does Light Interact with the Environment? EMR Principles and Properties. EMR and Remote Sensing

Computer-Generated Photorealistic Hair

H.Calculating Normal Vectors

Basic Shapes. Most paintings can be broken down into basic shapes. See how this famous painting by Cézanne can be broken down into basic shapes.

Physics 53. Kinematics 2. Our nature consists in movement; absolute rest is death. Pascal

Lighting & Rendering in Maya: Lights and Shadows

4BA6 - Topic 4 Dr. Steven Collins. Chap. 5 3D Viewing and Projections

Thin Lenses Drawing Ray Diagrams

PHYS 222 Spring 2012 Final Exam. Closed books, notes, etc. No electronic device except a calculator.

Parabolic Trough Solar Collector Analysis

Rendering Area Sources D.A. Forsyth

Chapter 22: Electric Flux and Gauss s Law

Modelling of fire spread in car parks

A technical overview of the Fuel3D system.

Projection Center Calibration for a Co-located Projector Camera System

Video Camera Image Quality in Physical Electronic Security Systems

Ultrasonic Wave Propagation Review

Optical Communications

SEMIAUTOMATIC SURFACE REFLECTANCE MEASUREMENT FOR MONITORING OF MATERIAL WEATHERING

Polarization of Light

Theremino System Theremino Spectrometer Technology

Simulation of Electromagnetic Leakage from a Microwave Oven

Float a Beachball in Psuanmi

Integrated sensors for robotic laser welding

Blackbody Radiation References INTRODUCTION

Light Waves and Matter

Optical Design Tools for Backlight Displays

Assessment of Camera Phone Distortion and Implications for Watermarking

Math 241 Lines and Planes (Solutions) x = 3 3t. z = 1 t. x = 5 + t. z = 7 + 3t

SOLAR RADIATION AND YIELD. Alessandro Massi Pavan

RIEGL VZ-400 NEW. Laser Scanners. Latest News March 2009

Computer Vision: Machine Vision Filters. Computer Vision. Optical Filters. 25 August 2014

Last lecture... Computer Graphics:

Instructor. Goals. Image Synthesis Examples. Applications. Computer Graphics. Why Study 3D Computer Graphics?

Study of the Human Eye Working Principle: An impressive high angular resolution system with simple array detectors

OPERATING INSTRUCTIONS Nikon TiE Deconvolution Microscope CCRB 1-220G

MECHANICS OF SOLIDS - BEAMS TUTORIAL TUTORIAL 4 - COMPLEMENTARY SHEAR STRESS

Application Example: Reverse Engineering

CS 4204 Computer Graphics

Transcription:

llumination Models and Shading Fole & Van Dam, Chapter 6 llumination Models and Shading ight Source Models Ambient llumination Polgon Rendering Methods Flat Shading Gouraud Shading Phong Shading llumination Models Motivation: n order to produce realistic images, we must simulate the appearance of surfaces under various lighting conditions llumination Model: Given the illumination incident at a point on a surface, quantifies the reflected light llumination Model Parameters ighting effects are described with models that consider the interaction of light sources with object surfaces The factors determining the lighting effects are: The light source parameters: Positions Electromagnetic Spectrum Shape The surface parameters Position Reflectance properties Position of nearb surfaces The ee (camera) parameters Position Sensor spectrum sensitivities llumination Models and Rendering An illumination model is used to calculate the intensit of the light that is reflected at a given point on a surface A rendering method uses intensit calculations from the illumination model to determine the light intensit at all piels in the image ight Source Models Point Source (a): All light ras originate at a point and radiall diverge. A reasonable approimation for sources whose dimensions are small compared to the object size Parallel source (b): ight ras are all parallel. Ma be modeled as a point source at infinite distance (the sun) Distributed source (c): All light ras originate at a finite area in space. t models a nearb source, such as a fluorescent light c b a

llumination Models Simplified and fast methods for calculating surfaces intensities, mostl empirical Calculations are based on optical properties of surfaces and the lighting conditions (no reflected sources nor shadows) ight sources are considered to be point sources Reasonabl good approimation for most scenes Ambient llumination Assume there is some non-directional light in the environment (bacground light) The amount of ambient light incident on each object is constant for all surfaces and over all directions Ver simple model, not ver realistic OpenG default Ambient llumination The reflected intensit amb of an point on the surface is: Ambient llumination amb = K a a a - ambient light intensit K a [0,] - surface ambient reflectivit n principle a and K a are functions of color, so we have R amb, G amb and B amb Diffuse (ambertian) surfaces are rough or grain, lie cla, soil, fabric The surface appears equall bright from all viewing directions Brightness is proportional to cos() because a surface (a) perpendicular to the light direction is more illuminated than a surface (b) at an oblique angle a b The brightness at each point is proportional to cos()

The reflected intensit diff of a point on the surface is: diff = K d p cos() = K d p () p - the point light intensit. Ma appear as attenuated source f att (r) P K d [0,] - the surface diffuse reflectivit - the surface normal - the light direction OTE: f and have unitar length: cos() = diffuse reflection from different light directions Commonl, there are two tpes of light sources: A bacground ambient light A point light source The equation that combines the two models is: = diff + amb = K d p + K a a ote this is the model for one color and it should be replicated for each channel: R, G and B 0 0. 0.6 0. 0. 0.7 K a K d Models shin and gloss surfaces (lie metal, plastic, etc..) with highlights Reflectance intensit changes with reflected angle An ideal specular surface (mirror) reflects light eclusivel in one direction: R Gloss objects are not ideal mirrors and reflect in the immediate vicinit of R R deal specular surface R V on-ideal specular surface

The Phong Model: reflected specular intensit falls off as some power of cos (): The Phong Model: plots of cos n () for three values of the specular parameter n spec = K s p cos n () = K s p (RV) n K s - the surface specular reflectivit n specular reflection parameter, determining the deviation from ideal specular surface (for a perfect mirror n=) R V 0.8 0.6 0. 0. n= n=8 n=6 0 - -. - -0. 0 0.. R Specular surface V Specular surface The illumination equation combined with diffuse reflection is: = amb + diff + spec = K a a + p (K d + K s (RV) n ) f light sources are present in the scene: = amb + ( diff+ spec) 0 0. 0.7 0. 0. 0.8 K s K d effects of the specular parameter n Ambient llumination n=0 Ambient + Diffuse n=0 n= Ambient + Diffuse + Specular

Composing ight Sources Polgon Rendering Methods A freeform surface can be approimated b polhedra Rendering: calculate the illumination at each surface point Appling the illumination model at each surface point is computationall epensive Flat Shading A single intensit is calculated for each surface polgon Fast and simple method Gives reasonable result onl if all of the following assumptions are valid: The object is a polhedron ight source is far awa from the surface so that is constant over each polgon Viewing position is far awa from the surface so that V R is constant over each polgon Gouraud Shading Renders the polgon surface b linearl interpolating intensit values across the surface Gouraud Shading Algorithm:. Determine the normal at each polgon verte. Appl an illumination model to each verte to calculate the verte intensit. inearl interpolate the verte intensities over the surface polgon Gouraud Shading The normal v of a verte is an average of all neighboring normals: V Gouraud Shading nterpolation of the verte intensities P scan line p p p

Gouraud Shading Gouraud shading of a sphere Phong Shading A more accurate method for rendering a polgon surface is to interpolate normal vectors, and then appl the illumination model to each surface point Phong Shading Algorithm:. Determine the normal at each polgon verte. inearl interpolate the verte normals over the surface polgon. Appl the illumination model along each scan line to calculate intensit of each surface point Phong Shading Phong shading of a sphere Polgon Rendering Methods Flat Gouraud Phong Polgon Rendering Methods Polgon Rendering Methods Flat Gouraud Flat Gouraud Phong Phong