x


How to get vertex animation into Unity?

I'm trying to get an animated surface (like a constantly changing floor or a vortex surface) that is animated with its vertices into Unity (windows version) from Max 9.0 with the FBX exporter and .Max file. I;'ve tried both of them but the animation doesn't seem to be saved or it can't be read in Unity.

Moving the plane (a 6x6 plane with 64 vertices that move up and down) as a whole up and down is visible in Unity, but the 'sub-animation' is not... Any ideas on how to solve this?

The reason I want to do this is because I want to have a flat surface that transforms into an organic door, opening up for the hero.

more ▼

asked Jan 05 '10 at 02:07 PM

xaddict gravatar image

xaddict
142 7 8 19

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

3 answers: sort oldest

Vertex animation isn't official supported by Unity yet, so you can't import vertex animations or morph targets directly.

However, unofficial support has been put together by certain memebers of the community using scripting, which basically takes the vertex positions from a number of different meshes as the positional data for the morph targets, and so the target mesh must have the same number of vertices laid out in the same order as the source mesh.

For more information and for the scripts, see this wiki page:

http://www.unifycommunity.com/wiki/index.php?title=MeshMorpher

and this forum post:

http://forum.unity3d.com/viewtopic.php?t=16425

more ▼

answered Jan 05 '10 at 02:17 PM

duck gravatar image

duck ♦♦
41k 92 148 415

if vertex animation is not supported then why does stretching of vertices by using bones or rigs work? or is this a completely different way of animation?

Jan 05 '10 at 02:27 PM xaddict

what way could I get vertex-like animation without scripting? or: what other kinds of animation are there outside of moving vertices to change the surface?

Jan 05 '10 at 02:38 PM xaddict

Yes - Bones-based animation (which of course animates the vertices in the end) is supported, but other methods of vertex animation aren't supported. You could either use bones to achieve the animation you require, or use the vertex animation scripts linked to in my answer. Or you could just make some nice simple sliding doors :)

Jan 05 '10 at 04:35 PM duck ♦♦
(comments are locked)
10|3000 characters needed characters left

MegaFiers will deal with the Vertex animation as well as morphing and all sorts of deformations. It has an exporter for Max and blender, you can find more info on the forums http://forum.unity3d.com/threads/89750-Mega-Fiers.-A-mesh-deformation-system-RELEASE

more ▼

answered Sep 14 '11 at 09:05 PM

SpookyCat gravatar image

SpookyCat
436 5 5 12

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

You can try to export any animation from 3dsmax with this script ! http://forum.unity3d.com/threads/99340-in2Unity-Geomtry-(vertex)-animation-export-from-3dsmax

more ▼

answered Oct 04 '11 at 01:53 PM

TexeL gravatar image

TexeL
127 2 7

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

x3791
x350

asked: Jan 05 '10 at 02:07 PM

Seen: 10222 times

Last Updated: Oct 04 '11 at 01:53 PM