According to the Java3d javadoc you’re allowed to share Texture2D objects among different Shape3Ds.
However I notice strange effects when I do this and load a shared texture in the following way:
BufferedImage bimg; // loaded in an own way
Texture2D texture = (Texture2D) TextureLoader.loadTexture(bimg, "RGBA", true, Texture.NICEST, Texture.NICEST, Texture.WRAP);
There’s the following problem then: when I zoom in one of those Shape3ds sharing this texture, the textured surfaces of the Shape3d become white.
Is it maybe a problem that I use the TextureLoader.loadTexture method with an BufferedImage instead of a file name?
Do I have to use a seperate BufferedImage with this call for each Shape3d wanting to use the same texture file?
