Monique,
Combine your six textures into a single texture (simplest is probable a
horizontal row/rectangle with each one sitting next to the previous one)
and then set your u,v (s,t in Java terminology) coordinates
appropriately to pick the right section of the texture for each face.
I'm assuming each texture has the same height (makes it easier to put
them together) but if the heights aren't correct you could still pick
the tallest and fill black on the others. Assumedly this is a cube, as
you mentioned, and thus fairly easy since each texture would typically
be a square.
- John Wright
Starfire Research
Monique Jeger wrote:
>
> Hi everybody,
>
> I'd like to map a different texture on each face of a cube. To my disposal I
> have
> the 8 cube's vertices v1, ... ,v8 and I define the 6 faces of the cube with
> an
> array of 6 time 4 = 24 Point3f, I also have 6 different texture objects.
> To do that I'd like to use the the folloing constructor of the QuadArray
> class
>
> QuadArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[]
> texCoordSetMap)
>
> How do I write the texCoordSetMap parameter and how to create the necessary
> "texture coordinate sets" ?
>
> Where can I find an example with the above constructor ?
>
> Thanks for any help
>
> Mon.
>
> ===========================================================================
> 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".