Re: A problem with the textures.

Posted by gouessej on
URL: https://forum.jogamp.org/A-problem-with-the-textures-tp4025533p4025540.html

You need to set texture coordinates to meshes to use textures with them, there is an example here:
http://www.vrupl.evl.uic.edu/LabAccidents/java3d/lesson05/index.html

As you see at the very beginning, the polygons are attached to a shape, the appearance is attached to the same shape. These polygons have texture coordinates, that's why it works. Have you tried to use build-in loaders to load existing 3D models with their texture coordinates?
Julien Gouesse | Personal blog | Website