Basic HTML version of Foils prepared March 4 1998

Foil 160 ImageTexture

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

VRML2.0 Example of ElevationGrid
ImageTexture {
url [] # exposedField MFString
repeatS TRUE # field SFBool
repeatT TRUE # field SFBool
}
The ImageTexture node can provide the URL address of a texture image file in JPEG, GIF, or PNG file format.
url field specifies a list of URL addresses for the texture image file.
PixelTexture node can specify the pixel values explicitly, one by one, from left to right and bottom to top for an image so that we do not need to mention any file name address in the VRML file.
S and T are "x" and "y" for a texture map and repeatS/repeatT if true specify automatic wrapping of image over Shape
  • Fields such as texCoord and texCoordIndex map S and T to geometry of shape



© 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 Apr 5 1998