Simple question: How to set a different image to each side of a 3D cube?

Hi all,

I’m very new in the use of Java 3D and I would like to know how to set, in a 3D cube, for each side a different image.

Currently I’ve the code to set an image as texture of the cube, but it applies the same image to all the sides. However, I would like to use different images for each side.

This is my code: http://pastebin.com/sexBx57K

Any clue?

Thanks!

I’m no Java3D expert, but I found a stackoverflow post and javadoc which suggest using a TextureCubeMap.

StackOverflow: http://stackoverflow.com/questions/26785859/how-to-set-different-images-as-faces-sides-of-a-3d-cube-in-java-3d-api

Javadock: http://download.java.net/media/java3d/javadoc/1.3.2/javax/media/j3d/TextureCubeMap.html

Hope this helps,
CopyableCougar4