Can someone explain this error message?

“Number of bind poses doesn’t match number of bones in skinned mesh.”

I don’t know what a ‘bind pose’ is or what tracks it, and more importantly, what I do to fix it/set it to the correct number?

I have a model. It’s a skinned mesh. It’s a ship, that has 10 cannons. I recently removed all 10 cannons and added a new cannon mesh with different bones just to test it, before I added 9 more of it back up to it’s full compliment. Ever since I’ve done that, I get this error message spammed in the console when I import the model and I can’t run the project without it being spammed more. In addition 3 other models, have also started exhibiting this behaviour, ones I’ve not touched or changed.

I don’t know what is tracking the number of bind poses, or in fact what they are or where I go to fix this - does anyone here?

Thanks.

Its pretty straight forward.

You have an animation that states how to move i.e. 20 bones, but you have a mesh that only contains 10.

As you can see from the numbers there is a mismatch between animated bones and the actual number of bones in the mesh.

But if it will work if you add another x cannons I cannot say.

//perlohmann

Yes but that’s pretty much my question - why does it think it needs N number of bones? Why when I save the model with the new number of bones does the animation still think it uses the old number?

What numbers are you talking about that I should see this mismatch with?

I’m moving the bones via code anyhow, but if I don’t have an animation file, the mesh disappears in Unity.

The simple answer is:
If you change the amount of bones in a mesh you need to update the animation so that it uses the same amount of bones.

It dosnt update the animation (Im presuming you mean Unity and not 3DMax or something similar, which I wouldnt know anything about).

20 and 10, they are not equal (they are fictional numbers I dont know what yours are).

The animation Must move 20 bones, but the model Only contains 10.

This is the problem though, there is -no- animation.

I move the bones in code, it’s complaining during the export process. There is no animation in Blender (my 3D app), there is just a mesh + bones + vertex bone weights. That’s it. So where do I update it? ._.

Sounds like you’re using Maya.

When you bind the skeleton to the mesh, there is a bind pose created. The bind pose store information about the bones and the bound mesh, and isn’t updated after the initial bind.

You have two options.

The first is to delete the bind pose from the outliner. This may lead to other errors cropping up on import into Unity, since it appears that Unity cares about the bind pose.

The second option is to un-bind the mesh, make adjustments to the skeleton, and re-bind the mesh to the new skeleton. Since you said it is a ship with cannons, it should be pretty simple to re-bind the mesh and clean up any weight information.

I’m using Blender.

I’ve never heard these terms used in the error message before which is why I’m a bit stuck. I have 3 bones which are weighted (controlling) 3 meshes that are all part of the same object. I don’t really know what is wrong with it, this is how I’ve always done it, though it should be said always = 5 months. :wink:

Ok so I found the problem. When I ‘appended’ the meshes in Blender to my new Blend file, it also appended the animations, but it secreted them away in unselected datablocks, so an initial look at the various animation windows showed nothing.

Also, hitting play on the timeline, didn’t play the animations, because they weren’t selected. BUT, Unity being smart, picked them up and put them in the scene, and played them etc etc.

So, after finding them, deleting them without mercy and re-exporting, all is well.

What a mission.