Reading. Texture Mapping. Non-parametric texture mapping. Texture mapping. Required. Angel, 8.6, 8.7, 8.9, Recommended

Similar documents
Reading. Texture Mapping. Non-parametric texture mapping. Texture mapping. Required. Angel, 8.6, 8.7, 8.9, 8.10,

Texture Mapping. Brian Curless CSE 457 Spring 2015

Reading. 12. Texture Mapping. Texture mapping. Non-parametric texture mapping. Required. w Watt, intro to Chapter 8 and intros to 8.1, 8.4, 8.6, 8.8.

Texture Mapping. Brian Curless CSE 457 Spring 2016

Texture Mapping. Reading. Implementing texture mapping. Texture mapping. Daniel Leventhal Adapted from Brian Curless CSE 457 Autumn 2011.

Reading. 11. Texture Mapping. Texture mapping. Non-parametric texture mapping. Required. Watt, intro to Chapter 8 and intros to 8.1, 8.4, 8.6, 8.8.

Reading. 13. Texture Mapping. Non-parametric texture mapping. Texture mapping. Required. Watt, intro to Chapter 8 and intros to 8.1, 8.4, 8.6, 8.8.

Homework #2. Shading, Ray Tracing, and Texture Mapping

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Pipeline Operations. CS 4620 Lecture 10

Computer Graphics. - Texturing Methods -

Complex Shading Algorithms

Computer Graphics. Lecture 14 Bump-mapping, Global Illumination (1)

CS 5600 Spring

Shading. Flat shading Gouraud shading Phong shading

CPSC / Texture Mapping

3D Rasterization II COS 426

+ = To Do. Texture Mapping. Adding Visual Detail. Parameterization. Option: Varieties of projections. Computer Graphics. geometry

+ = To Do. Adding Visual Detail. Texture Mapping. Parameterization. Option: Varieties of projections. Foundations of Computer Graphics (Fall 2012)

Announcements. Written Assignment 2 is out see the web page. Computer Graphics

History of computer graphics

Overview. Hierarchy. Level of detail hierarchy Texture maps Procedural shading and texturing Texture synthesis and noise.

Texture-Mapping Tricks. How Bad Does it Look? We've Seen this Sort of Thing Before. Sampling Texture Maps

Pipeline Operations. CS 4620 Lecture 14

Computer Graphics Introduction. Taku Komura

Introduction to Visualization and Computer Graphics

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

Rendering Light Reflection Models

CS 130 Final. Fall 2015

Texture. Detail Representation

CS 431/636 Advanced Rendering Techniques

Textures and normals in ray tracing

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Texture. Texture Maps

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

Texture and other Mappings

Light Reflection Models

Texture mapping. Computer Graphics CSE 167 Lecture 9

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Reading. 18. Projections and Z-buffers. Required: Watt, Section , 6.3, 6.6 (esp. intro and subsections 1, 4, and 8 10), Further reading:

CS5620 Intro to Computer Graphics

Lahore University of Management Sciences. CS 452 Computer Graphics

Computer Graphics. Illumination Models and Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1

Graphics and Interaction Surface rendering and shading

Lecture outline Graphics and Interaction Surface rendering and shading. Shading techniques. Introduction. Surface rendering and shading

Chapter 10. Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Lahore University of Management Sciences. CS 452 Computer Graphics

Projections and Hardware Rendering. Brian Curless CSE 557 Fall 2014

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)

Level of Details in Computer Rendering

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

9. Illumination and Shading

Texture. Texture Mapping. Texture Mapping. CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 498 VR. Lecture 19-4/9/18. go.illinois.edu/vrlect19

Topics and things to know about them:

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

Introduction to Computer Graphics 7. Shading

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

03 RENDERING PART TWO

Multiple Importance Sampling

Bump Mapping Which one of these two image has a better visual effect?

Rendering Light Reflection Models

Wednesday, 26 January 2005, 14:OO - 17:OO h.

Evolution of Imaging Technology in Computer Graphics. Related Areas

Texture Mapping. Images from 3D Creative Magazine

Summary. What is Computer Graphics? IRISA 2. Coordinate systems. 4. Geometric transformations for display

Surface Rendering. Surface Rendering

CMSC427 Final Practice v2 Fall 2017

Complex Features on a Surface. CITS4241 Visualisation Lectures 22 & 23. Texture mapping techniques. Texture mapping techniques

lecture 18 - ray tracing - environment mapping - refraction

CS 4620 Program 3: Pipeline

Computer Graphics. - Texturing - Philipp Slusallek

Computer Graphics Disciplines. Grading. Textbooks. Course Overview. Assignment Policies. Computer Graphics Goals I

Development of Computer Graphics

Graphics and Interaction Rendering pipeline & object modelling

COMP30019 Graphics and Interaction Rendering pipeline & object modelling

Lecture outline. COMP30019 Graphics and Interaction Rendering pipeline & object modelling. Introduction to modelling

Computer Graphics. Lecture 10. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura 12/03/15

Introduction to Computer Graphics with WebGL

Chapter 2 A top-down approach - How to make shaded images?

CS 4620 Midterm, March 21, 2017

Illumination and Shading

Course Title: Computer Graphics Course no: CSC209

