1 9. Textures v Create the illusion of detail by wraping a complex image (texture) around a simple geometry –realism is increased without the need for.

Slides:



Advertisements
Similar presentations
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
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.
Texture Mapping. Texturing  process that modifies the appearance of each point on a surface using an image or function  any aspect of appearance can.
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
Texture Visual detail without geometry. Texture Mapping desire for heightened realism.
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
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.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Introduction to Computer Graphics Ed Angel Professor of Computer Science, Electrical and.
OpenGL Texture Mapping
OpenGL Texture Mapping Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 9 Lighting and Texturing F To understand.
OpenGL Texture Mapping April 16, Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Basic Stragegy Three steps to applying a texture.
CS 4731: Computer Graphics Lecture 17: Texturing Emmanuel Agu.
Hundreds of thousands of polygons! Hundreds of thousands of polygons! Painstaking detail for the artist to create. Painstaking detail for the artist to.
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.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Computer Graphics Texture Mapping Eriq Muhammad Adams
Computer Graphics 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 Course: Computer Graphics Presented by Fan Chen
Computer Graphics Ben-Gurion University of the Negev Fall 2012.
An Interactive Introduction to OpenGL Programming Ed Angel
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Textures.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
ECSE-4750 Computer Graphics Fall 2004 Prof. Michael Wozny TA. Abhishek Gattani TA. Stephen
Introduction to Computer Graphics Dr.Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science Department Frederick University.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 CS4610/7610: Introduction to Computer Graphics.
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.
OpenGL Texture Mapping. 2 Objectives Introduce the OpenGL texture functions and options.
Texture Mapping Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
CS 480/680 Computer Graphics OpenGL Texture Mapping Dr. Frederick C Harris, Jr. Fall 2011.
1 Texture Mapping. 2 Texture Aliasing MIPmaps Environment Mapping Bump Mapping Displacement Mapping Shadow Maps Solid Textures Antialiasing.
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.
CS418 Computer Graphics John C. Hart
Texture Mapping May 4, Many slides are borrowed from UNC-CH COMP236 Course (Spring 2003) taught by Leonard McMillan
Texture Mapping CAP4730: Computational Structures in Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CSCI 440.  So far we have learned how to  build shapes  create movement  change views  add simple lights  But, our objects still look very cartoonish.
Textures – Basic Principles Lecture 29 Fri, Nov 14, 2003.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 12.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Texture Mapping Greg Humphreys University of Virginia CS 445, Fall 2003.
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Texture Mapping.
1 Chapter 7 Texture Mapping. 2 The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number is.
Week 7 - Wednesday CS361.
Madhulika (18010), Assistant Professor, LPU.
CS4610/7610: Introduction to Computer Graphics
Texture Mapping cgvr.korea.ac.kr.
OpenGL Texture Mapping
Angel: Interactive Computer Graphics5E © Addison-Wesley 2009
Interactive Graphics Algorithms Ying Zhu Georgia State University
Introduction to Computer Graphics
Introduction to Computer Graphics
3D Game Programming Texture Mapping
Procedural Animation Lecture 6: Mapping
ATCM 6317 Procedural Animation
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
OpenGL Texture Mapping
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Texture Mapping Ed Angel Professor Emeritus of Computer Science
3D Game Programming Texture Mapping
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Texture Mapping Jung Lee.
OpenGL Texture Mapping
Presentation transcript:

1 9. Textures v Create the illusion of detail by wraping a complex image (texture) around a simple geometry –realism is increased without the need for a complex shape Texture Mapping continued

2 Textures

3 OpenGL Pipeline OpenGL Pipeline Overview Diagram OpenGL Reference Manual (Addison-Wesley Publishing Company)

4 Textures v Express a image or complex objects v How to present wall or tree –Geometry and color?? –Texture!!

5 Textures v Basic Principles v Create a Simple Texture

6 Textures Objectives v Know what a texture is and why we need it. v Be able to program simple textures.

7 Textures Basic Principles v Detailed surface structures are hard and expensive to build in 3D -> Texture! v „Texel“ is „texture element“ -> one pixel of a texture. v Texture mapping: Fit image to a given geometry.

8 Textures Create a Simple Texture v Load an image v Create a texture v Create 3D- object with appearance String filename = "earth.jpg"; TextureLoader loader = new TextureLoader(filename, this); ImageComponent2D image = loader.getImage(); Texture2D texture = new Texture2D(Texture.BASE_LEVEL, Texture.RGBA, image.getWidth(), image.getHeight()); texture.setImage(0, image); Appearance appear = new Appearance(); appear.setTexture(texture); Sphere earth = new Sphere(1.0f, Primitive.GENERATE_TEXTURE_COORDS, appear));

9 Java3D Textures v TextureLoader class v TexCoordGeneration class v Texture2D class v Texture3D class

10 Adding Texture v Adds high-frequency detail that would be unreasonable to achieve through polygons and color

11

12

13

14 Textures v Artist creates Bitmaps v “wrap the bitmap around the model” via UV Mapping

15 UV Mapping v Cutting, Stretching, Rotating a flat texture to project on a 3D surface v Texture Exists in (u,v) space v Model’s polygons carry (u,v) coordinates in addition to (xyz) v Use tools to assign the proper (u,v) pairs to each polygon

16 u v 1.0, 0.5 0,0 0.5, 1.0 0,0 1.0, , 1.0

17 v 2D and 3D textures are supported v Textures an be attached to shapes in a variety of predefined ways, or linked to specific coordinates in the shape.

18 Texture Mapping v Wrap and Clamp v Filtering –Texel to pixel –Magnification –Minification –MIPmaps

19 Texture Coordinate Generation v TexCoordGeneration class –Automatically generate texture coordinates. –Linear Projection –Sphere Map