Sign in to follow this  
pondwater

Mesh and Skeleton organization

Recommended Posts

pondwater    191
Originally my models would consist of a set of meshes and a single global skeleton. Each frame I would iterate through every bone and calculate the skinning matrices then pass these to the skinning shader for each meshes draw call.

Now I realize that while multiple meshes may use the same skeleton, the bones may have different inverse bind transforms depending on the mesh (i guess this is why Assimp and COLLADA store the inverse binds independantly for each mesh).

Is it common to have unique inverse binds or each mesh?

If so, what is a recommended way to store them? I was thinking of having a global skeleton that contains the bone heirarchy. Any pose can be applied to this skeleton, then when skinning, the inverse binds from the respective mesh can be used to construct the skinning palette. Edited by pondwater

Share this post


Link to post
Share on other sites
Ashaman73    13715
[quote name='pondwater' timestamp='1347046989' post='4977794']
Is it common to have unique inverse binds or each mesh?
[/quote]
It depends on your game, but even if not always necessary, it is possible.

[quote name='pondwater' timestamp='1347046989' post='4977794']
Is it common to have unique inverse binds or each mesh?
[/quote]
It didn't hurt and is more flexible. Edited by Ashaman73

Share this post


Link to post
Share on other sites
pondwater    191
I'm trying to figure out under what circumstance unique inverse binds for each mesh would be needed?

The only reason I have them is because Assimp concatenates the COLLADA bind shape matrices into them, which for the life of me I can't understand why this decision was made. I just don't understand why they aren't stored under the respective mesh aiNode->mTransformation...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this