动画 .x 文件和多种材质的问题

发布于 2024-08-21 01:43:11 字数 467 浏览 6 评论 0原文

我一直在尝试在同一网格上导出具有多种材质的蒙皮和动画 .x 模型,但发现发生这种情况时蒙皮会中断。动画工作正常,但网格物体停止正确地包裹骨骼(看起来),不同的顶点附着在不同的骨骼上,造成奇怪的混乱。

当只有一种材质附加到整个网格时,它看起来很好:

http://imgur.com/KSV0w

但是,当两个已附加,一切都变得疯狂:

http://imgur.com/l4PwI

不确定这是否相关,但当我更改时左侧单个三角形的材质模型的整个左侧变得乱码,如屏幕截图中所示,但右侧很好。当我更改右侧另一个三角形的材质时,一切都变成了乱码。

我正在使用 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:

http://imgur.com/KSV0w

However when two are attached it goes all nuts:

http://imgur.com/l4PwI

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧故 2024-08-28 01:43:11

事实证明 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文