x


Rotating FBX file?

Hello,

I have a FBX model with many animations.

The problem is that unity is changing X/Z axis.. thats why my character is not moving forward.

First I wanted to rotate it with 3D Studio Max, but it doesnt allow me to open more then 1 animation layer.

So I was trying with MotionBuilder.. It detects every animation.

But I need to rotate the model in every single animation frame (12 animation x 50 keys). And thats impossible to do manually.

Is there any function in unity to rotate the fbx model? Or any function to automaticle rotate the model in MotionBuilder? (Without doing frame by frame)?

Thanks

more ▼

asked Jul 31 '10 at 01:30 AM

Tobias gravatar image

Tobias
393 50 54 66

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I you import with animations into Max it will bring all anims in as take 001. Then select the skinned mesh and go to Hierarchy tab. Choose effect pivot only and rotate the pivot +90 in the X (90,0,0) Then export as Y up and you should be fine.

Or you could remove all the animation keys but keep the mesh skinned. Follow the same rotate pivot procedure and then export the skinned mesh as a new FBX and use the anims from the other FBX.

In motionbuilder about all you could do is re-target the anims on to a new rig (major pain)

in Unity you could parent the skinned mesh to an empty game object and then rotate that to correct the mesh orientation

more ▼

answered Jul 31 '10 at 01:41 AM

Julian Glenn gravatar image

Julian Glenn
2.6k 5 12 47

Hmm thanks..

But I need to select an animation tape while importing.

And another problem is, that when I export it, all animations are lost. :(

Jul 31 '10 at 01:52 AM Tobias

Not sure what you mean by "tape" but if you select the correct export options in Max all the anims will be there, unless they are not bone animations i.e vertex or morphs

Jul 31 '10 at 02:19 AM Julian Glenn

Here is a link:

http://img812.imageshack.us/img812/7082/unbenanntpy.png

It only loads the animation tape I select.. All other tapes are getting removed.

Jul 31 '10 at 02:24 AM Tobias

Ahh I see now what you mean.Only way then is to either try exporting as Z up rather than Y up. Or try the parenting to an empty gameObject in Unity idea, or you are going to have to re-target the animations or re-orient the axis for each animation one at a time.

Jul 31 '10 at 02:37 AM Julian Glenn

I already tried with Z-Y.. But I need to change X and Z.. but its not possible.

Parenting is also a good idea. but then I need to redefine my playerscript.

Well.. Thank you very much for your help.. Seems to be a bigger problem. I hope unity 3.0 supports to rotate FBX Imports.

Jul 31 '10 at 02:47 AM Tobias
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1730
x997
x575
x91

asked: Jul 31 '10 at 01:30 AM

Seen: 1978 times

Last Updated: Jul 31 '10 at 01:30 AM