动画 .x 文件和多种材质的问题
我一直在尝试在同一网格上导出具有多种材质的蒙皮和动画 .x 模型,但发现发生这种情况时蒙皮会中断。动画工作正常,但网格物体停止正确地包裹骨骼(看起来),不同的顶点附着在不同的骨骼上,造成奇怪的混乱。
当只有一种材质附加到整个网格时,它看起来很好:
但是,当两个已附加,一切都变得疯狂:
不确定这是否相关,但当我更改时左侧单个三角形的材质模型的整个左侧变得乱码,如屏幕截图中所示,但右侧很好。当我更改右侧另一个三角形的材质时,一切都变成了乱码。
我正在使用 pandasoft DirectX 导出器,我还尝试过 KW-Xport
I've been trying to export skinned and animated .x models with multiple materials on the same mesh but have found the skinning breaks when that happens. The animations work fine but the mesh stops wrapping around the bones properly (it seems) with what looks to be different vertices attaching themselves to different bones causing a strange mess.
When only one material is attached to the entire mesh it looks fine:
However when two are attached it goes all nuts:
Not sur eif this is relevant but when I changed the material of a single triangle on the left side the entire left side of the model became garbled as you can see in the screenshot, however the right side was fine. When I changed the material of another triangle on the right side it all became garbled.
I'm using the pandasoft DirectX exporter, I've also trid KW-Xport
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明 DirectX x 文件查看器被破坏了,我尝试在 directx sdk 的 2004 年蒙皮网格样本中加载模型,并且工作正常。
Turns out the DirectX x file viewer was what was broken, I tried loaidng the model in the 2004 skinned mesh sample in the directx sdk and it worked fine.