Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: ARSoftware on October 08, 2007, 11:06:44 AM

Title: Direct X model facing wrong way
Post by: ARSoftware on October 08, 2007, 11:06:44 AM
I have a model set up in Fragmotion that faces the right way (according to the top, front, back, etc, buttons), but after exporting it for use in WME the model stands backwards.

According to the Fragmotion forums the problem is due to a left-hand, right-hand coordinate system. I'm assuming then that WME and Fragmotion use different coordinate systems (also true of Milkshape, apparently).

Has anyone else noticed this and is there anything that can be done short of rotating the entire model and animation sequences in Fragmotion?

Or, is there a more compatible bones animation/modeller that I can use (as easy as Fragmotion). Oh, and I've tried Blender and I don't get on well with the UI.

Thanks in advance.
Title: Re: Direct X model facing wrong way
Post by: Jyujinkai on October 08, 2007, 12:21:37 PM
I had a similar problems with model alignment... I am unfamiliar with that app you are using but i fixed by snapshotting the mesh (making a copy of it with all transforms deleted.. so everything is at 0,0.0) and then reapplying the skin.

every time i tried to rotate the model and export i would get wierd things happening in WME, until i did this and it was fixed.
Title: Re: Direct X model facing wrong way
Post by: ARSoftware on October 08, 2007, 12:24:13 PM
Yeah, I tried apply a Mirror All in Fragmotion and when the model was imported into WME the character had been squished and was badly distorted.
Title: Re: Direct X model facing wrong way
Post by: Mnemonic on October 08, 2007, 12:48:53 PM
Are you using the latest version of fragmotion? I remember some older versions of the X exporter contained a bug and were exporting the models mirrored.
Title: Re: Direct X model facing wrong way
Post by: ARSoftware on October 08, 2007, 12:50:01 PM
Yes, I'm using the newest 0.91 version. Downloaded a few weeks ago.
Title: Re: Direct X model facing wrong way
Post by: raychaser on October 11, 2007, 07:16:01 PM
Sorry if this sounds obvious but I solved this problem by just modeling and animating things backwards. The first thing I do when importing into fragmotion is to rotate the mesh 180 degrees on the vertical axis. Then I animate it as I normally would. This seems to solve the problem and all I need to remember is that back=front when I'm switching views in Fragmotion.

If only exporting from blender was as easy.... I spent a good 10 hours trying to get bones and animations out of it with 4 different .x exporters. No love. Fragmotion seems to be the next best thing though  :-\
Title: Re: Direct X model facing wrong way
Post by: ARSoftware on October 12, 2007, 08:04:11 AM
Hmm, thats what I thought. I hoped there was a better way, the problem is the bvh files I have are obviously forward facing and so would be backwards to the model.

I'll have to have a play and see if I can rotate the bones animations as well. Or, I guess complete the model the correct way round (animations included), and then rotate everything.

Thanks for the help.
Title: Re: Direct X model facing wrong way
Post by: Jyujinkai on October 12, 2007, 11:08:10 AM
it is totaly the xyz world units of the base mesh.... snapshot it or reset thetransforms before you add the skin and you are done.
Title: Re: Direct X model facing wrong way
Post by: raychaser on October 13, 2007, 04:46:53 AM
Looks like I answered too quickly. Seems like I am getting some distortion in WME import that I am not getting in the directx viewers I have. I will file a bug report on this one shortly.