Skinning custom 3D cube in javafx 8

大憨熊 提交于 2019-12-01 13:00: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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!