Jump to content
  • Advertisement
Sign in to follow this  
Husbj

Per-mesh bone animation with Assimp?

This topic is 1246 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Apparently the assimp library specifies bone data on a per-mesh basis where scenes (models) are imported with one or more meshes.

In my importing routine I just ignore any bone data that is defined for more than one single mesh (ie. two meshes refer to a bone with the same name, I'll just read it from the first mesh where it occurs and ignore the other one). May I be shooting myself in the foot here due to there actually being circumstances where two meshes may have different animations for the same bone / joint? It doesn't seem likely to me (never mind the case where two completely separate objects imported from the same scene have bones sharing a name) but then why is it stored like that...?

 

I just noticed that going over my model importing code that I wrote about a year ago so it might just be something I'm not remembering mind you, such that it is there because each bone has vertex weighing that differs for each mesh, but it doesn't seem that is stored along with the bone data?

 

Edit: oh hah, seems that last thing I wrote is exactly it, rubber ducking for the win huh? xD

Still so, the posed question of whether animation data may be different on a per-mesh basis is still interesting, can anyone with 100% certainty say that this will never be the case?

Edited by Husbjörn

Share this post


Link to post
Share on other sites
Advertisement

Hi.

If your creating the meshes and the animations and anyone else creating know that meshes with the same name need to have the same animation then there

is no problem. you just need to know the rule.

But is its for anybody to create meshes or animation then maybe not so safe.

 

So if you control the content then its safe.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!