Excellent! That makes a lot more sense. Thanks for the help!
Charmaine Lee wrote:
> Hi Andrew,
>
> Here are a few things that you will need to do to use multiTextures.
>
> (1) Specify number of texture coordinates set in the GeometryArray object
> (2) Specify texCoordSetMap in the GeometryArray object.
> The values in the array specify the texture coordinate set within
> this GeometryArray object that maps to the corresponding texture unit.
> All elements within the array must be less than the number of texture
> coordinates set specified. A negative value specifies that
> no texture coordinate set maps to the texture unit corresponding to
> the index. The same texture coordinate set may be used for more than
> one texture unit.
> (3) Specify texture coordinates for each texture coordinate set
>
> Example:
>
> // in this example, 2 texCoord sets is specified, and there are
> // 3 texture units anticipated in the appearance object and that's
> // why there are three entries in the texCoordSetMap. texCoordSet0
> // is mapped to texture unit 0, and texCoordSet1
> // is mapped to both texture unit 1 and 2.
>
> int texCoordSetMap[] = {0, 1, 1};
> int texCoordSetCount = 2;
> float texCoordSet0[] = {....};
> float texCoordSet1[] = {....};
>
> geo = new TriangleArray(
> 12,
> TriangleArray.COORDINATES | TriangleArray.TEXTURE_COORDINATE_2,
> texCoordSetCount, texCoordSetMap);
> ...
> // specify texture coordinates for texture coordinate set 0
> geo.setTextureCoordinates(0, 0, texCoordSet0);
>
> // specify texture coordinates for texture coordinate set 1
> geo.setTextureCoordinates(1, 0, texCoordSet1);
> ...
>
> Hope this helps.
>
> Charmaine Lee
> Java3D Team
>
> > X-Accept-Language: en
> > MIME-Version: 1.0
> > Content-Transfer-Encoding: 7bit
> > Date: Mon, 22 May 2000 21:46:40 -0700
> > From: Andrew Barras <[EMAIL PROTECTED]>
> > Subject: [JAVA3D] Multi Texture Question
> > To: [EMAIL PROTECTED]
> >
> > Hey gang,
> >
> > I am trying to create a GeometryArray with multiple texture maps. I am
> > not clear however how to specify multiple sets of UV coordinates. Are
> > they just all put in one big array? If so, how do we specify which vert
> > goes with which?
> >
> > I'm confused. Any help would be appreciated.
> >
> > Thanks,
> > Andrew
> >
> > --
> > _______________________________________________________________________
> > Andrew Barras
> > Course Director - Real Time 3D Graphics
> > Full Sail http://www.fullsail.com
> > [EMAIL PROTECTED]
> >
> > "Nobody wants a phone that toasts bread" - Mitchell Kertzman
> > _______________________________________________________________________
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff JAVA3D-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
_______________________________________________________________________
Andrew Barras
Course Director - Real Time 3D Graphics
Full Sail http://www.fullsail.com
[EMAIL PROTECTED]
"Nobody wants a phone that toasts bread" - Mitchell Kertzman
_______________________________________________________________________
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".