Texture Mapping - PowerPoint PPT Presentation

1 / 26
About This Presentation
Title:

Texture Mapping

Description:

Texture Mapping – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 27
Provided by: csOta
Category:
Tags: ctss | mapping | texture

less

Transcript and Presenter's Notes

Title: Texture Mapping


1
Texture Mapping
2
Why texture?
  • Detail is expensive to model
  • Often the surface of an object is viewed only
    from a distance
  • We can paint the detail on the object instead
    of increasing the complexity of the object

3
(No Transcript)
4
(No Transcript)
5
How is it done?
  • As we draw each pixel of a surface, we get the
    local colour from the texture image.
  • So we need a coordinate system on the surface to
    find the right bit of the texture.

6
Just use x, y?
7
u, v Mapping
v
u
8
Remember shading and normals?
  • Each vertex carries shading and/or normal vector
    values for interpolation.
  • Give each vertex u, v values too.
  • The interpolation can be done by software or
    hardware.

9
Scan-line interpolation
a
b
p
u's
us
Scan line y s
us ub(uc-ub)(s - by)/(cy by) similarly u's
and up, vp
c
10
Ways to get u, v
11
Parametric surfaces
12
Different uses of texture
13
Ray traced?
14
Bump mapping
15
Bump Mapping Examples
16
(No Transcript)
17
(No Transcript)
18
Problems
  • Undersampling one pixel maps to an area covering
    many texture pixels (texels)
  • Oversampling many pixels map to an area
    contained by only one texel.

19
Undersampling
20
Under-sampling
COSC326 Lecture 17
21
Oversampling
22
Oversampling
23
Surface and volume texture
2D
3D
24
Functional Textures
25
(No Transcript)
26
Movie Example
Write a Comment
User Comments (0)
About PowerShow.com