ENVIRONMENT MAPPING. Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel.

Slides:



Advertisements
Similar presentations
Week 9 - Friday.  What did we talk about last time?  Area lighting  Environment mapping  Blinn and Newell's method  Sphere mapping  Cubic environmental.
Advertisements

03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
ARCH 481 3d Modeling and Rendering lecture four: texture maps.
(conventional Cartesian reference system)
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 18: Shading & Texture Mapping Many slides from Greg.
Texture Mapping from Watt, Ch. 8 Jonathan Han. Topics Discussed Texture Map to Models Bump Maps, Light Maps Environment (Reflection) Mapping 3D Textures.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
1 Lecture 9 Lighting Light Sources Reflectance Camera Models.
Environmental Mapping CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Coordinate Systems X Y Z (conventional Cartesian reference system) X Y Z.
Direct Volume Rendering w/Shading via Three- Dimensional Textures.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
CHAPTER 9 Lighting © 2008 Cengage Learning EMEA. LEARNING OBJECTIVES In this chapter you will learn about: – –Light sources – –Point lights – –Spotlights.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
CS 445 / 645: Introductory Computer Graphics
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 638, Fall 2001 Admin Grad student TAs may have had their accounts disabled –Please check and the lab if there is a problem If you plan on graduating.
Environment Mapping. Examples Fall Motivation Silver candlestick No appropriate texture for it “ environment ” map Simulates the results of ray-tracing.
Reflections Specular reflection is the perfect reflection of light from a surface. The law a reflection states that the direction of the incoming ray and.
Textures and Maps MCC Computer Modelling Trimester 1 – 2015/2016.
-Global Illumination Techniques
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
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.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 9 Lighting and Texturing.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
CSCE 441: Computer Graphics Ray Tracing
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
CS 376 Introduction to Computer Graphics 04 / 13 / 2007 Instructor: Michael Eckmann.
Reflection Models (1) Physically-Based Illumination Models (2)
Computer Graphics: Illumination
Photorealistic Rendering vs. Interactive 3D Graphics
Understanding Theory and application of 3D
CHAPTER 9 Lighting © 2008 Cengage Learning EMEA.
Chapter XVI Texturing toward Global Illumination
An Algorithm of Eye-Based Ray Tracing on MATLAB
Understanding Theory and application of 3D
Exploring Shaders in Unity
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Computer Animation Surface Materials.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

ENVIRONMENT MAPPING

Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel Term Environment mapped bump mapping Environment mapping with OpenGL

Kriglstein, WallnerEnvironment mapping3 What is environment mapping?

Kriglstein, WallnerEnvironment mapping4 What is environment mapping? Developed by Blinn and Newell (1976) Reflecting the surroundings on an object Describes the incoming or outgoing light Objects can not reflect themselves Another problem is distortion Cube mapping, spherical mapping, parabolic mapping

Kriglstein, WallnerEnvironment mapping5 What is environment mapping?

Kriglstein, WallnerEnvironment mapping6 Parameterization Directions Texture coordinates

Kriglstein, WallnerEnvironment mapping7 Parameterization No recreation of the map for every frame Easy creation of the map Easy calculation of texture coordinates

Kriglstein, WallnerEnvironment mapping8 Parameterization Spherical Cubic Parabolic

Kriglstein, WallnerEnvironment mapping9 Sphere Maps

Kriglstein, WallnerEnvironment mapping10 Sphere Maps

Kriglstein, WallnerEnvironment mapping11 Sphere Maps

Kriglstein, WallnerEnvironment mapping12 Sphere Maps

Kriglstein, WallnerEnvironment mapping13 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene

Kriglstein, WallnerEnvironment mapping14 Sphere Maps

Kriglstein, WallnerEnvironment mapping15 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene

Kriglstein, WallnerEnvironment mapping16 Parameterization Spherical Cubic Parabolic

Kriglstein, WallnerEnvironment mapping17 Cube Maps Advantages No warping step required Viewpoint independent

Kriglstein, WallnerEnvironment mapping18 Cube Maps

Kriglstein, WallnerEnvironment mapping19 Cube Maps

Kriglstein, WallnerEnvironment mapping20 Cube Maps

Kriglstein, WallnerEnvironment mapping21 Parameterization Spherical Cubic Parabolic

Kriglstein, WallnerEnvironment mapping22 Parabolic Maps

Kriglstein, WallnerEnvironment mapping23 Phong Model Linear combination of 3 components: Diffuse Ambient Specular

Kriglstein, WallnerEnvironment mapping24 Phong Model

Kriglstein, WallnerEnvironment mapping25 Phong Model

Kriglstein, WallnerEnvironment mapping26 Fresnel Term

Kriglstein, WallnerEnvironment mapping27 Fresnel Term Reflectivity of a material depending on it`s optical density and angle of the incoming light. For metallic surfaces the incoming illumination = outgoing illumination. For non-metallic surfaces the angle of incoming light is important.

Kriglstein, WallnerEnvironment mapping28 Fresnel Term

Kriglstein, WallnerEnvironment mapping29 Fresnel Term

Kriglstein, WallnerEnvironment mapping30 Environment mapped bump mapping (EMBM) Objects get more details Is a possibility to represent plastically objects Three different textures

Kriglstein, WallnerEnvironment mapping31 Three different textures 1.Base texture 2.Bump map 3.Environment map

Kriglstein, WallnerEnvironment mapping32 Environment mapped bump mapping (EMBM)

Kriglstein, WallnerEnvironment mapping33 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping

Kriglstein, WallnerEnvironment mapping34 Bump mapping with a light map

Kriglstein, WallnerEnvironment mapping35 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping

Kriglstein, WallnerEnvironment mapping36 Real environmental bump mapping

Kriglstein, WallnerEnvironment mapping37 Environment mapped bump mapping (EMBM) Same effects with cube environment maps possible Makes environment mapping possible in all directions Non-cube environment mapped bump mapping is limited to few directions

Kriglstein, WallnerEnvironment mapping38 OpenGL sphere mapping Four steps: Create texture Define texture generation Enable texture coordinate generation Draw object

Kriglstein, WallnerEnvironment mapping39 OpenGL Cube mapping New extension Ext_texture_cube_map Six images Quadratic images glCopySubTexImage2D

Kriglstein, WallnerEnvironment mapping40 The End Thank you, for your attention !!