I updated the source code to work for XNA 4.0, but due to the uncertain future of XNA, I am going to hold off on updating the rest of this site.
The source code has been updated to support XNA 4.0, but the binaries have not. Also, you will need to use your own effect instead of the BasicPalleteEffect due to changes in the XNA framework. I will be making a new release soon and updating the tutorial.
For a quick and easy test of the new code, download the following and compile it after updating to the latest version of XNA. It will demonstrate the completed tutorial:
The wonderful model used in the tutorials was made by Psionic (http://www.psionic3d.co.uk
) and he was kind enough to let me use it.
- Beta release 184.108.40.206 is out.
- See changelog in release section for changes.
- Tutorials are not updated yet for the new release, so not all sections are guaranteed to work.
- Click here:
Tutorial Home to visit the tutorial section.
- How do I use this library?
- A: You can learn how to use the library by taking the tutorial at
- What types of animations does the library support?
- A: The library supports skinned and unskinned bone animations, and mesh hierarchy animations.
- What are the features of the library?
- Skinned and unskinned animation
- Models with multiple meshes
- Ability to split up single animations into multiple animations based on xml file configuration
- Animations pre-interpolated to 60 frames per second in pipeline
- Works on fbx, x, asf/amc, and bvh formats
- Custom ASCII .X importer works on some models that XNA .X importer rejects
- Works on models with any number of bones (if a mesh has too many bones for the shader, splits the mesh up into multiple meshes)
- Animation blending
- Allows each bone to be attached to a different animation controller
- Allows manual setting of bone transforms
- Framework for custom content pipleine animation and model processing
- Allows use of custom .fx effects
- Has a model viewer that works like directx mesh viewer
- Allows objects to be attached to bones
- What file formats and importers does the library support?
- How do I compile the source for Windows or XBox 360?
- In the ModelAnimator, why do I need to set the World Matrix but not the View and Projection matrices?
- In the ModelAnimator, where is the code that draws the model?
The goal of this project is to make a library of animation components that allows programmers to easily animate their models. The XNA framework makes many parts of game development very comfortable, but due to time limitations and inconclusive feedback from
the DirectX solution to animation, they have decided to exclude an animation framework in their API.