Presentation is loading. Please wait.

Presentation is loading. Please wait.

Texture Mapping cgvr.korea.ac.kr.

Similar presentations


Presentation on theme: "Texture Mapping cgvr.korea.ac.kr."— Presentation transcript:

1 Texture Mapping cgvr.korea.ac.kr

2 3D Rendering Pipeline Texture Mapping 3D Primitives
3D Modeling Coordinates Model Transformation 3D World Coordinates Lighting 3D World Coordinates Viewing Transformation 3D Viewing Coordinates Projection Transformation 2D Projection Coordinates Clipping Texture Mapping 2D Projection Coordinates Viewport Transformation 2D Device Coordinates Scan Conversion 2D Device Coordinates Image cgvr.korea.ac.kr

3 Textures Color variation in interior of 3D polygon
When scan converting a polygon Vary pixel colors according to values fetched from a texture y s ys x t xs Texture Image Surface z cgvr.korea.ac.kr

4 Texture Surface Add Visual Detail to Surfaces of 3D Objects
With Surface Texture Polygonal Model cgvr.korea.ac.kr

5 Overview Texture mapping methods Texture mapping applications Mapping
Filtering Texture mapping applications Modulation textures Illumination mapping Bump mapping Environment mapping Image-based rendering Non-photorealistic rendering cgvr.korea.ac.kr

6 Texture Mapping Steps: Define texture
Specify mapping from texture to surface Lookup texture values during scan conversion (0,1) (1,0) s v y t u (0,0) x Texture Coordinate System Modeling Coordinate System Device Coordinate System cgvr.korea.ac.kr

7 Texture Mapping When scan converting Device coordinate system (x,y)
Modeling coordinate system (u,v) Texture image (t,s) (0,1) (1,0) s v y t u (0,0) x Texture Coordinate System Modeling Coordinate System Device Coordinate System cgvr.korea.ac.kr

8 Texture Mapping 2D projective transformation
Texture coordinate system (t,s) to Device coordinate system (x,y) cgvr.korea.ac.kr

9 Texture Mapping Scan conversion Interpolate texture coordinates
Distortion due to bilinear interpolation approximation Cut polygons into smaller ones, or Perspectively divide at each pixel (u1, v1) α β γ (u2, v2) (u3, v3) cgvr.korea.ac.kr

10 Texture Mapping Corrected Interpolation Linear Interpolation
of Texture Coordinate Corrected Interpolation with Perspective Divide cgvr.korea.ac.kr

11 Texture Mapping Texture mapping methods Texture mapping applications
Filtering Texture mapping applications Modulation textures Illumination mapping Bump mapping Environment mapping Image-based rendering Non-photorealistic rendering cgvr.korea.ac.kr

12 Texture Filtering Must sample texture to determine color at each pixel in image y s ys x t xs z cgvr.korea.ac.kr

13 Texture Filtering Aliasing is a problem Point Sampling Area Filtering
cgvr.korea.ac.kr

14 Texture Filtering Ideally, use elliptically shaped convolution filters
In practice, use rectangles Texture Screen cgvr.korea.ac.kr

15 Texture Filtering Size of filter depends on projective warp
Prefiltering images Mip maps Summed area tables s ys s ys Texel Texel Pixel Pixel t xs t xs Magnification Minification cgvr.korea.ac.kr

16 Mip Maps Keep textures prefiltered at multiple resolutions
For each pixel, linearly interpolate between two closest levels (e.g., trilinear filtering) Fast and easy for hardware cgvr.korea.ac.kr

17 Overview Texture mapping methods Texture mapping applications Mapping
Filtering Texture mapping applications Modulation textures Illumination mapping Bump mapping Environment mapping Image-based rendering Non-photorealistic rendering cgvr.korea.ac.kr

18 Modulation Texture Map Texture Values to Scale Factor Wood Texture
cgvr.korea.ac.kr

19 Illumination Mapping Map Texture Values to Surface Material Parameter
KA KD KS KT n cgvr.korea.ac.kr

20 Bump Mapping Map Texture Values to Perturbations of Surface Normals
cgvr.korea.ac.kr

21 Bump Mapping cgvr.korea.ac.kr

22 Environmental Mapping
Map Texture Values to the Environment Map Surface Pixel Projection onto Environment Map Pixel Area Projection Reference Point cgvr.korea.ac.kr

23 Image-Based Rendering
Map Photographic Textures to Provide Details for Coarsely Detailed Polygonal Model cgvr.korea.ac.kr

24 Nonphotorealistic Rendering
cgvr.korea.ac.kr

25 Summary Texture mapping methods Texture mapping applications Mapping
Filtering Texture mapping applications Modulation textures Illumination mapping Bump mapping Environment mapping Image-based rendering Non-photorealistic rendering cgvr.korea.ac.kr

26 Thanks… cgvr.korea.ac.kr


Download ppt "Texture Mapping cgvr.korea.ac.kr."

Similar presentations


Ads by Google