This isn't a jpct-specific question. I can understand if you don't want to answer it, Egon. But here it goes, anyway: how do I texture map a triangle? Put differently, let's say that I have a sphere and a texture map. How do I figure out which part of the texture map goes with each triangle?
That highly depends on how you actually want your texture to be applied...spherical, projected...whatever. The ExtendedPrimitives class does support generated texture coordinates for spheres. I can upload the source code of that class if that would help.
It would, thanks very much.
Here you go: http://www.jpct.net/download/tmp/ExtendedPrimitives.java (http://www.jpct.net/download/tmp/ExtendedPrimitives.java)