Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QuadArray with different image per face

0 views
Skip to first unread message

Melih Onvural

unread,
Apr 13, 2008, 7:15:05 PM4/13/08
to
I have a QuadArray, and I can currently load a single image which
wraps itself over the entirety of the cube. I want a different image
on each face of the cube. I know that if I use mimap, then I can have
the layers necessary to have all of the images that I want to load,
but I have no idea as to how to present each face as its own image.
Any advice on this would be hugely appreciated. Thanks in advance,

--
Melih

PhoneixS

unread,
May 14, 2008, 5:31:36 AM5/14/08
to
May can be do with the texture coordinates. See the use of
setTextureCoordinates of any geometry.

It is "public void setTextureCoordinate(int texCoordSet, int index,
float[] texCoord)" where you use texCoordSet to select the texture,
index is the vertex that you are defining and texCoord is the
coordinate in the image. You can use the setTextureCoordinates method
to set all vertex of the same face in one step.

0 new messages