1 / 25

Texture Mapping

Texture Mapping. 고려대학교 컴퓨터 그래픽스 연구실. 3 D Rendering Pipeline. 3 D Primitives. 3 D Modeling Coordinates. Model Transformation. 3 D World Coordinates. Lighting. 3 D World Coordinates. Viewing Transformation. 3 D Viewing Coordinates. Projection Transformation. 2 D Projection Coordinates.

Download Presentation

Texture Mapping

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr

  2. 3D Rendering Pipeline 3D Primitives 3D Modeling Coordinates Model Transformation 3D World Coordinates Lighting 3D World Coordinates Viewing Transformation 3D ViewingCoordinates 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 • 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 u t (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 u t (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 with Perspective Divide Linear Interpolation of Texture Coordinate cgvr.korea.ac.kr

  11. Texture Mapping • Texture mapping methods • Mapping • 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 Area Filtering Point Sampling 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. MipMaps • 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 • 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 Texture Value 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 • Mapping • Filtering • Texture mapping applications • Modulation textures • Illumination mapping • Bump mapping • Environment mapping • Image-based rendering • Non-photorealistic rendering cgvr.korea.ac.kr

More Related