XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Exporting a 3D Model with animations from 3DS Max to be used in an XNA 3.1 game

Last post 11/19/2009 3:28 AM by MasterGunz67. 2 replies.
  • 11/18/2009 12:23 AM

    Exporting a 3D Model with animations from 3DS Max to be used in an XNA 3.1 game

    Hello, I am having trouble exporting a 3D model with a bone rig and animation to be used in an XNA 3.1 game.

    Some of my questions include:
            - Should my model be a single mesh with just a skin modifyer with the bones or separate parts that can move?
            - Are there any special settings to use in the exporter that would have any effect on the models animation?
            - Is each animation exported as a separate file with its own name?
            - How are these animations then called in the game?
                    - Do I have to manually manage the keyframes?

    I am using 3DS Max 2009 and Visual Studio 2008 with XNA 3.1 installed, exporting using the .fbx format.  Any help that you can provide would be greatly appreciated.  Thank you.
  • 11/18/2009 11:04 PM In reply to

    Re: Exporting a 3D Model with animations from 3DS Max to be used in an XNA 3.1 game

    I am not quite sure, Currently I tried only exported one mesh and it didn't quite work because I tried exporting a cloth modified mesh.
    Basically you need to have meshes with only the skin modifier (I think as many as you want) and the bones that move everything.
    All animations are in the one file (but only one track is exported at a time). (Although if you want multiple animations in the same file you can export them as seperate files and copy/paste the animations into one of the files. (They have a 'Take' header)).
    Assuming you use the SkinnedModel pipeline sample from the site (probably the easiest and simplest animation pipeline to use) then you just load in the model, get the animation data from the Tag, StartClip("clip name"), and update the animation player, and then draw.
  • 11/19/2009 3:28 AM In reply to

    Re: Exporting a 3D Model with animations from 3DS Max to be used in an XNA 3.1 game

    Thanks for the help, I will try this out tomorrow!
Page 1 of 1 (3 items) Previous Next