0

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

Emre Erkan
  • 8,433
  • 3
  • 48
  • 53
meds
  • 21,699
  • 37
  • 163
  • 314
  • Are the missing triangles using texture 2? – Goz Feb 10 '10 at 08:47
  • Sadly no, the missing triangles can be anything. If I add the texture to just one triangle on the left hand or right hand side of the model that side ends up with missing triangles. The more triangles I apply the new texture to the more muddled up it becomes... – meds Feb 10 '10 at 10:07

1 Answers1

0

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.

meds
  • 21,699
  • 37
  • 163
  • 314