Computer Vision Systems. Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations
|
|
- Cody Townsend
- 5 years ago
- Views:
Transcription
1 Computer Vision Systems Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations
2 Viewing Systems Viewing Transformation Projective Transformation 2D Computer Graphics Devices
3 Viewing System Example view volume View (reference) point
4 Viewing System Example 2 vectors + 1 point 1 view plane distance (near plane) + 1 far plane distance A view volume A view window A (perspective) projection
5 View Volume The truncated pyramid in view space against which the polygons that make up the scene are clipped. x y z z v v v v hz ± d hz ± d d f v v 2h: view plane window dimension d: view plane distance & near plane distance f: far plane distance
6 Viewing Plane Projection Define a 3D screen space and a point: Requirements: [ xs, ys, zs,1] 1) Normalize z s maximize precision 2) Transform lines in view space into screen space. 3) Transform planes in view space into screen space.
7 Viewing Plane Projection (cont.) z s A + B/z v Constraints of choosing A and B B < : z v increases z s increases too depth Normalize z s : z v [d, f] [, 1] z s
8 Viewing Plane Projection (cont.) d f z d f z hz y d y hz x d x v s v v s v v s ) / (1 Note: h insures that xs and ys falls in the range of [-1, 1] over the square screen. v v v v z w d f df d f fz Z y h d Y x h d X ) /( ) /( pers v v v T z y x w Z Y X ] 1 [ ] [
9 Viewing Plane Projection (cont.) pers2 pers1 pers T T d) fd(f d) f(f d/h d/h d) fd(f d) f(f d/h d/h T
10 T pers1 T pers2
11 Illumination Model Reflection: the interaction of light with a surface, in terms of the properties of the surface and the nature of the incident light. Illumination: nature of the light emanating from a surface the geometry of its intensity distribution and so on.
12 Direct and Indirect Illumination
13 Point v.s. Ambient Light Source Point light source Ambient light source
14 World Coordinate Space Screen Space Reflection model: light intensity at a point Reflection model: shading a pixel
15 Light-Object Interaction Light incident at a surface light reflected + light scattered + light absorbed + light transmitted
16 Bidirectional Reflectivity Function (BDRF) R ( λ, φ, θ, φ, θ ) bd i i v v I v ( φi, θi, φv, θv ) E ( φ, θ ) i i i
17 Bidirectional Reflectivity Function (BDRF) cont. E ( φ, θ ) I i i i v ( φ, θ ) cosθ dω i i i i
18 Multiple Reflections Diffuse reflections
19 Three Components of BDRF Specular Directional Diffuse Perfect Diffuse
20 Material, Wavelength, Angle a. Roughed aluminum; θ i 1, 45, 75 ; λ2μm b. Roughed aluminum; θ i 1, 3, 45, 6, 75 ; λ.5μm b. Roughed magnesium oxide; θ i 1, 45, 6, 75 ; λ.5μm
21 Phong s Shading First order approximation of photorealism, i.e., a linear combination of the three illumination components diffuse, specular and ambient.
22 Diffuse component Phong s Shading I I d d I I i i k k d d cosθ ( L N ) θ 2π I i : intensity of a point light source Θ: angle between light direction (L) and surface normal (N) kd: wavelength-dependent (empirical) reflectance coefficient For more than one light source: Id k d Ii, n ( Ln N ) n
23 Specular component Phong s Shading I s I I i i k k s s cos n ( R V Ω ) n n: surface roughness index
24 Surface Roughness Index Large n (glossy surface) small n (rough surface)
25 Specular + Diffuse Phong s Shading
26 Specular + Diffuse (rendered version) Phong s Shading
27 Phong s Shading Specular + Diffuse + Ambient Ambient illumination a i g k I I ) ) ( ) ( ( n s d i a a k k k V R N L I I I + + ) ) /( ) ( ) ( ( k r k k k n s d i a a V R N L I I I where (r+k) is the distance consideration.
28 Phong s Shading Geometric Considerations Let H (L+V)/2 I I k + I ( k ( L N ) + k ( N H ) ) /( r + k) a a i d s n
29 Phong s Shading Geometric Considerations Comparison of using (a) R.V and (b) N.H.
30 Summary of Phong Model 1. Point light sources. 2. No geometry except surface normal is considered (i.e., lights and viewers are located at infinity.) 3. Diffuse and specular terms are modeled as local components. 4. Surface roughness is modeled by the decrease of specular term around reflection vector. 5. Color of specular reflection is assumed to be of light source (i.e., highlights are always white regardless of the material.) 6. Assume constant global (ambient) light.
31 A Defect of Phong Model Inaccurate in the specular term for illumination at low incidence angles.
32 Cook and Torrance Model Based on incident energy instead of intensity. Using a physical microfacet model to determine the specular term. Using Fresnel s law and material characteristics to determine color changes within the highlights.
33 Cook and Torrance Model BDRF sr s + dr d where s + d 1 Global ambient term I a R a f Similar to Phong s Shading: + + n s a n i n n i a a s d d f ) ( ) (,, R R L N I R I I ω
34 Cook and Torrance Model (cont.) The reflection vector, R, is physically modeled based on the microfacet descript of the surface. N, average surface normal Microfacet model of a reflection surface.
35 Cook and Torrance Model (cont.) FDGsRF: NVNLπ ( )( ) the Fresnel term theoretical reflection coefficient (tangent plane approximation) D: distribution function for the microfacets G: attenuation factor caused by microfacet shadowing effect
36 Cook and Torrance Model (cont.) D: distribution function for microfacets k exp[ ( α / m) k: a constant α: angle of microfacet with respect to (mean) surface normal (i.e., angle between N and H) 2 ] Beckmann-Spizzichino distribution:d m: root mean square slope the microfacetd1 2 exp[ (tan α / 2 )] m cos m 2 4 α
37 Cook and Torrance Model (cont.) F, the Fresnel term, tangent plane approximation
38 Cook and Torrance Model (cont.) F, the Fresnel term 1 2 sin sin ( φfθ ) tan ( φ θ ) + 2 ( φ + θ ) tan ( φ + θ ) φ: angle of incidence θ: angle of refraction sinθ sinψ/η and η: refractive index of material
39 Cook and Torrance Model (cont.) F, the Fresnel term (cont.) ) ( 1) ( FF + + µ η η for φ 1 cos 1) ) ( ( 1) ) ( ( 1 ) ( ) ( 2 1 ) ( tan ) ( tan ) ( sin ) ( sin c g c where c g c c g c c g c g η φ θ φ θ φ θ φ θ φhvffη so η is a function of wavelength from (measured) F.
40 (a) F as a function of wavelength and angle of incidence (b) F(ψ) at r, g, b wavelengths.
41 Cook and Torrance Model (cont.) (a) Microfacet orientation distributions (b) Gaussian distributions with m.2.8
42 Cook and Torrance Model (cont.) G: attenuation factor Shadowing: interference in the incident light Masking: interference in the reflected light s 1 l1 / l2 HG2( )( VHN H2( V)( H max(min{1, N Gshadowing Gm NNGmasking G s V, L) ) m G}, )
43 Interference of attenuation factor: (a) no interference; (b) masking; (c) shadowing.
44 The degree of masking and shadowing depends on the ratio l 1 /l 2 the proportions of the facets contributing to the reflection.
45 Cook and Torrance v.s. Phong Phong Model Cook-Torrance Model Note the large lobe in C-T model and the non-coincidence of the lobe center with the reflection vector.
46 Rendering the Collection of operations necessary to project a view of an object or a scene onto a view surface A computer calculation of the amount of light falling on each visible surface of the objects in the "scene," as seen from the point of view of the computer "camera" (the viewer's eye point). During the rendering process, surface properties of objects are taken into account as are the colors of both the objects and the "lights" shining on them.
47 A Typical 3D Rendering Pipeline Local coordinate space Object definition Modeling trans. World coordinate space Compose scene View Reference Lighting Cull View trans. View space Clip to 3D view volume 3D screen space Hidden surface removal Rasterization Shading Display space
48 3D Rendering Example
49 3D Rendering Example (cont.)
50 Culling Operations to remove polygons that cannot be seen backface elimination For a scene contains only a single convex object hidden surface removal visibility : N > N p N p : polygon normal N: line of sight vector
51 Culling Visibility test.
52 Clipping Test the objects against the viewing frustum: Case 1: completely outside discard Case 2: completely inside transform and render Case 3: intersect with clip then transform and render w X w w Y w Z w Clipping limits
53 Sutherland-Hodgman Clipper
54 Four possibilities Sutherland-Hodgman Clipper
55 Sutherland-Hodgman Clipper ) ) ( ( : ) ( ) ( 1 ) ( ) ( < > + X P N X F N X S N S F S P t and t t t c c c S is outside F is inside Inside/Outside test
56 Gouraud Shading Restricted to the diffuse component of the reflection model Suffers from Mach banding k ( ) /( r + k) i d light IAssume is at infinity L.N is constant. NLNow calculate intensities at vertices and use bilinear interpolation to get all intensities.
57 The Vertex Normal -- N A N 1 N A N 4 N 2 N 3
58 Vertex Normals and Clipping N 1 Clip boundary N 2 Inside Outside N 1 N' 2 N' 2 is interpolated from N 1 and N 2.
59 Scan Line Interpolations Scan line y s (x a, y s ) I a I 1 I s (x 1, y 1 ) I b (x b, y s ) I 4 (x 4, y 4 ) I 2 (x 2, y 2 ) I 3 (x 3, y 3 )
60 Scan Line Interpolations (cont.) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) intensity change to - pixel - : pixel along scan line dist. :incremental ,, I x x x x x x I x x x x y y I y y y y y y I y y y y s n s n s a b a b s a s s b a b s s s b s s a IIIIIIIIIIII
61 Rasterization (a) Line drawing and (b) polygon filling rasterization.
62 Rasterization: Polygon Generate pairs of segment points edge list (xs,ys) (xe,ye): start and end points of an edge x xs m (xe xs)/(ye ys) for (y ys; y < ye; y+dy) { output(round(x), y) x + m }
63 Rasterization: Polygon (cont.)
64 Hidden Surface Removal Depth of an object (in screen space): z z s v f (1 d / zv ) f d z s f f d ( f fd d) z v Compare depths (in screen space) of all points with the same (x s,y s ) and determine which (parts of) surfaces are invisible (hidden).
65 Hidden Surface Removal Depth of an object (in screen space): z z s v f (1 d / zv ) f d z s f f d ( fd f d) z v
66 Z-Buffer Algorithm 1. Store z s values of vertices. 2. For pixels inside a polygon, get the depth of current point, z c, by interpolation. 3. Compare z c with the current z min, if z c is less than z min, write the (interpolated) intensity of current pixel to the frame buffer. Advantages: independent of object representation form; simple, easy to implement Disadvantages: memory hog
67 Volume Rendering For surfaces: color-opacity model c f : surface color o: surface opacity c b : background colors Total color: c c f o + c b (1 o) For volumes: dense emitter model c c( z)exp ( ) o( ζ ) dζ dz c( z), o( ζ ) :color and opacity of the object at z
68 Volume Rendering Surfaces Volumes
69 Volume Rendering
70 (False) Volume Rendering
w Foley, Section16.1 Reading
Shading w Foley, Section16.1 Reading Introduction So far, we ve talked exclusively about geometry. w What is the shape of an object? w How do I place it in a virtual 3D space? w How do I know which pixels
More informationIntroduction to Visualization and Computer Graphics
Introduction to Visualization and Computer Graphics DH2320, Fall 2015 Prof. Dr. Tino Weinkauf Introduction to Visualization and Computer Graphics Visibility Shading 3D Rendering Geometric Model Color Perspective
More informationVisualisatie BMT. Rendering. Arjan Kok
Visualisatie BMT Rendering Arjan Kok a.j.f.kok@tue.nl 1 Lecture overview Color Rendering Illumination 2 Visualization pipeline Raw Data Data Enrichment/Enhancement Derived Data Visualization Mapping Abstract
More informationRendering Light Reflection Models
Rendering Light Reflection Models Visual Imaging in the Electronic Age Donald P. Greenberg October 3, 2017 Lecture #13 Program of Computer Graphics, Cornell University General Electric - 167 Cornell in
More informationIllumination and Shading
Illumination and Shading Illumination (Lighting)! Model the interaction of light with surface points to determine their final color and brightness! The illumination can be computed either at vertices or
More informationComputer Graphics. Illumination and Shading
Rendering Pipeline modelling of geometry transformation into world coordinates placement of cameras and light sources transformation into camera coordinates backface culling projection clipping w.r.t.
More informationIllumination. Illumination CMSC 435/634
Illumination CMSC 435/634 Illumination Interpolation Illumination Illumination Interpolation Illumination Illumination Effect of light on objects Mostly look just at intensity Apply to each color channel
More informationRecollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows
Recollection Models Pixels Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows Can be computed in different stages 1 So far we came to Geometry model 3 Surface
More informationLocal Reflection Models
Local Reflection Models Illumination Thus Far Simple Illumination Models Ambient + Diffuse + Attenuation + Specular Additions Texture, Shadows, Used in global algs! (Ray tracing) Problem: Different materials
More informationCPSC / Illumination and Shading
CPSC 599.64 / 601.64 Rendering Pipeline usually in one step modelling of geometry transformation into world coordinate system placement of cameras and light sources transformation into camera coordinate
More informationComp 410/510 Computer Graphics. Spring Shading
Comp 410/510 Computer Graphics Spring 2017 Shading Why we need shading Suppose we build a model of a sphere using many polygons and then color it using a fixed color. We get something like But we rather
More informationPipeline Operations. CS 4620 Lecture 10
Pipeline Operations CS 4620 Lecture 10 2008 Steve Marschner 1 Hidden surface elimination Goal is to figure out which color to make the pixels based on what s in front of what. Hidden surface elimination
More informationReflection models and radiometry Advanced Graphics
Reflection models and radiometry Advanced Graphics Rafał Mantiuk Computer Laboratory, University of Cambridge Applications To render realistic looking materials Applications also in computer vision, optical
More informationRendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information
llumination Model Wireframe rendering simple, ambiguous Color filling flat without any 3D information Requires modeling interaction of light with the object/surface to have a different color (shade in
More informationUniversity of Victoria CSC 305 Shading. Brian Wyvill 2016
University of Victoria CSC 305 Shading Brian Wyvill 2016 The illuminating Hemisphere Energy and Intensity Energy is the intensity integrated over the solid angle through which it acts. Intensity is not
More informationCS Illumination and Shading. Slide 1
CS 112 - Illumination and Shading Slide 1 Illumination/Lighting Interaction between light and surfaces Physics of optics and thermal radiation Very complex: Light bounces off several surface before reaching
More informationIntroduction to Computer Graphics 7. Shading
Introduction to Computer Graphics 7. Shading National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor Textbook: Hearn and Baker, Computer Graphics, 3rd Ed., Prentice Hall Ref: E.Angel, Interactive
More informationCS5620 Intro to Computer Graphics
So Far wireframe hidden surfaces Next step 1 2 Light! Need to understand: How lighting works Types of lights Types of surfaces How shading works Shading algorithms What s Missing? Lighting vs. Shading
More informationIllumination Modelling
Illumination Modelling 1 Specular term 2 Local shading analysis: interaction between one light source, the viewer and a single point on the object surface. how do we model specular term? a = angle between
More informationIllumination and Shading
Illumination and Shading Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd 2/14/07 1 From last time Texture mapping overview notation wrapping Perspective-correct interpolation Texture
More informationCPSC 314 LIGHTING AND SHADING
CPSC 314 LIGHTING AND SHADING UGRAD.CS.UBC.CA/~CS314 slide credits: Mikhail Bessmeltsev et al 1 THE RENDERING PIPELINE Vertices and attributes Vertex Shader Modelview transform Per-vertex attributes Vertex
More informationLocal Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller
Local Illumination CMPT 361 Introduction to Computer Graphics Torsten Möller Graphics Pipeline Hardware Modelling Transform Visibility Illumination + Shading Perception, Interaction Color Texture/ Realism
More informationIllumination & Shading: Part 1
Illumination & Shading: Part 1 Light Sources Empirical Illumination Shading Local vs Global Illumination Lecture 10 Comp 236 Spring 2005 Computer Graphics Jargon: Illumination Models Illumination - the
More informationToday. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models
Computergrafik Matthias Zwicker Universität Bern Herbst 2009 Today Introduction Local shading models Light sources strategies Compute interaction of light with surfaces Requires simulation of physics Global
More informationToday. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models
Computergrafik Thomas Buchberger, Matthias Zwicker Universität Bern Herbst 2008 Today Introduction Local shading models Light sources strategies Compute interaction of light with surfaces Requires simulation
More information9. Illumination and Shading
9. Illumination and Shading Approaches for visual realism: - Remove hidden surfaces - Shade visible surfaces and reproduce shadows - Reproduce surface properties Texture Degree of transparency Roughness,
More informationTopic 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 Spot the differences Terminology Illumination The transport
More informationCSE 681 Illumination and Phong Shading
CSE 681 Illumination and Phong Shading Physics tells us What is Light? We don t see objects, we see light reflected off of objects Light is a particle and a wave The frequency of light What is Color? Our
More informationIllumination & Shading
Illumination & Shading Goals Introduce the types of light-material interactions Build a simple reflection model---the Phong model--- that can be used with real time graphics hardware Why we need Illumination
More informationShading. Brian Curless CSE 457 Spring 2017
Shading Brian Curless CSE 457 Spring 2017 1 Reading Optional: Angel and Shreiner: chapter 5. Marschner and Shirley: chapter 10, chapter 17. Further reading: OpenGL red book, chapter 5. 2 Basic 3D graphics
More informationLecture 15: Shading-I. CITS3003 Graphics & Animation
Lecture 15: Shading-I CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Learn that with appropriate shading so objects appear as threedimensional
More informationRendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane
Rendering Pipeline Rendering Converting a 3D scene to a 2D image Rendering Light Camera 3D Model View Plane Rendering Converting a 3D scene to a 2D image Basic rendering tasks: Modeling: creating the world
More informationSimple Lighting/Illumination Models
Simple Lighting/Illumination Models Scene rendered using direct lighting only Photograph Scene rendered using a physically-based global illumination model with manual tuning of colors (Frederic Drago and
More informationIntroduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)
Lecture 9 Graphics pipeline (rasterization and shading) Graphics pipeline - part 1 (recap) Perspective projection by matrix multiplication: x pixel y pixel z canonical 1 x = M vpm per M cam y z 1 This
More informationReading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5.
Reading Required: Angel 6.1-6.3, 6.5, 6.7-6.8 Optional: Shading Angel 6.4 OpenGL red book, chapter 5. 1 2 Introduction An abundance of photons So far, we ve talked exclusively about geometry. Properly
More informationIllumination in Computer Graphics
Illumination in Computer Graphics Ann McNamara Illumination in Computer Graphics Definition of light sources. Analysis of interaction between light and objects in a scene. Rendering images that are faithful
More informationTopic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component
Topic 9: Lighting & Reflection models Lighting & reflection The Phong reflection model diffuse component ambient component specular component Spot the differences Terminology Illumination The transport
More informationIllumination and Shading - II
Illumination and Shading - II Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd 2/19/07 1 From last time Light Sources Empirical Illumination Shading Local vs Global Illumination 2/19/07
More informationCS770/870 Spring 2017 Color and Shading
Preview CS770/870 Spring 2017 Color and Shading Related material Cunningham: Ch 5 Hill and Kelley: Ch. 8 Angel 5e: 6.1-6.8 Angel 6e: 5.1-5.5 Making the scene more realistic Color models representing the
More informationShading I Computer Graphics I, Fall 2008
Shading I 1 Objectives Learn to shade objects ==> images appear threedimensional Introduce types of light-material interactions Build simple reflection model Phong model Can be used with real time graphics
More informationShading. Brian Curless CSE 557 Autumn 2017
Shading Brian Curless CSE 557 Autumn 2017 1 Reading Optional: Angel and Shreiner: chapter 5. Marschner and Shirley: chapter 10, chapter 17. Further reading: OpenGL red book, chapter 5. 2 Basic 3D graphics
More informationIntroduction to Computer Graphics. Farhana Bandukwala, PhD Lecture 14: Light Interacting with Surfaces
Introduction to Computer Graphics Farhana Bandukwala, PhD Lecture 14: Light Interacting with Surfaces Outline Computational tools Reflection models Polygon shading Computation tools Surface normals Vector
More informationReflection and Shading
Reflection and Shading R. J. Renka Department of Computer Science & Engineering University of North Texas 10/19/2015 Light Sources Realistic rendering requires that we model the interaction between light
More informationIntroduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF
Shading Introduction Affine transformations help us to place objects into a scene. Before creating images of these objects, we ll look at models for how light interacts with their surfaces. Such a model
More informationShading. Why we need shading. Scattering. Shading. Objectives
Shading Why we need shading Objectives Learn to shade objects so their images appear three-dimensional Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something
More informationCS 5625 Lec 2: Shading Models
CS 5625 Lec 2: Shading Models Kavita Bala Spring 2013 Shading Models Chapter 7 Next few weeks Textures Graphics Pipeline Light Emission To compute images What are the light sources? Light Propagation Fog/Clear?
More informationPipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11
Pipeline Operations CS 4620 Lecture 11 1 Pipeline you are here APPLICATION COMMAND STREAM 3D transformations; shading VERTEX PROCESSING TRANSFORMED GEOMETRY conversion of primitives to pixels RASTERIZATION
More information03 RENDERING PART TWO
03 RENDERING PART TWO WHAT WE HAVE SO FAR: GEOMETRY AFTER TRANSFORMATION AND SOME BASIC CLIPPING / CULLING TEXTURES AND MAPPING MATERIAL VISUALLY DISTINGUISHES 2 OBJECTS WITH IDENTICAL GEOMETRY FOR NOW,
More informationIllumination Models & Shading
Illumination Models & Shading Lighting vs. Shading Lighting Interaction between materials and light sources Physics Shading Determining the color of a pixel Computer Graphics ZBuffer(Scene) PutColor(x,y,Col(P));
More informationChapter 2 A top-down approach - How to make shaded images?
Chapter 2 A top-down approach - How to make shaded images? Comp. Graphics (U), Chap 2 Global View 1 CGGM Lab., CS Dept., NCTU Jung Hong Chuang Graphics API vs. application API Graphics API Support rendering
More informationShading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10
Reading Required: Shirley, Chapter 10 Shading Brian Curless CSE 557 Fall 2014 1 2 Basic 3D graphics With affine matrices, we can now transform virtual 3D objects in their local coordinate systems into
More informationLecture 17: Shading in OpenGL. CITS3003 Graphics & Animation
Lecture 17: Shading in OpenGL CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Introduce the OpenGL shading methods - per vertex shading
More informationThe Viewing Pipeline Coordinate Systems
Overview Interactive Graphics System Model Graphics Pipeline Coordinate Systems Modeling Transforms Cameras and Viewing Transform Lighting and Shading Color Rendering Visible Surface Algorithms Rasterization
More informationHomework #2. Shading, Ray Tracing, and Texture Mapping
Computer Graphics Prof. Brian Curless CSE 457 Spring 2000 Homework #2 Shading, Ray Tracing, and Texture Mapping Prepared by: Doug Johnson, Maya Widyasari, and Brian Curless Assigned: Monday, May 8, 2000
More informationOrthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015
Orthogonal Projection Matrices 1 Objectives Derive the projection matrices used for standard orthogonal projections Introduce oblique projections Introduce projection normalization 2 Normalization Rather
More informationPipeline Operations. CS 4620 Lecture 14
Pipeline Operations CS 4620 Lecture 14 2014 Steve Marschner 1 Pipeline you are here APPLICATION COMMAND STREAM 3D transformations; shading VERTEX PROCESSING TRANSFORMED GEOMETRY conversion of primitives
More informationCSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016
CSE 167: Introduction to Computer Graphics Lecture #6: Lights Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 Announcements Thursday in class: midterm #1 Closed book Material
More informationComputer Graphics: 3-Local Illumination Models
Computer Graphics: 3-Local Illumination Models Prof. Dr. Charles A. Wüthrich, Fakultät Medien, Medieninformatik Bauhaus-Universität Weimar caw AT medien.uni-weimar.de Introduction After having illustrated
More informationComputer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)
Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1) Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting & shading? Sphere
More informationsurface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source
walters@buffalo.edu CSE 480/580 Lecture 18 Slide 1 Illumination and Shading Light reflected from nonluminous objects depends on: surface: reflectance transparency, opacity, translucency orientation illumination:
More informationECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014
ECS 175 COMPUTER GRAPHICS Ken Joy Winter 2014 Shading To be able to model shading, we simplify Uniform Media no scattering of light Opaque Objects No Interreflection Point Light Sources RGB Color (eliminating
More informationComputer Graphics. Shading. Based on slides by Dianna Xu, Bryn Mawr College
Computer Graphics Shading Based on slides by Dianna Xu, Bryn Mawr College Image Synthesis and Shading Perception of 3D Objects Displays almost always 2 dimensional. Depth cues needed to restore the third
More informationGame Technology. Lecture Physically Based Rendering. Dipl-Inform. Robert Konrad Polona Caserman, M.Sc.
Game Technology Lecture 7 4.12.2017 Physically Based Rendering Dipl-Inform. Robert Konrad Polona Caserman, M.Sc. Prof. Dr.-Ing. Ralf Steinmetz KOM - Multimedia Communications Lab PPT-for-all v.3.4_office2010
More informationOpenGl Pipeline. triangles, lines, points, images. Per-vertex ops. Primitive assembly. Texturing. Rasterization. Per-fragment ops.
OpenGl Pipeline Individual Vertices Transformed Vertices Commands Processor Per-vertex ops Primitive assembly triangles, lines, points, images Primitives Fragments Rasterization Texturing Per-fragment
More informationToday s class. Simple shadows Shading Lighting in OpenGL. Informationsteknologi. Wednesday, November 21, 2007 Computer Graphics - Class 10 1
Today s class Simple shadows Shading Lighting in OpenGL Wednesday, November 21, 27 Computer Graphics - Class 1 1 Simple shadows Simple shadows can be gotten by using projection matrices Consider a light
More informationLecture 4: Reflection Models
Lecture 4: Reflection Models CS 660, Spring 009 Kavita Bala Computer Science Cornell University Outline Light sources Light source characteristics Types of sources Light reflection Physics-based models
More informationReading. Shading. Introduction. An abundance of photons. Required: Angel , Optional: OpenGL red book, chapter 5.
Reading Required: Angel 6.1-6.5, 6.7-6.8 Optional: Shading OpenGL red book, chapter 5. 1 2 Introduction So far, we ve talked exclusively about geometry. What is the shape of an obect? How do I place it
More informationComputer Graphics. Illumination and Shading
() Illumination and Shading Dr. Ayman Eldeib Lighting So given a 3-D triangle and a 3-D viewpoint, we can set the right pixels But what color should those pixels be? If we re attempting to create a realistic
More informationSurface Reflection Models
Surface Reflection Models Frank Losasso (flosasso@nvidia.com) Introduction One of the fundamental topics in lighting is how the light interacts with the environment. The academic community has researched
More informationObjectives Shading in OpenGL. Front and Back Faces. OpenGL shading. Introduce the OpenGL shading methods. Discuss polygonal shading
Objectives Shading in OpenGL Introduce the OpenGL shading methods - per vertex shading vs per fragment shading - Where to carry out Discuss polygonal shading - Flat - Smooth - Gouraud CITS3003 Graphics
More informationComplex Shading Algorithms
Complex Shading Algorithms CPSC 414 Overview So far Rendering Pipeline including recent developments Today Shading algorithms based on the Rendering Pipeline Arbitrary reflection models (BRDFs) Bump mapping
More informationIllumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2
Illumination Michael Kazhdan (601.457/657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2 Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for
More informationComputer Graphics 7: Viewing in 3-D
Computer Graphics 7: Viewing in 3-D In today s lecture we are going to have a look at: Transformations in 3-D How do transformations in 3-D work? Contents 3-D homogeneous coordinates and matrix based transformations
More informationCS452/552; EE465/505. Intro to Lighting
CS452/552; EE465/505 Intro to Lighting 2-10 15 Outline! Projection Normalization! Introduction to Lighting (and Shading) Read: Angel Chapter 5., sections 5.4-5.7 Parallel Projections Chapter 6, sections
More informationLab 9 - Metal and Glass
Lab 9 - Metal and Glass Let the form of an object be what it may, light, shade, and perspective will always make it beautiful. -John Constable Prologue Support code: /course/cs1230/src/labs/lab09 This
More informationCS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.
CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions The Midterm Exam was given in class on Thursday, October 23, 2008. 1. [4 pts] Drawing Where? Your instructor says that objects should always be
More informationCS 130 Final. Fall 2015
CS 130 Final Fall 2015 Name Student ID Signature You may not ask any questions during the test. If you believe that there is something wrong with a question, write down what you think the question is trying
More informationRasterization Overview
Rendering Overview The process of generating an image given a virtual camera objects light sources Various techniques rasterization (topic of this course) raytracing (topic of the course Advanced Computer
More informationLighting and Shading
Lighting and Shading Today: Local Illumination Solving the rendering equation is too expensive First do local illumination Then hack in reflections and shadows Local Shading: Notation light intensity in,
More informationComputer Graphics and GPGPU Programming
Computer Graphics and GPGPU Programming Donato D Ambrosio Department of Mathematics and Computer Science and Center of Excellence for High Performace Computing Cubo 22B, University of Calabria, Rende 87036,
More informationGraphics The Rasterization Pipeline Projection, Visibility, & Shading
Graphics 2014 The Rasterization Pipeline Projection, Visibility, & Shading Practicals this week Tuesday (today) Announcements Tue 9-11 (was held) Tue 13-15 canceled (programming contest) Wednesday (tomorrow)
More informationComputer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model
Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting
More informationThe Rasterizer Stage. Texturing, Lighting, Testing and Blending
1 The Rasterizer Stage Texturing, Lighting, Testing and Blending 2 Triangle Setup, Triangle Traversal and Back Face Culling From Primitives To Fragments Post Clipping 3 In the last stages of the geometry
More informationBRDF Computer Graphics (Spring 2008)
BRDF Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2 http://www.cs.columbia.edu/~cs4160 Reflected Radiance proportional to Irradiance Constant proportionality: BRDF [CW
More informationSung-Eui Yoon ( 윤성의 )
CS380: Computer Graphics Illumination and Shading Sung-Eui Yoon ( 윤성의 ) Course URL: http://sglab.kaist.ac.kr/~sungeui/cg/ Course Objectives (Ch. 10) Know how to consider lights during rendering models
More informationCEng 477 Introduction to Computer Graphics Fall
Illumination Models and Surface-Rendering Methods CEng 477 Introduction to Computer Graphics Fall 2007 2008 Illumination Models and Surface Rendering Methods In order to achieve realism in computer generated
More informationObjectives. Introduce Phong model Introduce modified Phong model Consider computation of required vectors Discuss polygonal shading.
Shading II 1 Objectives Introduce Phong model Introduce modified Phong model Consider computation of required vectors Discuss polygonal shading Flat Smooth Gouraud 2 Phong Lighting Model A simple model
More informationGraphics Hardware and Display Devices
Graphics Hardware and Display Devices CSE328 Lectures Graphics/Visualization Hardware Many graphics/visualization algorithms can be implemented efficiently and inexpensively in hardware Facilitates interactive
More informationCS 325 Computer Graphics
CS 325 Computer Graphics 04 / 02 / 2012 Instructor: Michael Eckmann Today s Topics Questions? Comments? Illumination modelling Ambient, Diffuse, Specular Reflection Surface Rendering / Shading models Flat
More informationSo far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.
11 11.1 Basics So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources. Global models include incident light that arrives
More informationOverview. Shading. Shading. Why we need shading. Shading Light-material interactions Phong model Shading polygons Shading in OpenGL
Overview Shading Shading Light-material interactions Phong model Shading polygons Shading in OpenGL Why we need shading Suppose we build a model of a sphere using many polygons and color it with glcolor.
More informationLevel of Details in Computer Rendering
Level of Details in Computer Rendering Ariel Shamir Overview 1. Photo realism vs. Non photo realism (NPR) 2. Objects representations 3. Level of details Photo Realism Vs. Non Pixar Demonstrations Sketching,
More informationLight Reflection Models
Light Reflection Models Visual Imaging in the Electronic Age Donald P. Greenberg October 21, 2014 Lecture #15 Goal of Realistic Imaging From Strobel, Photographic Materials and Processes Focal Press, 186.
More informationModels and Architectures. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico
Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Objectives Learn the basic design of a graphics system Introduce
More informationdq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =
Radiometry (From Intro to Optics, Pedrotti -4) Radiometry is measurement of Emag radiation (light) Consider a small spherical source Total energy radiating from the body over some time is Q total Radiant
More informationRay-Tracing. Misha Kazhdan
Ray-Tracing Misha Kazhdan Ray-Tracing In graphics, we often represent the surface of a 3D shape by a set of triangles. Goal: Ray-Tracing Take a collection of triangles representing a 3D scene and render
More informationHow do we draw a picture?
1 How do we draw a picture? Define geometry. Now what? We can draw the edges of the faces. Wireframe. We can only draw the edges of faces that are visible. We can fill in the faces. Giving each object
More informationModels and Architectures
Models and Architectures Objectives Learn the basic design of a graphics system Introduce graphics pipeline architecture Examine software components for an interactive graphics system 1 Image Formation
More informationIllumination and Shading
Illumination and Shading Illumination and Shading z Illumination Models y Ambient y Diffuse y Attenuation y Specular Reflection z Interpolated Shading Models y Flat, Gouraud, Phong y Problems CS4451: Fall
More informationSupplement to Lecture 16
Supplement to Lecture 16 Global Illumination: View Dependent CS 354 Computer Graphics http://www.cs.utexas.edu/~bajaj/ Notes and figures from Ed Angel: Interactive Computer Graphics, 6 th Ed., 2012 Addison
More information