Texture mapping. Adds realism to computer graphics Texture mapping applies a pattern of color Bump mapping alters the surface Mapping is cheaper than.

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.
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.
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.
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.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping.
Texture Mapping April 9, The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number.
University of New Mexico
Texture Mapping Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
Basic Rendering Techniques V Recognizing basic rendering techniques.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
Guilford County Sci Vis V204.01
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: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
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.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
Shapes Properties Binding Chung Ji Hye.
3D Objects Subject:T0934 / Multimedia Programming Foundation Session:12 Tahun:2009 Versi:1/0.
ECSE 4750: Computer Graphics Rensselaer Polytechnic Institute Nov 5, 2012 Texture and Texture Mapping.
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,
Texture Mapping. Scope Buffers Buffers Various of graphics image Various of graphics image Texture mapping Texture mapping.
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.
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.
Game Programming 06 The Rendering Engine
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Vector Graphics Digital Multimedia Chap 이병희
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Material obtained from Summer workshop in Guildford County, July, 2014 Unit 6.
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.
UG/Photo Hong Rujin 15, April. High Quality Image Dialog View Visualization High Quality Image.
第三课. Overview of this Section Concept of Texture Mapping ( 纹理映射 ) 2D Texture 3D Texture Environment Mapping Bump Mapping Others OpenGL Implementation.
Mapping: Image Texturing CPSC 591/691. Texture Mapping Two-dimensional techniques place a two-dimensional (flat) image onto an object using methods similar.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
CSE 681 Texture Mapping: Solid Texturing. CSE 681 Texture Mapping Visual complexity on demand Vary display properties over object Location on object used.

Computer Graphics Imaging
University of New Mexico
Buffers and texture mapping
Texture Mapping.
Computer Graphics Texture Mapping
Basic Rendering Techniques
ATEC Procedural Animation
ATCM 3310 Procedural Animation
Basic Rendering Techniques
So Far We have assumed that we know: The point The surface normal
Discrete Techniques Mapping and Compositing
Computer Animation Texture Mapping.
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Procedural Animation Lecture 6: Mapping
ATCM 6317 Procedural Animation
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Texture Mapping: Solid Texturing
CS-378: Game Technology Lecture #4: Texture and Other Maps
Texture Mapping Ed Angel Professor Emeritus of Computer Science
Advanced Computer Graphics: Texture
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Texture Mapping: Solid Texturing
Texture Mapping Jung Lee.
Presentation transcript:

Texture mapping

Adds realism to computer graphics Texture mapping applies a pattern of color Bump mapping alters the surface Mapping is cheaper than adding polygons

Example

Normalizing mapping We might need to bound the object It’s common no normalize coordinates

Mapping types 2D and 3D

2D mapping How the image is pasted on the object?

Planar mapping Remove Z coordinate

Planar shape Z axis X axisX-Z axis

Cylindrical Use angle and height

Cylindrical

Sphere Longitude and latitude

Sphere

Box Map

A fast way for environment mapping

Parametric patch

Break up model into single texture

Combining textures Background colors are transparent

2D drawbacks Singularities Taking out the right dimension

3D textures Use (x,y,z) to compute the color Similar to carving object out of a solid Colors are not stored for each (x,y,z) Coordinate based computation

3D textures Use point to compute an index into color table. –Using fractional part of X coordinate.

Noise Desired properties –Known range –Stationary –Band limited Lattice noise –Random number at each integer lattice point –Use it for object integers, otherwise – interpolate Gradient noise –Random gradients at integer lattice points

Noise Marbled appearance by perturbing stripes

Noise Making wood by adding noise to concentric rings

Bump mapping Change object normals before rendering Both magnitude and direction are subject to change The geometry does not change With bump mapping No bump mapping

Bump mapping

If transition is from white to black, rotate the point’s surface normal by θ If transition is from black to white, rotate the point’s surface normal by -θ

Displacement map Alters object geometry Displaces points along normal Bump Map Displacement Map

Texture in Inventor Nodes –SoTexture2. Specifies a 2D texture map. –SoTextureCoordinate2. Defines the set of 2D texture coordinates SoTexture2 *rock = new SoTexture2; root->addChild(rock); rock->filename.setValue("brick.1.rgb"); root->addChild(new SoCube);

SoTexture2 Fields Filename (name of the file to use as a map) Image (color and number of pixels) wrapS, wrapT – image wrapping in horizontal (s) and vertical (T) directions. –REPEAT. Repeat all texture –CLAMP. Repeat last row Model –MODULATE. The shaded color times the texture –DECAL. Replace the shaded color with texture –BLEND. Blends the shaded and texture colors blendColor – specifies blending method

Transforming Texture SoTexture2Transform –Rotation –Translation –scaleFactor. Scales texture on object –Center

Mapping texture Several options –Default coordinates (according to shape) –For vertexes it can be specified explicitly –Use texture coordinate functions SoTextureCoordinatePlane SoTexturecoordinateEnvironment

Default texture mapping Compute the bounding box Longest edge is the horizontal edge (s) The next longest is the vertical (t) Set (s) coordinates from 0 to 1 Set (t) coordinates from 0 to |t|/|s|

Mapping to different surfaces