I am trying to add a skin to a cube by using the following code, but the skin will not work at all. I tested to see if it will add to a default cube and it will (but repeat
You are correct... I have also been playing around with making basic shapes.. like Capsule, Height Maps, Torus, etc...
The texCoords are a pain, but faces are even more of a pain when doing more complex shapes.
As you commented, texCoords should be a value between 0.0(0%), and 1.0(100%) of your rectangle Image
I still have not been able to figure out my texCoords for my Torus...
I still think the guys behind the scenes need to get rid of their system for building TriangleMesh's.
Point3D makes perfect sense for the Points[], yet they use a float[] ... same with texCoords... Point2D would make a much better fit imho.. The Faces[] is ok... As it is a simple Integer[]...
I may even just create a SimpleMesh class that handles thing in that way... anyways, Glad you figured it out.