Basic HTML version of Foils prepared March 4 1998

Foil 165 Texture Mapping with S and T

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 98. by Zeynep Ozdemir, Rob Baker, Meryem Ispirli, Geoffrey C. Fox


1 With image textures, it is considered that it has a 2-D graph and x axis is called S axis and y axis is called as T axis.
2 Texture image always extends from 0.0 to 1.0 in the S (x) direction and from 0.0 to 1.0 in the T (y) direction in the texture coordinate system.
3 TextureCoordinate only has a point field and specifies a list of texture coordinates and may be used as the value of the texCoord field in the IndexedFaceSet and ElevationGrid nodes.
  • This is "pointed to" by texCoordIndex field
4 It is possible to give a point in a TextureCoordinate node which is outside of the texture image such as beyond the left, right, bottom, or top edges of the image.
  • When wrapping (repeatS/repeatT) is allowed, coordinates above the top of the image wrap to the bottom of the image, and coordinates below the bottom edge wrap back to the top, and so on.
5 When wrapping is not in use, it is called clamping. This mode is useful to make sure that a texture image occurs just once. Clamping restricts the texture images in the S, T, or both directions to lie in range 0 to 1.
6 repeatS and repeatT fields of texture nodes specifies whether wrapping is on or off in the corresponding Coordinate.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998