[ Contact ] [ Links ] [ Previous : 10 / 25 : Using a texture coordinate system ] [ Up ] [ Next : 12 / 25 : Texture2D example code ]

Specifying texture coordinates

Texture coordinates define a 2D shape atop the texture image

Give texture coordinates to GeometryArray, and texture coordinate indices to IndexedGeometryArray

Methods on GeometryArray set texture coordinates (GeometryArray class methods)

void setTextureCoordinates( int index, * texCoord ) 

Method variants accept float, Point2f, and Point3f

Methods on IndexedGeometryArray set texture coordinate indices

void setTextureCoordinateIndices( int index, int[] value ) 

A 3D Shape with vertices

A 2D Shape with other vertices as an extract of the texture

A matching between the to set of vertices


See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>