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 - 14 May 2008 10:31 GMT
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.