x


Export character animation from maya to unity

I have a character animation in maya

alt text

How can i export it to unity. the FBX export dosn't work and give me errors like this

alt text

more ▼

asked Jul 06 '10 at 03:01 PM

incitement gravatar image

incitement
30 17 17 22

That's a problem with Maya, not Unity. Maybe this isn't the right place for your question.

Jul 06 '10 at 05:15 PM e.bonneville

I think they're alright where they are, it's dealing with pipeline practices so it is totally relevant.

Jul 13 '10 at 06:36 PM equalsequals
(comments are locked)
10|3000 characters needed characters left

7 answers: sort voted first

I haven't tried exporting a character with it's control rig because I didn't want to throw all kinds of node garbage to Unity, so instead I used a salve rig that only has the deformable joints.

In my scene with the rig, the actual geometry being shown and deformed is binded to the slave rig to ensure I'm not using a control that doesn't do anything to my character. I then bake the animation to the slave rig, create a character node and export the animation clip.

Then in a GameSkeleton scene which only has the geometry and deformation joints (slave rig), you can import all your animations. You can either put them all in one timeline or as I now prefer, as separate files with the @ naming convention, which Unity reads and splits automatically.

Unity seems to have trouble reading maya versions above 2009, specially with the fbx, you'll want to stick to the 2009 version, which you can choose in the export dialog.

EXTRA TIP: Try using as few joints as you can on your slave rig, though your animation rig can have and probably should have more joints. (for example. you can eliminate the tip joints unless you'll be using locomotion). I also tend to get rid of other root joints like clavicles and sometimes hips on multilegged characters. You can still use them as controls, affecting your slave joints, but without the extra cost.

Hope that helps!

more ▼

answered Jul 13 '10 at 06:26 PM

Eddy Mendoza gravatar image

Eddy Mendoza
17 2

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

you need to do a bake in the animation... Select all joints/ select all controllers / menu - EDIt - Keys - bake simulation and export with fbx.

i hope to help you.

more ▼

answered Oct 28 '11 at 06:01 PM

robersonbruno gravatar image

robersonbruno
1 1 1 1

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

I am not familiar with exporting on Maya side, but you could try directly importing the maya(.mb/.ma( file into unity. If you haven't seen this already http://unity3d.com/support/documentation/Manual/HOWTO-ImportObjectMaya.html

more ▼

answered Jul 06 '10 at 06:01 PM

knowtheneo gravatar image

knowtheneo
47 3 4 10

That won't work if exporter fails when exporting manually.

Jul 09 '10 at 08:54 AM Paulius Liekis

@Paulius on the contrary I have had errors during manual export that were bi-passed during automatic import.

Jul 13 '10 at 06:31 PM equalsequals

--This is not to say however that the errors should not be debugged.

Jul 13 '10 at 06:35 PM equalsequals
(comments are locked)
10|3000 characters needed characters left

to get rid to the errors try, edit - delete all by type - non reformer history

That should do the trick. Also on import in unity make sure you have the ik option checked

more ▼

answered Jul 27 '10 at 11:40 AM

patricklorio 1 gravatar image

patricklorio 1
1

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

Oh and also, Maya's fbx is faulty in that if you want to correctly transfer a character, even to motion builder, you need to have your character bound to two root joints, even if the second one isn't weighted.

You can tell in Unity if you select your mesh and if it shows the preview or not. When using two roots, the preview should be there and everything should behave as expected. If not you'll end up having to assign shaders and such to your root joint in the hierarchy which is kind of awkward.

more ▼

answered Jul 13 '10 at 06:32 PM

Eddy Mendoza gravatar image

Eddy Mendoza
17 2

(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:

x3776
x558
x400
x349

asked: Jul 06 '10 at 03:01 PM

Seen: 13091 times

Last Updated: Oct 28 '11 at 06:01 PM