Texture Mapping COMP575/COMP770.

Slides:



Advertisements
Similar presentations
Polygon Rendering Flat Rendering Goraud Rendering Uses Phong Reflectance Phong Rendering.
Advertisements

Computer Graphics I, Fall 2010 Shading II.
CS 480/680 Computer Graphics Shading 2 Dr. Frederick C Harris, Jr.
03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
Cs123 INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © Andries van Dam Texture Mapping Beautification of Surfaces 1/23.
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.
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Lighting and Shading Wen-Chieh (Steve) Lin
(conventional Cartesian reference system)
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 18: Shading & Texture Mapping Many slides from Greg.
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.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
Shading, Surfaces & Textures
Guilford County Sci Vis V204.01
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.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
ECSE 4750: Computer Graphics Rensselaer Polytechnic Institute Nov 5, 2012 Texture and Texture Mapping.
Texture Mapping by Model Pelting and Blending
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,
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Game Programming 06 The Rendering Engine
Computing & Information Sciences Kansas State University Lecture 10 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
11/5/2002 (c) University of Wisconsin, CS 559 Last Time Local Shading –Diffuse term –Specular term –All together –OpenGL brief overview.
Local Illumination and Shading
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
MIT EECS 6.837, Durand and Cutler Texture Mapping & Other Fun Stuff.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Texturing CMSC 435/ What is Texturing? 2 Texture Mapping Definition: mapping a function onto a surface; function can be: – 1, 2, or 3D – sampled.
Applications and Rendering pipeline
Computer Graphics (Fall 2006) COMS 4160, Lecture 16: Illumination and Shading 1

Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
- Introduction - Graphics Pipeline
Photorealistic Rendering vs. Interactive 3D Graphics
POLYGON MESH Advance Computer Graphics
Basic Rendering Techniques
Visual Appearance Chapter 4
3D Graphics Rendering PPT By Ricardo Veguilla.
So Far We have assumed that we know: The point The surface normal
Shading Variation in observed color across an object
© University of Wisconsin, CS559 Fall 2004
Chapter 14 Shading Models.
Basics Texture Map Setup
© University of Wisconsin, CS559 Fall 2004
Chapter IX Bump Mapping
Dr. Jim Rowan ITEC 2110 Vector Graphics II
CS5500 Computer Graphics May 29, 2006
CS-378: Game Technology Lecture #4: Texture and Other Maps
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Material Colours and Lighting
Chapter 14 Shading Models.
Advanced Computer Graphics: Texture
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Texture Mapping Jung Lee.
Presentation transcript:

Texture Mapping COMP575/COMP770

Texture mapping Objects have properties that vary across the surface

Texture Mapping So we make the shading parameters vary across the surface [Foley et al. / Perlin]

Texture mapping Adds visual complexity; makes appealing images

Texture mapping Color is not the same everywhere on a surface one solution: multiple primitives Want a function that assigns a color to each point the surface is a 2D domain, so that is essentially an image can represent using any image representation raster texture images are very popular

A definition Texture mapping: a technique of defining surface properties (especially shading parameters) in such a way that they vary as a function of position on the surface. This is very simple! but it produces complex-looking effects

Examples Wood gym floor with smooth finish diffuse color kD varies with position specular properties kS, n are constant Glazed pot with finger prints diffuse and specular colors kD, kS are constant specular exponent n varies with position Adding dirt to painted surfaces Simulating stone, fabric, … to approximate effects of small-scale geometry they look flat but are a lot better than nothing

Mapping textures to surfaces Usually the texture is an image (function of u, v) the big question of texture mapping: where on the surface does the image go? obvious only for a flat rectangle the same shape as the image otherwise more interesting Note that 3D textures also exist texture is a function of (u, v, w) can just evaluate texture at 3D surface point good for solid materials often defined procedurally [Wolfe / SG97 Slide set]

Mapping textures to surfaces “Putting the image on the surface” this means we need a function f that tells where each point on the image goes this looks a lot like a parametric surface function for parametric surfaces you get f for free

Texture coordinate functions Non-parametrically defined surfaces: more to do can’t assign texture coordinates as we generate the surface need to have the inverse of the function f Texture coordinate fn. for a vtx. at p get texture at φ(p)

Texture coordinate functions Mapping from S to D can be many-to-one that is, every surface point gets only one color assigned but it is OK (and in fact useful) for multiple surface points to be mapped to the same texture point e.g. repeating tiles

Texture coordinate functions Define texture image as a function where C is the set of colors for the diffuse component Diffuse color (for example) at point p is then

Examples of coordinate functions A rectangle image can be mapped directly, unchanged

Examples of coordinate functions For a sphere: latitude-longitude coordinates φ maps point to its latitude and longitude [map: Peter H. Dana]

Examples of coordinate functions A parametric surface (e.g. spline patch) surface parameterization gives mapping function directly (well, the inverse of the parameterization) [Wolfe / SG97 Slide set]

Examples of coordinate functions For non-parametric surfaces it is trickier directly use world coordinates need to project one out [Wolfe / SG97 Slide set]

Examples of coordinate functions Non-parametric surfaces: project to parametric surface [CS467 slides]

Examples of coordinate functions Triangles specify (u,v) for each vertex define (u,v) for interior by linear interpolation (uc,vc) (ua,va) (u,v) (ub,vb)

Texture coordinates on meshes Texture coordinates become per-vertex data like vertex positions can think of them as a second position: each vertex has a position in 3D space and in 2D texure space How to come up with vertex (u,v)s? use any or all of the methods just discussed in practice this is how you implement those for curved surfaces approximated with triangles use some kind of optimization try to choose vertex (u,v)s to result in a smooth, low distortion map

Reflection mapping Early (earliest?) non-decal use of textures Appearance of shiny objects Phong highlights produce blurry highlights for glossy surfaces. A polished (shiny) object reflects a sharp image of its environment. The whole key to a shiny-looking material is providing something for it to reflect. [Dror, Willsky, & Adelson 2004]

Reflection mapping From ray tracing we know what we’d like to compute trace a recursive ray into the scene—too expensive If scene is infinitely far away, depends only on direction a two-dimensional function

Environment map A function from the sphere to colors, stored as a texture. [Blinn & Newell 1976]

Spherical environment map Hand with Reflecting Sphere. M. C. Escher, 1935. lithograph

Environment Maps [Paul Debevec]

[CS467 slides]

Cube environment map [Ned Greene]

Normal mapping [Paolo Cignoni]

base subdivision surface hand-painted displacement map (detail) Paweł Filip tolas.wordpress.com displaced surface

Bump mapping [Blinn 1978]

Displacement mapping Geometry Bump mapping Displacement mapping [CS467 slides]

Another definition Texture mapping: a general technique for storing and evaluating functions. They’re not just for shading parameters any more!