locked
Tutorials and resources for FBX files

    Question

  • I've search far and wide for anything pertaining to loading and animating an FBX model within a C++ project, but to no avail. Is there any solution out there pertaining to FBX on how to integrate this file type into a program?
    Friday, April 05, 2013 3:06 PM

Answers

  • VS2012 comes with built in functionality that will take an fbx file and convert it to a cmo file for you during build time.

    One convenient way of loading the cmo file into your game is to use the DirectXTK.

    There is a sample with the DirectXTK that shows how it is all done.

    As far as animating it, you will need to know submesh offsets and hard code them in to your rotation/translations for now as all submesh transforms are baked into vertex positions. I think (assume) they are working on creating the functionality to work with transform hierarchies but it's not there yet.

    -

    If your not using VS2012, consider something like ASSIMP, or got to Autodesk.com and download the fbxsdk for free. It is pretty well documented.


    Unlock The *I don't use 3 angles in a Vector3 for rotations anymore* Achievement Here




    Friday, April 05, 2013 3:49 PM