daimaku

hello, i'm making a 3d game, i have made a mesh with 3d studio max 9 and i have used the biped tool for the mesh animation, now i need to put the mesh in my game, i'm using de xna framework, i have tried to export the .3ds file to .x file format, but the .x file format result in a big square and nothing else this only happend with the animated mesh because i have exported to .x file format the static meshes and these are perfect, somebody can tell me what kind of format's models are supported in the xna framework or how to export the animation of .3ds to .x file thank you in advance.

p.s: i have exported the .3ds file using calgari gamespace 1.5 and 3d object converter, the two of those show the same thing.



Re: XNA Game Studio Express mesh in xna

Bill Reiss

daimaku wrote:

hello, i'm making a 3d game, i have made a mesh with 3d studio max 9 and i have used the biped tool for the mesh animation, now i need to put the mesh in my game, i'm using de xna framework, i have tried to export the .3ds file to .x file format, but the .x file format result in a big square and nothing else this only happend with the animated mesh because i have exported to .x file format the static meshes and these are perfect, somebody can tell me what kind of format's models are supported in the xna framework or how to export the animation of .3ds to .x file thank you in advance.

p.s: i have exported the .3ds file using calgari gamespace 1.5 and 3d object converter, the two of those show the same thing.

Have you looked at the model in the DirectX Viewer that comes with the DirectX SDK I'm, curious whether it has problems in there as well. If it renders in there fine, I think you may be having some touble with your bone transforms. I can give some additional information if this is the case.

Bill






Re: XNA Game Studio Express mesh in xna

daimaku

the directx viewer show the same thing, a big square, but in 3dmax show fine, i have rendered a 1 minute walk and there is no problem, the issue is when i export the mesh.



Re: XNA Game Studio Express mesh in xna

Mark Alsip

I'm having similar problems with Caligari GameSpace, and would like to hear from any GameSpace or TrueSpace owners who are having success saving in the .X format.

My symptoms are a bit more severe than the empty box though. My program crashes with a terse error message saying the file format is invalid. I'm using GameSpace with the latest upgrade installed. My models load up just fine in DirectX viewer, DarkBasic Pro applications I've written, and Dark C++ SDK based programs. But Autodesk's FBX conversion utility crashes when I try to load the .X file there.

I've been able to load a few .X files without the crash, but can't pinpoint any big differences when I bring up the model in Notepad and browse the sourde. GameSpace has several options on what kind of .X file is written and I have the feeling there's just some setting I'm missing.





Re: XNA Game Studio Express mesh in xna

daimaku

nobody can help us



Re: XNA Game Studio Express mesh in xna

Leaf.

If it looks bad in the DirectX viewer then its likely that you have a problem either with your exporter or your scene is using some feature that your exporter doesn't support.

Cheers,
Leaf.





Re: XNA Game Studio Express mesh in xna

daimaku

there is another file format instead of .x that can i use from xna framework



Re: XNA Game Studio Express mesh in xna

Grotius

I'm curious about this too, as I've also had trouble making useable .x files for GSE XNA.



Re: XNA Game Studio Express mesh in xna

AOEA

XNA also has tools included for fbx files if you'd like to try that format, otherwise you'll have to write your own importers.


If you guys want you could post your x files and I'll take a look at them. I've written a couple of different X exporters now, I might be able to spot a problem in the file by looking at it.




Re: XNA Game Studio Express mesh in xna

daimaku

i can post my .x file but i don't know how to attach a file here in the forum.



Re: XNA Game Studio Express mesh in xna

Jon Watte

You can use the FBX format in addition to the X format for XNA game studio express.

I have just updated my "kw X-porter" for 3dsmax 9, and actually tested it (as I've upgraded to max 9), so you can give exporting with that a shot, too:

http://www.mindcontrol.org/~hplus/graphics/kwxport.html

Note: it will export animations, but the XNA content pipeline by default does not produce animations for the mesh it imports. You will have to solve that yourself, in code, somehow. It's been said that there will be code samples released on how to do this sometime in the future.





Re: XNA Game Studio Express mesh in xna

daimaku

i have downloaded the plugin for exported from 3dmax, but there is no sample or tutorial code for animate the mesh using the xna framework code right now



Re: XNA Game Studio Express mesh in xna

daimaku

i have tried your exported but it don't work for me, the panda 3d exported for 3d max have did the job, but now i'm thinking in .x or .fbx file format anyone here can tell me how a draw a .fbx model is the sae procedure that .x file



Re: XNA Game Studio Express mesh in xna

Michael Nikonov

Try http://www.codeplex.com/animationcomponents





Re: XNA Game Studio Express mesh in xna

MACSkeptic

I'm having almost the same problem as you guys reported...

I'm using Cinema 4D (9.x) instead of 3dstudio to model and export to .x, but either in the viewer or in the code, everything turns to plain white... there is no material or color (textures are ok).

Tried either with the Cinema 4D export and with an X-Porter plugin... got the same results