A problem with the textures.
Posted by dfewfew on
URL: https://forum.jogamp.org/A-problem-with-the-textures-tp4025533.html
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);