Jump to content

Generated .anim files for imported FBX


photo

Recommended Posts

Hi,

I observed that .anim files are generated in .runtime directory. So how can I use it at the moment e.g. by addAnimation function of ObjectMeshSkinned ?

Cheers

Link to comment

Hi Jan,

1) Double click to your FBX file inside the Editor to undestand the name of your .anim file.
2) Use addAnimation like this: obj->addAnimation("<path_to_your_fbx_file>/<file.fbx>/<your_anim_file.anim>");
For example: "models/soldier/soldierA.fbx/run.anim"

Best regards,
Alexander

  • Like 1
Link to comment

Thank you Alexander :) That's works.

Btw please update doc at https://developer.unigine.com/en/docs/2.7.1/api/library/objects/class.objectmeshskinned?rlang=cpp&words=animation%2Canim#highlight :)

Link to comment
  • 3 weeks later...

I have not tried this yet, but will imported CAMERAS from an FBX have the same .anim file that could be applied to a camera?  Syncing one camera system with Unigine's Camera of sorts?

Link to comment

Trey,

As far as I know FBX doesn't store any camera animations (but I would love to be wrong here). If you can provide an example of FBX file with animated camera path example that can be viewed in some kind of 3rd party software like FBX Reivew? Probably we can do something with it in the future updates.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...