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
Popular Topics
Advertisement