CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping II April 10, 2003.

Slides:



Advertisements
Similar presentations
Lecture 8 Transparency, Mirroring
Advertisements

CSE 781 Anti-aliasing for Texture Mapping. Quality considerations So far we just mapped one point – results in bad aliasing (resampling problems) We really.
Graphics Pipeline.
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.
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.
I3D Fast Non-Linear Projections using Graphics Hardware Jean-Dominique Gascuel, Nicolas Holzschuch, Gabriel Fournier, Bernard Péroche I3D 2008.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics February 26, 2007.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics May 3, 2007.
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.
Computer Graphics (Spring 2008) COMS 4160, Lecture 19: Texture Mapping Many slides from Greg Humphreys, UVA and Rosalee.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Adv. Computer Graphics CS6500, Spring 2003.
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.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Acceleration of Rendering.
Advanced Texture Mapping May 10, Today’s Topics Mip Mapping Projective Texture Shadow Map.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Space Partitions.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
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.
© Chun-Fa Chang Sampling Theorem & Antialiasing. © Chun-Fa Chang Motivations “ My ray traced images have a lot more pixels than the TV screen. Why do.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
Computer Graphics Texture Mapping
CS 551/651 Advanced Computer Graphics Warping and Morphing Spring 2002.
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.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
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.
CS-378: Game Technology Lecture #4: Texture and Other Maps Prof. Okan Arikan University of Texas, Austin V Lecture #4: Texture and Other Maps.
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.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
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
09/16/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Environment mapping Light mapping Project Goals for Stage 1.
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!
Sampling Theorem & Antialiasing
From Turing Machine to Global Illumination Chun-Fa Chang National Taiwan Normal University.
MIT EECS 6.837, Durand and Cutler Texture Mapping & Other Fun Stuff.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Texture Mapping Greg Humphreys University of Virginia CS 445, Fall 2003.
- Introduction - Graphics Pipeline
Week 7 - Wednesday CS361.
CSE 167 [Win 17], Lecture 18: Texture Mapping Ravi Ramamoorthi
Photorealistic Rendering vs. Interactive 3D Graphics
Week 2 - Friday CS361.
Texture Mapping cgvr.korea.ac.kr.
From Turing Machine to Global Illumination
CS451Real-time Rendering Pipeline
Interactive Graphics Algorithms Ying Zhu Georgia State University
CS5500 Computer Graphics April 17, 2006 CS5500 Computer Graphics
CS5500 Computer Graphics May 29, 2006
CS-378: Game Technology Lecture #4: Texture and Other Maps
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Frame Buffer Applications
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping II April 10, 2003

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Today’s Short Film Geri’s Game by Pixar

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Announcement Remaining paper presentations on and after April 29: –Please pick a date and select a topic from the reading list before April 17. Project proposal also due on April 17.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Today’s Topics Mip Mapping Projective Texture Shadow Map

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Shadow Map Similar to projective texture: –But this time, we will project the depth, instead of the slide image. With ShadowsWithout Shadows

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 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.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Image Source: Cass Everitt et al., “Hardware Shadow Mapping” NVIDIA SDK White PaperHardware Shadow Mapping Eye’s ViewLight’s ViewDepth/Shadow Map

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Food for Thought Why is texture mapping so powerful, useful, magical, …etc.? (Hint: a lot of hardware design effort)