x


Animation from 3dsMax to Unity

This should be an easy one right?

Anyone know of a simple step by step example of how to animate something in 3d Studio Max (2010) and get it into Unity? I have tried messing with FBX all day and no luck. I thought this would be a bit easier than it is. I must be missing something simple. Thanks in advance.

Troy

more ▼

asked Apr 05 '10 at 10:51 PM

Troy Halsey gravatar image

Troy Halsey
65 3 3 12

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

5 answers: sort voted first

You cannot use modifiers because unity (together with all the other game engines) doesn't have all these space warps and parametric animation tools in order to understand ...what bend and twist and ripple 90 degrees in x axis means.

If you want to do vertex animation you should do it through bones, even if it is a flag. Three flat bones controlling your flag, skin modifier, collapse the trajectories of the bones from the motion panel in max before saving. By using bones unity will understand that you are doing vertex animation.

Direct vertex animation will be a very welcomed new feature but as far as I am aware it is not announced yet. forum

If you have a problem with exporting a simple motion like moving, rotating or scaling an object then could you please explain a bit more what is happening ?

If you are using paths to animate, collapse the trajectories to keyframes from the motion panel.

check this script for morphing targets http://forum.unity3d.com/viewtopic.php?t=16425

more ▼

answered Apr 06 '10 at 08:59 AM

alexnode gravatar image

alexnode
984 27 32 49

Alright, I got the bone animation to work. I created a simple box column, added bones and skin. Animated it, collapsed it, and baked the animation out as an FBX. It imported and played correctly. I guess I just need to master that style of animation now :)

Thank you so much guys, I greatly appreciate all the quick responses.

Troy

Apr 06 '10 at 03:00 PM Troy Halsey

it's a bit of a pain, but it works. Hope there will be an option soon to do it without bones.

Apr 06 '10 at 03:10 PM alexnode
(comments are locked)
10|3000 characters needed characters left

This is not an isolated incident Troy, I am having the exact same problem, and to verify that it is NOT me I made an EXTREMELY simple flag waving animation and have been trying to get that working for about a week now. I have attempted exports from max with every possible FBX exporter, I tried saving the .max file directly, I even went and stole Lerpz from the platform demo and attempted to get HIM to animate with the demo animations set up exactly like they are in the demo! NO LUCK. Yes, the documentation is horrible. But it seems to be a general trend with every single game engine that I have evaluated in the last few months. I find that I get more usable information from youtube videos than the actual creators of the software. I guess it is possible that this issue is a version problem and that there is just something really different about MAX 2010 that makes it not work right.

I am on my last straw, and if I can't solve this issue soon it's probably gonna be off to NeoAxis land for me.

more ▼

answered Apr 06 '10 at 03:55 AM

user-1972 (google) gravatar image

user-1972 (google)
37 1

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

Unity only supports skeletal animation, that is, animation using bones. If you are talking about other types of animation (animating vertices or similar) that won't work.

more ▼

answered Apr 06 '10 at 08:59 AM

runevision gravatar image

runevision ♦♦
8.1k 29 46 112

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

Well that certainly clears things up a bit guys thanks. So here's what I suggest, in the documentation that everyone likes to reference and send people to, ie: as above - http://unity3d.com/support/documentation/Manual/HOWTO-ImportObjectMax.html, please change the line number 4 under the first heading topic, or alternatively, simply REMOVE it. As it reads now it appears that UNITY DOES import basic animations, AND bone based animations.

This helps a lot, thanks.

Don

more ▼

answered Apr 06 '10 at 05:47 PM

user-1972 (google) gravatar image

user-1972 (google)
37 1

Well Unity does support keyframe animations, which I would call "basic", AND bone animations. I haven't tried importing modifiers myself, but I got the impression early on that they didn't work. You're right though, it should be clearer in the Docs.

Apr 06 '10 at 06:01 PM straydogstrut

Maybe keyframes for basic movements, but not subelement keyframed animations like vertices. The bones work pretty well though...my project is rocking and rolling now!

Apr 06 '10 at 06:14 PM Troy Halsey

Same here troy, I placed a bone on either side of the flags and they work perfectly now.

Apr 06 '10 at 10:52 PM user-1972 (google)

I agree it will have been better if these things were somewhere in the manual.

Apr 07 '10 at 08:32 AM alexnode

You can always add it in the wish list.

Apr 07 '10 at 08:34 AM alexnode
(comments are locked)
10|3000 characters needed characters left
more ▼

answered Apr 05 '10 at 11:29 PM

Peter G gravatar image

Peter G
15k 16 44 136

Yeah, it doesn't really get me there. I see the animation file, but can't get it to work. Need something a bit more clear or exact.

Thanks!

Apr 06 '10 at 12:05 AM Troy Halsey

Ok, so what specific part does not work? It sounds like you have the model and the animation. If so just drag it into the animation component, set it to the default and hit PlayAutomatically.

Apr 06 '10 at 01:18 AM Peter G

Yes, I know how it should work, but no luck. Both fbx and max files do not play. Do I need to prep the animation in some way? Why don't they document this stuff better!?

Thanks George, I appreciate your patience.

Apr 06 '10 at 01:22 AM Troy Halsey

I mean Peter, very sorry for that oversight.

Apr 06 '10 at 01:23 AM Troy Halsey

No problem, did you use bone based animation, and someone else had a similar problem and did not have the latest FBX exporter? Do either ideas help.

Apr 06 '10 at 01:27 AM Peter G
(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:

x3782
x972
x560
x335

asked: Apr 05 '10 at 10:51 PM

Seen: 18431 times

Last Updated: Apr 05 '10 at 10:51 PM