Tayyaba Jabeen
Roll no.:163332
MS2Cs
What is Texture Mapping
A common method for adding surface detail is to map
texture patterns onto the surfaces of objects.
The texture pattern may either be defined in
rectangular array or as a procedure that modifies
surface intensity values. This approach is referred to as
texture mapping or pattern mapping.
Example of Texture Mapping
To illustrate the steps in texture mapping, we consider the transfer
of the pattern shown in Fig. 14-97 to a cylindrical surface. The
surface parameters are
Mapping a texture pattern defined on a unit
square (a) to a cylindrical surface (b).
We can map the array pattern to the surface with the following linear
transformation, which maps the pattern origin to the lower left corner of the
surface.
Next, we select a viewing position and perform the inverse viewing
transformation from pixel coordinates to the Cartesian reference for the
cylindrical surface. Cartesian coordinates are then mapped to the surface
parameters with the trans- formation
And the parametric representation for the surface in the Cartesian
reference frame is
• and projected pixel positions are mapped to
texture space with the inverse transformation
• Intensity values in the pattern array covered by
each projected pixel area are then averaged to
obtain the pixel intensity.
texture mapping in computer graphics

texture mapping in computer graphics

  • 1.
  • 2.
    What is TextureMapping A common method for adding surface detail is to map texture patterns onto the surfaces of objects. The texture pattern may either be defined in rectangular array or as a procedure that modifies surface intensity values. This approach is referred to as texture mapping or pattern mapping.
  • 3.
    Example of TextureMapping To illustrate the steps in texture mapping, we consider the transfer of the pattern shown in Fig. 14-97 to a cylindrical surface. The surface parameters are Mapping a texture pattern defined on a unit square (a) to a cylindrical surface (b).
  • 4.
    We can mapthe array pattern to the surface with the following linear transformation, which maps the pattern origin to the lower left corner of the surface. Next, we select a viewing position and perform the inverse viewing transformation from pixel coordinates to the Cartesian reference for the cylindrical surface. Cartesian coordinates are then mapped to the surface parameters with the trans- formation And the parametric representation for the surface in the Cartesian reference frame is
  • 5.
    • and projectedpixel positions are mapped to texture space with the inverse transformation • Intensity values in the pattern array covered by each projected pixel area are then averaged to obtain the pixel intensity.