Computer Graphics. Lecture 9 Environment mapping, Mirroring

COMP 4801 Final Year Project. Ray Tracing for Computer Graphics. Final Project Report FYP Runjing Liu. Advised by. Dr. L.Y.

CHAPTER 1 Graphics Systems and Models 3

Announcements. Written Assignment 2 out (due March 8) Computer Graphics

Illumination Models & Shading

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

CS 428: Fall Introduction to. Texture mapping and filtering. Andrew Nealen, Rutgers, /18/2010 1

Interactive Cloth Simulation. Matthias Wloka NVIDIA Corporation

Fog and Cloud Effects. Karl Smeltzer Alice Cao John Comstock

Transcription:

Reading Required Angel, 8.6, 8.7, 8.9, 8.10 Recommended Texture Mapping Paul S. Heckbert. Survey of texture mapping. IEEE Computer Graphics and Applications 6(11): 56--67, November 1986. Optional Woo, Neider, & Davis, Chapter 9 James F. Blinn and Martin E. Newell. Texture and reflection in computer generated images. Communications of the ACM 19(10): 542-- 547, October 1976. 1 2 Texture mapping Non-parametric texture mapping With non-parametric texture mapping : Texture mapping (Woo et al., fig. 9-1) Texture mapping allows you to take a simple polygon and give it the appearance of something much more complex. Texture size and orientation are fixed They are unrelated to size and orientation of polygon Gives cookie-cutter effect Due to Ed Catmull, PhD thesis, 1974 Refined by Blinn & Newell, 1976 Texture mapping ensures that all the right things happen as a textured polygon is transformed and rendered. 3 4

Parametric texture mapping Implementing texture mapping A texture lives in it own abstract image coordinates paramaterized by (u,v) in the range ([0..1], [0..1]): It can be wrapped around many different surfaces: With parametric texture mapping, texture size and orientation are tied to the polygon. Idea: Separate texture space and screen space Texture the polygon as before, but in texture space Deform (render) the textured polygon into screen space A texture can modulate just about any parameter diffuse color, specular color, specular exponent, Computing (u,v) texture coordinates in a ray tracer is fairly straightforward. Note: if the surface moves/deforms, the texture goes with it. 5 6 Mapping to texture image coords The texture is usually stored as an image. Thus, we need to convert from abstract texture coordinate: Texture resampling We need to resample the texture: (u,v) in the range ([0..1], [0..1]) to texture image coordinates: (u tex,v tex ) in the range ([0.. w tex ], [0.. h tex ]) A common choice is bilinear interpolation: ( x y) T( ab, ) = T i+, j+ = T[ i, j] + T[ i+ 1, j] + Q: What do you do when the texture sample you need lands between texture pixels? T[ i, j+ 1] + T[ i+ 1, j+ 1] 7 8

Texture mapping and the z-buffer Solid textures Texture-mapping can also be handled in z-buffer algorithms. Method: Q: What kinds of artifacts might you see from using a marble veneer instead of real marble? y Scan conversion is done in screen space, as usual Each pixel is colored according to the texture Texture coordinates are found by Gouraud-style interpolation z One solution is to use solid textures: x Use model-space coordinates to index into a 3D texture Like carving the object from the material One difficulty of solid texturing is coming up with the textures. Note: Mapping is more complicated if you want to do perspective right! 9 10 Solid textures (cont'd) Displacement mapping Here's an example for a vase cut from a solid marble texture: Textures can be used for more than just color. In displacement mapping, a texture is used to perturb the surface geometry itself: These displacements animate with the surface Solid marble texture by Ken Perlin, (Foley, IV-21) Q: Do you have to do hidden surface calculations on Q? 11 12

Bump mapping Displacement vs. bump mapping In bump mapping, a texture is used to perturb the normal: Input texture Use the original, simpler geometry, Q(u), for hidden surfaces Use the normal from the displacement map for shading: N = normal[q(u)] Rendered as displacement map over a rectangular surface Q: What artifacts in the images would reveal that bump mapping is a fake? 13 14 Displacement vs. bump mapping (cont'd) Environment mapping Image of gazing sphere (taken in a pub) Environment-mapped rendering In environment mapping (also known as reflection mapping), a texture is used to model an object's environment: Original rendering Rendering with bump map wrapped around a cylinder Bump map and rendering by Wyvern Aldinger Rays are bounced off objects into environment Color of the environment used to determine color of the illumination Really, a simplified form of ray tracing Environment mapping works well when there is just a single object or in conjunction with ray tracing Under simplifying assumptions, environment mapping can be implemented in hardware. 15 With a ray tracer, the concept is easily extended to handle refraction as well as reflection. 16

Combining texture maps Combining texture maps (cont'd) Using texture maps in combination gives even better effects, as Young Sherlock Holmes demonstrated Environment- mapped mirror reflection Phong lighting with diffuse texture Bump mapping + Glossy reflection Combine textures and add dirt Construction of the glass knight, (Foley, IV-24) Rivet stains + Shinier reflections Close-up Construction of the glass knight, (Foley, IV-24) 17 18 Summary What to take home from this lecture: 1. The meaning of the boldfaced terms. 2. Familiarity with the various kinds of texture mapping, including their strengths and limitations. 19