Keyframed blend shapes from Maya importing into Unity as separate objects
Asked Answered
H

2

0

Help!

I’ve created a plastic bag in Maya which I deformed using nCloth. I duplicated this nCloth bag multiple times and created blend shapes from these models.
I then keyframed the blendshapes to create a simple animation. This looks fine in Maya - but when I import it into Unity (with the animation and blend shapes attached) all the different bags are imported as
non-deformed separate objects.

See the two images of how the bag looks in Maya and Unity below.

Does anyone know what I’ve done wrong? I was under the impression I could duplicate meshes to create a blend shapes which could be imported into Unity - but maybe I’ve missed something?
Could it be the way I’ve frozen the mesh when deformed using nCloth. As you can see I still have the outputCloth1 node in Maya, as I just pressed ctrl duplicate to get my mesh shape: does anyone know if this could cause problems?

If anyone has any ideas on what I’ve done wrong that would be so helpful!!

Best,
Laurien

Harwill answered 6/6, 2023 at 3:35 Comment(0)
B
0

Im not a maya user - but as far as I know you need to import the base mesh with morph/blend shape channels into Unity and animate them in Unity.

Should be pretty easy since youve already created the animation in maya. You can use it for reference to duplicate the animation in Unity.

Bavardage answered 11/6, 2016 at 21:24 Comment(1)

Yes - I've imported the base mesh: the problem is that the base mesh has been modified using nCloth. If I import the base mesh without animation the nCloth modified mesh is imported into unity fine. But if I import this base mesh with animation, the base mesh is imported without the modifications I made using nCloth - so I was wondering if I'd done something wrong in maya. (Specifically if I'm not able to modify a base mesh using nCloth, duplicate the model and then blend between them using blend shapes)

Harwill
N
0

All you want from the imported animation file is an animation clip that adjusts blendshape values. You use that clip on the normal model, the geometry on the imported animation is irrelevant, there just needs to be some sort of rigged geo there so that an animation clip will be generated. That animation clip will adjust the blendshape values on the regular model, giving you the effect you want. The blendshape meshes can be safely deleted as well, as they are just left over garbage from the conversion process, Unity stores the blendshape geo internally on import.

Nichol answered 20/6 at 5:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.