Texture Mapping from Watt, Ch. 8 Jonathan Han. Topics Discussed Texture Map to Models Bump Maps, Light Maps Environment (Reflection) Mapping 3D Textures.

Slides:



Advertisements
Similar presentations
Lecture 8 Transparency, Mirroring
Advertisements

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.
3D Graphics Rendering and Terrain Modeling
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
Computer Graphics Bing-Yu Chen National Taiwan University.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 6, 2014 TEXTURE MAPPING TEXTURES BUMP MAPPING ENVIRONMENT MAPPING PROCEDURAL TEXTURING.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
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.
Texture mapping. Adds realism to computer graphics Texture mapping applies a pattern of color Bump mapping alters the surface Mapping is cheaper than.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
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.
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
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 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Modelling and Simulation Types of Texture Mapping.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
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.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Texture Mapping.
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)
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
09/11/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Graphics Pipeline Texturing Overview Cubic Environment Mapping.
June 9, 2008 Dr. Haim Levkowitz IVPR/CS/UML | 1 Texture.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
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.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Game Programming 06 The Rendering Engine
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Vector Graphics Digital Multimedia Chap 이병희
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Computing & Information Sciences Kansas State University Advanced CG 2 of 8: MappingsCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
CSE 681 Introduction to Ray Tracing. CSE 681 Ray Tracing Shoot a ray through each pixel; Find first object intersected by ray. Image plane Eye Compute.
CS 376 Introduction to Computer Graphics 04 / 13 / 2007 Instructor: Michael Eckmann.
Acquiring, Stitching and Blending Diffuse Appearance Attributes on 3D Models C. Rocchini, P. Cignoni, C. Montani, R. Scopigno Istituto Scienza e Tecnologia.
Texturing CMSC 435/ What is Texturing? 2 Texture Mapping Definition: mapping a function onto a surface; function can be: – 1, 2, or 3D – sampled.

University of New Mexico
Buffers and texture mapping
Texture Mapping.
Computer Graphics Texture Mapping
Photorealistic Rendering vs. Interactive 3D Graphics
Graphics, Fall 2017 Lecture 24: Texture Mapping
3D Graphics Rendering PPT By Ricardo Veguilla.
Texture Mapping COMP575/COMP770.
So Far We have assumed that we know: The point The surface normal
Chapter 10: Computer Graphics
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
CS-378: Game Technology Lecture #4: Texture and Other Maps
Texture Mapping Ed Angel Professor Emeritus of Computer Science
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Introduction to Ray Tracing
Presentation transcript:

Texture Mapping from Watt, Ch. 8 Jonathan Han

Topics Discussed Texture Map to Models Bump Maps, Light Maps Environment (Reflection) Mapping 3D Textures Interactive Texture Mapping

What is Mapping? Assigning colors to the pixels on a 3D model to simulate... 1.Color 2.Specular ‘color’ 3.Surface perturbation 4.Transparency

2D Texture Maps to Polygon Mesh Objects Association of 2 coordinate systems between the mesh and the map Inverse Mapping vs. Forward Mapping Bilinear Interpolation Problem is parametrization of object surface

Mapping by Intermediate Surface Map -> (S map) Simple 3D shape -> (O map) Projection onto complex mesh Plane, cylinder, cube, spheres all possible intermediate shapes

O Mapping

O Mapping Result

Bi-Cubic Parametric Patch If an object is already a quadric or a cubic, then the surface possess a coordinate system that covers every point already. Simply multiply u and v by the resolution in pixels to obtain location on texture map

Parametric Example

Parametric Patch (cont’d) Divide mesh up to individual parametric surfaces, and place the texture over each

Parametric Patch (cont’d) Assign (u, v) coordinates to points on mesh surface, and interpolate between these points

Billboards Technique to create pseudo- realistic 3D objects when viewed in constricted directions

Bump mapping Simulation for surface perturbation without adding polygons to the mesh The lighting changes per-pixel to achieve said simulation

What is a Bump Map? Array of values that represent object’s height variation on small scale Combined with surface normal to evaluate lighting equation

Light Maps Like Bump Maps, Light Maps store information on a surface that’s not just color Simulate localized lighting Same map applied to multiple mesh to create the same lighting pattern

Light Maps Example No light mapsWith light maps

Environmental Mapping To substitute expensive ray-tracing for modelling shiny objects, 2D environment map are textured onto the object.

Creating an Environmental Map Sphere map: Render scene from opposite angle of output camera, and apply as texture map Problem: Inaccurate when the object is round

Creating an Environmental Map Ball Map: Create a mirrored sphere and place at approximate location of object – render the sphere. Problem: Non-uniform sampling at non-original viewpoint

Creating an Environmental Map Cube Map: Place a camera at location of object and remove object – take snapshots at 6 directions.

Extended Environmental Mapping Surface Properties: 2 maps – diffuse and specular, combined like in Phong shading Diffuse: Indexed by surface normal Specular: Indexed by reflected view vector

3-D Texture Domains Instead of a 2D texture pattern, why not make the texture 3D? Circumvent problems in texture compression and texture continuity Problem: Only have texture that are defined in 3D

Easy Example If Z-axis integer is even, make it red. If not, make it white.

Easy Example No. 2 Sine and ramp functions

3D Noise Used to distort existing texture to form irregular and interesting patterns

Perlin’s Noise Lattice The Perlin’s Method of Noise Generation: Lattice of points (i,j,k), where i, j, and k are integers – each assigned a random number. Values between i, j, and k linearly (or otherwise) interpolated

Adjusting Noise Instead of noise(x,y,z), we can use noise(f*x,f*y,f*z) * a to fine-tune result f – frequency a - amplitude

Creating Recognizable Textures Turbulate stripes to emulate marble texture (marble(x) = marble_colour (sin(x + turbulence(x))

3D Textures for Animation Emulate flame by adding time dimension to 3D Texture Map Successive “slices” of noise rendered for flickering flame

Interactive Texturing Assist artists in creating helpful textures Applet

Interactivity in Texturing Symmetrical Models Model placed in bounding box Artist paints profile texture as 2D image Image plane-textured onto the model Artist adjusts image and re-render for results

“Painting” Textures Artist “paints” textures onto models directly Imbues shading, glossiness, as well as pattern to model spontaneously as artist selects it

Implementing Texture “Paint” Auxiliary frame buffer – item buffer – created Screen cursor’s location on model gives pointer to position on object surface Requires parametrized surface – divide object’s surface into numerous micropolygons

Discussion Additional possibilities for “clever” ways around expensive modelling? Applications for 3D textures and noise? In combination with environmental mapping? In combination with light maps and bump maps?