Advanced Texture Mapping May 10, 2007. Today’s Topics Mip Mapping Projective Texture Shadow Map.

Slides:



Advertisements
Similar presentations
CSE 781 Anti-aliasing for Texture Mapping. Quality considerations So far we just mapped one point – results in bad aliasing (resampling problems) We really.
Advertisements

Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Graphics Pipeline.
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
Course Note Credit: Some of slides are extracted from the course notes of prof. Mathieu Desburn (USC) and prof. Han-Wei Shen (Ohio State University). CSC.
Projective Texture Mapping
Computer Graphics Viewing, Rendering, Antialiasing گرد آوري و تاليف: دكتر احمد رضا نقش نيل چي دانشگاه اصفهان گروه مهندسي كامپيوتر.
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
Computer Graphics Bing-Yu Chen National Taiwan University.
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping II April 10, 2003.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics April 19, 2007.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003.
Texture Mapping CPSC /24/03 Abhijeet Ghosh.
Computer Graphics (Spring 2008) COMS 4160, Lecture 19: Texture Mapping Many slides from Greg Humphreys, UVA and Rosalee.
(conventional Cartesian reference system)
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping.
CS5520 Image-Based Rendering © Chun-Fa Chang, Spring 2003 Sampling Theorem & Antialiasing April 15, 2003.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
David Luebke Modeling and Rendering Architecture from Photographs A hybrid geometry- and image-based approach Debevec, Taylor, and Malik SIGGRAPH.
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
Erdem Alpay Ala Nawaiseh. Why Shadows? Real world has shadows More control of the game’s feel  dramatic effects  spooky effects Without shadows the.
Computer Graphics Mirror and Shadows
Programmable Pipelines. Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
Computer Graphics Texture Mapping
Programmable Pipelines. 2 Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
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,
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
MIT EECS 6.837, Durand and Cutler Real-Time Shadows.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Texture Mapping. 2 Texture Aliasing MIPmaps Environment Mapping Bump Mapping Displacement Mapping Shadow Maps Solid Textures Antialiasing.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Shadow Mapping Chun-Fa Chang National Taiwan Normal University.
Computer Graphics 2 Lecture 7: Texture Mapping Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
CS418 Computer Graphics John C. Hart
Texture Mapping May 4, Many slides are borrowed from UNC-CH COMP236 Course (Spring 2003) taught by Leonard McMillan
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
OpenGL Graphics Textures. Quiz You didn't see that coming!
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Sampling Theorem & Antialiasing
From Turing Machine to Global Illumination Chun-Fa Chang National Taiwan Normal University.
What are shaders? In the field of computer graphics, a shader is a computer program that runs on the graphics processing unit(GPU) and is used to do shading.
MIT EECS 6.837, Durand and Cutler Texture Mapping & Other Fun Stuff.
Real-Time Dynamic Shadow Algorithms Evan Closson CSE 528.
The Graphics Pipeline Revisited Real Time Rendering Instructor: David Luebke.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Texture Mapping Greg Humphreys University of Virginia CS 445, Fall 2003.
- Introduction - Graphics Pipeline
Ying Zhu Georgia State University
Week 7 - Wednesday CS361.
Week 2 - Friday CS361.
Texture Mapping cgvr.korea.ac.kr.
From Turing Machine to Global Illumination
CS451Real-time Rendering Pipeline
Models and Architectures
Interactive Graphics Algorithms Ying Zhu Georgia State University
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Frame Buffer Applications
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

Advanced Texture Mapping May 10, 2007

Today’s Topics Mip Mapping Projective Texture Shadow Map

Texture Resolution One size does not fit all: –For example: an NxN texture may be OK for a polygon about the same size on screen, but not for a much smaller or much larger polygon. –Polygon too large  blurry texture –Polygon too small  wasted texture memory.

Mip Map For an NxN texture, also build textures of N/2 x N/2, N/4 x N/4, … etc. Total memory required: 4/3 NxN –1+1/4+1/16+… = 4/3

Which Level to Use? Naïve answer: pick the closest size. Note that we don’t pick a fixed mip-map level for the whole polygon. We will pick a different level for each drawn pixel. Also, the level does not need to be an integer  In-between levels.

Filtering Here, we only consider individual pixels of a scan-converted polygon (on the screen) Texture coords=(u, v); u, v: real number. Bi-linear: Find the closest mip-map level, fetch (  u ,  v  ), (  u ,  v  ), (  u ,  v  ), (  u ,  v  ). Tri-linear: Also interpolated between two mip-map levels.

Anisotropic Filtering Bilinear (and tri-linear) filtering assumes that a screen picture is mapped to a circle on the texture, which is actually incorrect. An ellipse (not necessary axis aligned) should be used instead. Next slide: EWA = Ellipse Weighted Average.

EWA for Texture Mapping Paul Heckbert, “Survey of Texture Mapping” IEEE CG&A, Nov (Figures)Survey of Texture MappingFigures Green & Heckbert, “Creating Raster Omnimax Images from Multiple Perspective Views Using The Elliptical Weighted Average Filter” IEEE CG&A, 6(6), pp , June 1986.Creating Raster Omnimax Images from Multiple Perspective Views Using The Elliptical Weighted Average Filter

Projective Texture Mark Segal, et al., “Fast shadows and lighting effects using texture mapping”. SIGGRAPH 92Fast shadows and lighting effects using texture mapping Cass Everitt, “Projective Texture Mapping” NVIDIA SDK White Paper.Projective Texture Mapping Figure 1. Two different views of a smiley face texture projected onto the scene.

Assigning Texture Coordinates to Vertices The basic idea: 1. Move the camera to the projector location. 2. Overlay the produced photo on top of the texture. (i.e. the pixel location becomes the texture coordinates) “Projective Texture Mapping” by Cass Everitt describes how to use OpenGL texgen to achieve that.Projective Texture Mapping

In a Nutshell Tools available for generating texture coordinates: glTexGen() and texture transformation matrix. (See today’s handout.) Use glTexGen() to get: Then set texture matrix to:

Shadow Map Similar to projective texture: –But this time, we will project the depth, instead of the slide image. With ShadowsWithout Shadows

Basic Steps of Shadow Maps Render the scene from the light’s point of view, Use the light’s depth buffer as a texture (shadow map), Projectively texture the shadow map onto the scene, Use “texture color” (comparison result) in fragment shading.

Image Source: Cass Everitt et al., “Hardware Shadow Mapping” NVIDIA SDK White PaperHardware Shadow Mapping Eye’s ViewLight’s ViewDepth/Shadow Map

Food for Thought Why is texture mapping so powerful, useful, magical, …etc.? (Hint: a lot of hardware design effort) Why are global illumination effects possible now, even though we still process one primitive at a time?