Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Assimp meshes & animation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 uglybdavis   Members   -  Reputation: 939

Like
0Likes
Like

Posted 15 February 2014 - 11:19 PM

Hi guys,

 

I'm working on an assimp model loader. I ran into a pretty big problem, i have no idea how to associate a mesh with an animation. Right now i always assume mesh 1 belongs to animation 1, etc...

 

Is there any way to tell what animation belongs to what mesh?



Sponsor:

#2 DTR666   Members   -  Reputation: 183

Like
1Likes
Like

Posted 16 February 2014 - 09:25 AM

Hi,

 

With Assimp you load an aiScene which contains the list of meshes contained in the the model (I guess you already use that).

 

In addition you have a pointer to the rootNode (aiScene->mRootNode). Nodes (aiNode) give you the tree hierarchy of the differents elements of the scene, contains transforms, can be bones or contain meshes. Animation data points to nodes (in aiNodeAnim, you have the node name), changing the transform of a node over time.

 

So to handle animation properly, you have to handle the node structure, particulary if you plan to use skinning.

 

I hope this helps.


Edited by DTR666, 18 February 2014 - 02:25 AM.

----

 

www.winthatwar.com

 

Download our latest demo here.

 

www.insaneunity.com

@InsaneUnity

@DTR666

 





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS