cracklestudios

Hi,

I'm working with XNA gamestudio for a while now, it's really great but there's no support for model animations I already searched the entire internet for some good tutorial or example but there isn't any. I just can't believe model animation isn't supported by standard Because...what is a game without animated models

Also if anyone has some information about loading bones it would be welcome.

I really hope that there's someone out here who can help me with this. I really enjoy using XNA gamestudio and I wan't to start writing games!

Thanks for any help,

jeroen




Re: XNA Game Studio Express Model animation

dczraptor

there's a codeplex project here: http://www.codeplex.com/animationcomponents




Re: XNA Game Studio Express Model animation

cracklestudios

I have seen that one already. It does work but I got a problem with it; all the animation code has been put in some Dll and to view an animated model you have to type 1 line of code. With these animationcomponents, how can I s et my model's position and rotation How to stop the animation or play a part of the animation (for example 1 animation contains walk/run/jump)

I didn't really know what to do with the animationcomponents and since XNA is pretty new you can't find that much information on the internet.

jeroen






Re: XNA Game Studio Express Model animation

Grotius

I'm also interested in this question, as I'm completely new to 3D programming. Can one create animations in a program like 3ds Max in such a way that XNA will understand them



Re: XNA Game Studio Express Model animation

cracklestudios

The problem is that XNA offers a lot of easy tools for programming in c# to write games, but model animation seems to be barely supported, and that weird since animation is a very important thing for 3d games.

I used to write my games/applications in vb .Net but when I discovered XNA i switched to c# finally. The languages are quite similar so I'm getting used to c# now quite fast. I am familiar with 3dstudio max and paintshop pro to te create my models including animation and texturing. It's just that information about loading and playing animation in C# that can get me started.

jeroen






Re: XNA Game Studio Express Model animation

Grotius

I'm in a similar position. I can make and animate models in Max and Photoshop; I can display textured models via XNA (and move them around, and move the camera around); now I'd like to learn how to animate them. A pre-made animation suite would be nice, but I'm actually more interested in a nitty-gritty introduction to the topic. Maybe a general book on 3D programming is all we can hope for, until the first XNA books appear



Re: XNA Game Studio Express Model animation

Pasha NaN

You can try to use Reflector for .NET
http://www.aisto.com/roeder/dotnet




Re: XNA Game Studio Express Model animation

Pasha NaN

use following link for sources http://www.codeplex.com/animationcomponents/SourceControl/ListDownloadableCommits.aspx




Re: XNA Game Studio Express Model animation

daimaku

i'm in the same point, how to animate a mesh, somebody here in the forums have told me a few days a go that the xna framework can animate the mesh but we need to make our own custom processor, i don't know how to write a custom processor to read the animation for the .x or .fbx mesh format, i'm waiting for a solution from microsoft or from a third party.



Re: XNA Game Studio Express Model animation

Calvin Bell

I think this is where a lot of people are stuck... making a model, importing it, viewing it, and moving it really isnt a big deal. However, when it comes down to animating it and making all the custom code, it looks very daunting. I have been researching this and I have seen a few videos pop up where people got their models to animate. As time goes on, I believe people will start to release tutorials, and even sample code. Until then, we just need to wait or try to figure it out ourselves :-/





Re: XNA Game Studio Express Model animation

Hlubocky

Animation can be daunting, though it isn't as terrible as some make it out to be. The real question is, do the data structures that are loaded from the content pipeline contain the animation data (keyframes, bone locations and weights, etc) from the .X files




Re: XNA Game Studio Express Model animation

Shawn Hargreaves - MSFT

The content pipeline imports animation data from .X into the design time NodeContent object tree, from where you can extract it using a custom processor.

This data is not available in the default runtime Model class, though, so you do have to write a custom processor to get at it.





Re: XNA Game Studio Express Model animation

rusty_bone

Shawn Hargreaves - MSFT wrote:
The content pipeline imports animation data from .X into the design time NodeContent object tree, from where you can extract it using a custom processor.

This data is not available in the default runtime Model class, though, so you do have to write a custom processor to get at it.

Wouldn't it be cool if that code magically appeared here:

http://blogs.msdn.com/shawnhar/





Re: XNA Game Studio Express Model animation

Shawn Hargreaves - MSFT

That would be cool indeed :-)

And actually I did write a sample showing exactly how to do this. I can't just go and post that on my blog, though, because it is a big enough piece of code that it needs to be properly reviewed, signed off by various people, run past Legal, etc etc.

It will be appearing "sometime soon" on a website near you, though, I promise!