Mapping: Image Texturing CPSC 591/691. Texture Mapping Two-dimensional techniques place a two-dimensional (flat) image onto an object using methods similar.

Slides:



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

9.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
Texture Mapping I Real-time Rendering Texture Mapping I CSE 781 Prof. Roger Crawfis.
03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
Texture Mapping. Texturing  process that modifies the appearance of each point on a surface using an image or function  any aspect of appearance can.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
Computer Graphics Bing-Yu Chen National Taiwan University.
Texture Visual detail without geometry. Texture Mapping desire for heightened realism.
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.
Rendering with Texture Maps CMPS 160 Assignment 5.
ARCH 481 3d Modeling and Rendering lecture four: texture maps.
Texture Mapping CPSC /24/03 Abhijeet Ghosh.
HCI 530 – Seminar in Advanced Topics 10/8/2004Damian Schofield1 Texturing Based on 3D Rendering, Humphreys, G., University of Virginia, 2004.
Texture Mapping from Watt, Ch. 8 Jonathan Han. Topics Discussed Texture Map to Models Bump Maps, Light Maps Environment (Reflection) Mapping 3D Textures.
Texture Mapping April 9, The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number.
Texture mapping. Adds realism to computer graphics Texture mapping applies a pattern of color Bump mapping alters the surface Mapping is cheaper than.
University of New Mexico
Texture Mapping Texture Mapping Ltjg Omer Arisut Turkish Navy Turkish Navy Texture Mapping Texture Mapping Ltjg Omer Arisut Turkish Navy Turkish Navy.
Texture Mapping Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
1 3D –graphics and animation Shading and Surface Characteristics Harri Airaksinen.
Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is.
Map Projection & Coordinate Systems
1 Texturing. 2 What is Texturing? 3 Texture Mapping Definition: mapping a function onto a surface; function can be:  1, 2, or 3D  sampled (image) or.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
3D Computer Graphics: Textures. Textures: texels Texture is a way of assigning a diffuse color to a pixel – can be with 1, 2 or 3D- can use maps, interpolation.
Texture Mapping. 2 The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number is insufficient.
1 Texture. 2 Overview Introduction Painted textures Bump mapping Environment mapping Three-dimensional textures Functional textures Antialiasing textures.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
ECSE 4750: Computer Graphics Rensselaer Polytechnic Institute Nov 5, 2012 Texture and Texture Mapping.
Fundamentals of Computer Graphics Part 9 Discrete Techniques prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared.
Texture Mapping. Scope Buffers Buffers Various of graphics image Various of graphics image Texture mapping Texture mapping.
Mapping method Texture Mapping Environmental mapping (sphere mapping) (cube mapping)
Anamorphism Transformation Geometry. Anamorphosis is a distorted projection or perspective requiring the viewer to use special devices or occupy a specific.
Buffers Textures and more Rendering Paul Taylor & Barry La Trobe University 2009.
June 9, 2008 Dr. Haim Levkowitz IVPR/CS/UML | 1 Texture.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam October 30, 2003 Shading 1/35 CIS 736 Computer Graphics Lecture 17 of 42 Illumination.
1 Texture Mapping. 2 Texture Aliasing MIPmaps Environment Mapping Bump Mapping Displacement Mapping Shadow Maps Solid Textures Antialiasing.
Texture Mapping Drawing Pictures on Polygons. Texture Mapping.
Game Programming 06 The Rendering Engine
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.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Solids: Three – Dimensional figures EQ: How do you identify various three-dimensional figures?
Graphics Graphics Korea University 1 Jang Sumi Texture Mapping Environment Mapping Stencil Buffer.
11/24/ :45 Graphics II Shadow Maps Reflections Session 5.
第三课. Overview of this Section Concept of Texture Mapping ( 纹理映射 ) 2D Texture 3D Texture Environment Mapping Bump Mapping Others OpenGL Implementation.
CSE 681 Texture Mapping: 2D Texturing. CSE 681 Texture Mapping Visual complexity on demand Vary display properties over object Location on object used.
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.

