Texture Mapping Jung Lee.

Slides:



Advertisements
Similar presentations
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Advertisements

16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
9.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Exploration of bump, parallax, relief and displacement mapping
Graphics Pipeline.
03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
CSE 681 Texture mapping - other methods Environmental mapping Bump mapping.
Texture Mapping. Texturing  process that modifies the appearance of each point on a surface using an image or function  any aspect of appearance can.
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 6, 2014 TEXTURE MAPPING TEXTURES BUMP MAPPING ENVIRONMENT MAPPING PROCEDURAL TEXTURING.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Textures II Week 8, Wed.
Advanced Texture and Lighting
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003.
ARCH 481 3d Modeling and Rendering lecture four: texture maps.
(conventional Cartesian reference system)
X86 and 3D graphics. Quick Intro to 3D Graphics Glossary: –Vertex – point in 3D space –Triangle – 3 connected vertices –Object – list of triangles that.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Adv. Computer Graphics CS6500, Spring 2003.
Hofstra University1 Texture Motivation: to model realistic objects need surface detail: wood grain, stone roughness, scratches that affect shininess, grass,
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
Environment Mapping. Examples Fall Motivation Silver candlestick No appropriate texture for it “ environment ” map Simulates the results of ray-tracing.
Textures and Maps MCC Computer Modelling Trimester 1 – 2015/2016.
ECSE 4750: Computer Graphics Rensselaer Polytechnic Institute Nov 5, 2012 Texture and Texture Mapping.
1 Texture Mapping ©Anthony Steed Overview n Texture mapping Inverse and Forward Mapping Bilinear interpolation Perspective correction n Mipmapping.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Texture Mapping.
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 고려대학교 컴퓨터 그래픽스 연구실.
Texture Mapping. Example Mappings Mapping Techniques Consider the problem of rendering a sphere in the examples The geometry is very simple - a sphere.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS 1 Shading (Shading) & Smooth Shading Graphics.
Texture Mapping Course: Computer Graphics Presented by Fan Chen
Mapping method Texture Mapping Environmental mapping (sphere mapping) (cube mapping)
Texture Mapping Fall, Textures Describe color variation in interior of 3D polygon  When scan converting a polygon, vary pixel colors according.
Texture Mapping. 2 Motivation A typical modern graphics card can handle 10s of millions of polygons a second. How many individual blades of grass are.
CS 445 / 645: Introductory Computer Graphics Light.
CS-378: Game Technology Lecture #4: Texture and Other Maps Prof. Okan Arikan University of Texas, Austin V Lecture #4: Texture and Other Maps.
Game Programming 06 The Rendering Engine
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.
Bump Map 1. High Field Function: H(u, v) New Normal : N’
Module 06 –environment mapping Module 06 – environment mapping Module 06 Advanced mapping techniques: Environment mapping.
第三课. Overview of this Section Concept of Texture Mapping ( 纹理映射 ) 2D Texture 3D Texture Environment Mapping Bump Mapping Others OpenGL Implementation.
Textures – Basic Principles Lecture 29 Fri, Nov 14, 2003.
Module 05 –Bump mapping Module 05 – Bump mapping Module 05 Advanced mapping techniques: Bump mapping.
The idea (in 2D) texture index position from visible position (float) Geometry positions that corresponds to integer texel positions Change surface position.
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Texture Mapping.
Texturing CMSC 435/ What is Texturing? 2 Texture Mapping Definition: mapping a function onto a surface; function can be: – 1, 2, or 3D – sampled.
Texturing Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
- Introduction - Graphics Pipeline
Ying Zhu Georgia State University
Madhulika (18010), Assistant Professor, LPU.
Texture Mapping Fall, 2016.
CENG 477 Introduction to Computer Graphics
Photorealistic Rendering vs. Interactive 3D Graphics
Week 2 - Friday CS361.
Texture Mapping cgvr.korea.ac.kr.
Texture Mapping COMP575/COMP770.
Stochastic Microgeometry for Displacement Mapping
Textures II Week 10, Mon Mar 22
CS-378: Game Technology Lecture #4: Texture and Other Maps
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Texture mapping - other methods
Advanced Computer Graphics: Texture
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Environment Mapping.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

Texture Mapping Jung Lee

*Edwin Catmull, Ph.D. Thesis, 1974 Texture Mapping* Adds visual detail to surfaces of 3D objects

Texture Mapping Example

Texture and Texel Texel : Texture Element Texture Coordinates (s, t) GPUs can handle usually 2m x 2n texels Where m and n are nonnegative integers Texture Coordinates (s, t)

2D Texture Space Continuous (s, t) Coordinate Space [0, 1] For mapping it into a discrete texture image space [Texture Map] [2D Texture Image]

Texture Mapping Overview 1. Define a texture image 2. Specify mapping from the texture to surface Texture coordinate 3. Lookup texture values during scan conversion (0, 1) (1, 0) t v s u (0, 0) y x

Texture Value Lookup Bilinearly interpolate texture coordinates In the scan conversion step α β  (u1, v1) (u3, v3) (u2, v2)

Texture Modulation Texture Shaded Color Texture Shading

Bump Mapping Perturbs surface normal vectors Normal Information So called ‘normal mapping’ Normal Information Normal information can be stored in a RGB image Convert (x, y, z) to (R, G, B)

Bump Mapping Example (1/5) [Bump Mapped Sphere]

Bump Mapping Example (2/5)

Bump Mapping Example (3/5)

Bump Mapping Example (4/5)

Bump Mapping Example (5/5) 4M Triangles 500 Triangles

Displacement Mapping Modifying the actual surface geometry

How to Assign Normal Vectors in OpenGL Face Normal Vector Vertex Normal Vector N(a, b, c) glBegin(GL_POLYGON); glNormal3f(a, b, c); glVertex3f(x1, y1, z1); glVertex3f(x2, y2, z2); glVertex3f(x3, y3, z3); glEnd(); P1(x1, y1, z1) P2(x2, y2, z2) P3(x3, y3, z3) N1(a1, b1, c1) glBegin(GL_POLYGON); glNormal3f(a1, b1, c1); glVertex3f(x1, y1, z1); glNormal3f(a2, b2, c2); glVertex3f(x2, y2, z2); glNormal3f(a3, b3, c3); glVertex3f(x3, y3, z3); glEnd(); N2(a2, b2, c2) P1(x1, y1, z1) N3(a3, b3, c3) P2(x2, y2, z2) P3(x3, y3, z3)

Environment Mapping Maps a surrounding environment texture Around a surface of an object To approximate effects like reflection or refraction View dependant Due to reflective mapping process Not need the texture coordinates Since surface normals are used to map the environment texture Cubic Environment Mapping Spherical Environment Mapping

Cubic Environment Mapping

Environment Mapping Example