Module 06 –environment mapping Module 06 – environment mapping Module 06 Advanced mapping techniques: Environment mapping.

Slides:



Advertisements
Similar presentations
Exploration of advanced lighting and shading techniques
Advertisements

Lecture 8 Transparency, Mirroring
Technische Universität München Computer Graphics SS 2014 Graphics Effects Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
GAM532 DPS932 – Week 7 Introduction to shadows. Shadow Effects Light Surface No Shadows Shadows.
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Three Dimensional Viewing
Eyes for Relighting Extracting environment maps for use in integrating and relighting scenes (Noshino and Nayar)
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
Reflections from Bumpy Surfaces GPU Graphics. What are we trying to achieve?  Most surfaces are not flat like glass  Some of these surfaces still give.
1Notes  Assignment 1 is out, due October 12  Inverse Kinematics  Evaluating Catmull-Rom splines for motion curves  Wednesday: may be late (will get.
Advanced Texture and Lighting
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 12 Solid Textures Bump Mapping Environment Mapping.
Texture Mapping CPSC /24/03 Abhijeet Ghosh.
Lapped Textures SIGGRAPH 2000 Emil Praun Adam Finkelstein Hugues Hoppe.
CS 4731: Computer Graphics Lecture 19: Shadows Emmanuel Agu.
Image-Based Lighting : Computational Photography Alexei Efros, CMU, Fall 2005 © Eirik Holmøyvik …with a lot of slides donated by Paul Debevec.
Radiosity Syed-Areeb A. Sabzposh S. Yaris A. Sabzposh CSC /11/2004.
Environmental Mapping CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
Computer Graphics Mirror and Shadows
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
COMP 175: Computer Graphics March 24, 2015
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Environment Mapping. Examples Fall Motivation Silver candlestick No appropriate texture for it “ environment ” map Simulates the results of ray-tracing.
Computer Graphics Texture Mapping
Week 2 - Wednesday CS361.
Computer Graphics World, View and Projection Matrices CO2409 Computer Graphics Week 8.
1 Texture Mapping ©Anthony Steed Overview n Texture mapping Inverse and Forward Mapping Bilinear interpolation Perspective correction n Mipmapping.
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Textures and shadows  Generation  Mipmap  Texture coordinates,
Week 11 - Thursday.  What did we talk about last time?  Image processing  Blurring  Edge detection  Color correction  Tone mapping  Lens flare.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Chapter 6 Special Effects 강 신 진강 신 진
TERRAIN SET09115 Intro to Graphics Programming. Breakdown  Basics  What do we mean by terrain?  How terrain rendering works  Generating terrain 
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
09/11/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Graphics Pipeline Texturing Overview Cubic Environment Mapping.
Texture Mapping Applications 2. Parallax Mapping with Slope  parallax mapping assumes that the surface is a single plane  a better approximation  surface.
CS 638, Fall 2001 Today Project Stage 0.5 Environment mapping Light Mapping.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Computer Graphics The Rendering Pipeline - Review CO2409 Computer Graphics Week 15.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
More on Advanced Interfaces, Image Basics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Friday, November 21, 2003.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computer Graphics 2 Lecture 7: Texture Mapping Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
More on Environment Mapping Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Wednesday, December 10, 2003.
October 9, 2002Serguei A. Mokhov, 1 COMP471 – Computer Graphics OpenGL: Texture Mapping.
Advanced Computer Graphics Shadow Techniques CO2409 Computer Graphics Week 20.
Basic 3D Concepts. Overview 1.Coordinate systems 2.Transformations 3.Projection 4.Rasterization.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Lab: Vertex Shading Chris Wynn Ken Hurley. Objective Hands-On vertex shader programming Start with simple programs … Part 1: Textured-Lit Teapot.
Graphics Graphics Korea University 1 Jang Sumi Texture Mapping Environment Mapping Stencil Buffer.
CSCE 441: Computer Graphics Ray Tracing
11/24/ :45 Graphics II Shadow Maps Reflections Session 5.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
MP3.. Start at the very beginning. Almost. Either start from nothing yourself, or use the empty template for this MP. Run through the provided files are.
Texture Coordinates CS418 Computer Graphics John C. Hart.
Module 05 –Bump mapping Module 05 – Bump mapping Module 05 Advanced mapping techniques: Bump mapping.
CS 376 Introduction to Computer Graphics 04 / 13 / 2007 Instructor: Michael Eckmann.
- Introduction - Graphics Pipeline
CS451Real-time Rendering Pipeline
Reflections from Bumpy Surfaces
Michael Tanaya , Hua ming Chen
Stochastic Microgeometry for Displacement Mapping
Chapter XVI Texturing toward Global Illumination
Environment Mapping.
Using billboards within games
Texture Mapping Jung Lee.
Presentation transcript:

Module 06 –environment mapping Module 06 – environment mapping Module 06 Advanced mapping techniques: Environment mapping

Module 06 –environment mapping Module 06 – environment mapping Overview  Environment mapping  Sphere mapping  Cube mapping

Module 06 –environment mapping Module 06 – environment mapping Environment mapping  Environment mapping technique is used to model unique type of objects (like chrome, polished metal, glass) which reflect the environment they are in.  In practice, environment mapping applies a special texture map that contains an image of the scene surrounding an object to the object itself.  The result approximates the appearance of a reflective surface, close enough to fool the eye, without incurring any of the expensive computations involved in ray-tracing.  The GL_SPHERE_MAP and GL_REFLECTION_MAP texture generation modes can be used in conjunction with an appropriate texture map to create realistic reflections.

Module 06 –environment mapping Module 06 – environment mapping Sphere mapping  For the GL_SPHERE_MAP mode, or sphere mapping the texture coordinates are generated using a vector from the eye to the point on the surface and the surface normal to create a reflection vector. The reflection vector is used to calculate the texture coordinates.  Drawbacks: - sphere mapping is view dependent, so viewing a reflective object from -- - anywhere other than the center of projection can produce incorrect results - the reflection won't pick up any objects moving in the world  Advantage: - faster than cube mapping in static environments

Module 06 –environment mapping Module 06 – environment mapping Cube mapping (1)  In the GL_REFLECTION_MAP mode, or cube mapping the world is rendered six times (once for each direction) from the reflective object's perspective.  The results are then stored in the six faces of a cube map, which is then applied to the object.  This approach is much better than sphere mapping, since a reflection image can be generated anywhere in the world, and it can be updated dynamically to reflect objects in motion.  Cube maps are also view independent and can be easily mapped onto any objects.  For these reasons, sphere mapping is generally not used often.

Module 06 –environment mapping Module 06 – environment mapping Cube mapping (2)  Texture coordinates used in conjunction with cube texture maps are typically generated at runtime. For instance, environment mapping can be performed by calculating the reflection of the direction to the camera and storing it in the {s,t,r) coordinates at each vertex of a triangle mesh. The reflection direction calculation is normally implemented in hardware, so this can be done very efficiently.  The s-, t-, and r-coordinates represent a direction vector emanating from the center of the cube that points toward the texel to be sampled.

Module 06 –environment mapping Module 06 – environment mapping Cube mapping (3)  Orientation of the cube map axes relative to each of the six faces:

Module 06 –environment mapping Module 06 – environment mapping Cube mapping (4)  Cubemap covering the six faces of a cube

Module 06 –environment mapping Module 06 – environment mapping Final result

Module 06 –environment mapping Module 06 – environment mapping Practice Open: Lab06 /SphereMapping / SphereMapping.sln Lab06 /CubeMapping / CubeMapping.sln