University of New Mexico
Buffers and texture mapping
Texture Mapping.
Computer Graphics Texture Mapping
Introduction to Computer Graphics with WebGL
ATEC Procedural Animation
ATCM 3310 Procedural Animation
Texture Mapping We can improve the realism of graphics models by mapping a texture pattern (image) onto the modeled object surface. We refer to this technique.
So Far We have assumed that we know: The point The surface normal
Discrete Techniques Mapping and Compositing
Introduction to Computer Graphics with WebGL
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Procedural Animation Lecture 6: Mapping
ATCM 6317 Procedural Animation
Texture Mapping Ed Angel Professor Emeritus of Computer Science
Advanced Computer Graphics: Texture
Presentation transcript:

Mapping: Image Texturing CPSC 591/691

Texture Mapping Two-dimensional techniques place a two-dimensional (flat) image onto an object using methods similar to pasting wallpaper onto an object. Three-dimensional techniques are analogous to carving the object from a block of marble.

+ = Image Texturing Glue images onto geometrical objects Purpose: more realism + a cheap way to do it

Two-dimensional mappings use pre-existing images.

Texture Coordinates What if (u,v) >1.0 or <0.0 ? To repeat textures, use just the fractional part –Example: 5.3  0.3 Repeat, mirror, clamp, border: (0,0)(1,0) (1,1)(0,1) (u,v) in [0,1] (u 0,v 0 ) (u 1,v 1 ) (u 2,v 2 ) (-1,-1) (2,2)

2D Texture Mapping How to paste the image on to an object? In other words, for each pixel in an object: "Where do I have to look in the texture map to find the color?" To answer this question, we consider two things: map shape and map entity.

Texture Coordinate- Vertex Correspondence ?

Object coordinatesWorld coordinates

2D Texture Mapping How to paste the image on to an object? In other words, for each pixel in an object: "Where do I have to look in the texture map to find the color?" To answer this question, we consider two things: map shape and map entity

Bounding the Object Depending on the mapping situation, we may need to bound an object with a box, a cylinder, or a sphere. Transformed bounding boxes have coordinates that range from (0,0,0) to (1,1,1).

map shape

Mapping a 2D Texture Pattern onto a Polygonal Object Projection Functions (Map Shape)

Map Shapes  Planar For a map shape that’s planar, we take an (x,y,z) value from the object and throw away (project) one of the components, which leaves us with a two- dimensional (planar) coordinate. We use the planar coordinate to look up the color in the texture map.

Map Shapes  Planar

Map Shapes  Cylinder An (x,y,z) value is converted to cylindrical coordinates of (r, theta, height). For texture mapping, we are only interested in theta and the height.

Map Shapes  Cylinder To find the color in two-dimensional texture map, theta is converted into an x- coordinate and height is converted into a y- coordinate. This wraps the two- dimensional texture map around the object.

Cylindrical Mapping

Map Shapes  Cylinder

Map Shapes  Sphere The (x,y,z) value of a point is converted into spherical coordinates. For purposes of texture mapping, we keep just the latitude and the longitude information. To find the color in the texture map, the latitude is converted into an x- coordinate and the longitude is converted into a y-coordinate.

Spherical Mapping

Map Shapes  Sphere

Map Shapes  Box Similar to planar mapping. Instead of using one texture map, box mapping uses six -- one each for the left, right, front, back, top and bottom sides of the object. To texture map the front and back sides, we eliminate the z- component of an object’s point and use the remaining x- and y-components to locate the color in the corresponding texture maps.

Map Shapes  Box

Map Entity Map shape: taking an (x,y,z) value from the object and converting in various ways, but we didn’t mention what that value was. Map entity determines what we use as the (x,y,z) value.

Map Entity Commonly-used map entities are –a point on the object relative to the object’s bounding box –the surface normal at the point being rendered – a vector running from the object’s centroid through the point, –the reflection vector at the current point. Remember that the reflection vector depends not only on the position of the point and its normal, but on the position of the viewer.

Map Entity + Planar Map Shape

Map Entity + Cylinder Map Shape

Map Entity + Sphere Map Shape

Map Entity + Box Map Shape

Parametric Patches When rendering a parametric patch, we can dispense with map shape and map entity by treating the u- and v- parameters of the surface as if they were normalized device coordinates (Catmull, 1974). Multiplying u and v by the resolution (in pixels) yields the device coordinates of the desired pixel in the texture map.

Parametric Patches

map shape and map entity