Managed and unmanaged DirectX development.
The evolution of the Randomchaos 3D Engine and Generic XNA samples.

Enter your search termsSubmit search form

Web

www.riemers.net

www.ziggyware.com

www.xna-uk.net

Monday, July 23, 2007

Source Example 3 - Mesh Animation

Still showing the use of the model class, in this example we have an animated mesh (X format). Again this is another simple example using the RandomchaosContentPipelineManager to load the mesh's animation data and using the shader to animate the mesh. Both the context methods and the shader I found before MS released their mesh animation sample.

I have had to put a sleep in there as the animation plays a little fast without anything else going through the processors to slow it down, it look a little odd as the mesh only has the skybox as background and so no point of reference but it is animation and you have the source now so you can do what you like with it :)

Well, once you get the terrain and ocean objects in there to it will slow down and play at a better rate. A better solution to this would be to alter the animation code in UpdateAnimation so that you alter the speed of the animation.

Hi, you seam to be better then me to figure out ways to get what you looking for, so I was wondering if you have a solution to my animation problem.I'm using .X meshes atm and I have built a hierarchy so one of the meshes becomes parent and the rest of them childes but I want to be able to change part of the character and still keep the characters animations do you have a solution to this?