RenolY2 / SuperBMD

A library to import and export various 3D model formats into the Binary Model (BMD) format. (Nintendo GC/Wii)
37 stars 10 forks source link

Skinned Meshes - Weight Issue #34

Open Louiskovski opened 2 years ago

Louiskovski commented 2 years ago

There is a problem with the conversion of skinned meshes. As soon as the weights of the model overlap (i.e. when a vertex is assigned to two vertex groups), the respective game crashes, no matter how heavy the weight is. As soon as you limit the vertex groups, e.g. with the "Limit Total" option in Blender, it works fine. However, every model viewer has no problems displaying the model. Maybe it's just a small problem with padding in the file? :P

Here I have a test model which contains overlapped weights and causes the game to crash: https://www.mediafire.com/file/lf6hry761vahy6j/Model_OverlappingWeights.bdl/file

And here the exact same model, only with limited weights, which does not cause a crash: https://www.mediafire.com/file/kvxebmpodjyo0cg/Model_NoOverlappingWeights.bdl/file