Skinning custom 3D cube in javafx 8

前端 未结 1 1972
独厮守ぢ
独厮守ぢ 2021-01-15 21:00

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

相关标签:
1条回答
  • 2021-01-15 21:36

    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.

    0 讨论(0)
提交回复
热议问题