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

"Character Animation for XNA GSE" tutorial.

Last post 08-18-2008 12:59 AM by pnsm. 2 replies.
  • 08-09-2008 12:28 AM

    "Character Animation for XNA GSE" tutorial.

     I was just wondering if anybody has successfully completed this tutorial because I've ran it three times already and I have not been able to get the animation to work.

    The code is working for the captain_modtool sample, but when I follow the tutorial using a model I've made the animation simple does not play.

    If any one has any idea to share, it would be greatly appreciated.

    To clarify I'm referring to the tutorial that comes in the documentation of the XSI mod tool.

  • 08-16-2008 2:36 AM In reply to

    Re: "Character Animation for XNA GSE" tutorial.

    Oh sure I was able to animate from the XNA GSE Integration for XSI tutorial. I got a lot of useful ideas from it as well. I have also used Dan Water's guitar matey tutorial which was helpful.

    If you are able to see animation in XSI but not in your XNA project, the most likely culprit is the shader. If you do not use the XSI default vertex shader your model will not use the bone weights to animate the mesh from your key-frames. The default vertex shader can be found in Softimage\XSI_6_Mod_Tool\Addons\XNAGSE\Data\XNA_SAMPLES\FX\xsi_defaultvs.hlsl. Most of the other shaders used in that folder include it in their source. For instance if you use the fx phong shader there it should animate fine.

    Another thing you should consider is setting neutral pose and/or freezing all transforms on your skeleton in its default pose and your mesh in its default position. Otherwise if you move things around, they look fine in XSI but they will be messed up in XNA because XNA doesn't uses the command stack(used for undo) that XSI uses when it animates with things that have been modified. You can do this by having your skeleton/mesh selected and clicking on the transforms tab on the right and it will bring up the menu for reseting transforms, setting neutral poses and freezing transforms.

  • 08-18-2008 12:59 AM In reply to

    Re: "Character Animation for XNA GSE" tutorial.

     Thanks for the advice, but the code setup is working correctly with the captain_modtool sample and I'm using the XSI shaders with the correct technique. I'm also freezing all transformations before publishing (something I got from another thread here).

     Anyway thanks again for the advice but I've since moved on to Blender and have successfully created and exported/imported animations into XNA.  I know it's a bit tactless to say it here but the process in Blender is considerably easier and smoother than in XSI (also no licensing issues).

Page 1 of 1 (3 items) Previous Next