Java 3d texutre.

Started by
-1 comments, last by java3d 11 years, 9 months ago
How i can load the textures in java 3d?I tried several times but so far I have only colored the objects in some random color.
TextureLoader loader = new TextureLoader("rujda.bmp",this);
Texture3D brick = (Texture3D)loader.getTexture();
TextureAttributes ta = new TextureAttributes();
Appearance ap = new Appearance();
ap.setTextureAttributes(ta);
ap.setTexture(brick);

This topic is closed to new replies.

Advertisement