I'll make this short people;

I need the animation that does this: enter image description here

But all i get in Unity, is a plane going from A to B on an axis, it does not roll.

I tried baking the location, but it did not help.

How do i get the complete animation into unity?

For clarification, i am using a curve modifier to make the plane roll aroun like paper.

Thanks in advance.

  • Unity is not aware of Blender modifiers, you can't expect to losslessly export application specific data to other applications. Please read blender.stackexchange.com/questions/57531/… – Duarte Farrajota Ramos Oct 20 '17 at 18:27
  • But is it not possible to bake the animation, so unity can understand it? I eventually just had to use bones, but it would be much faster if there was a way to make it into something unity understands. – Jonas Stjernholm Jensen Oct 27 '17 at 9:12

There's a way to partially do this. It takes some tinkering.

There's a myth going around that Unity does not understand shape keys from Blender; this is not true. You'll find it under the "Blend Shapes" tag under Skinned Mesh Renderer. However, that's not everything, because the foundation of truth in that myth is that Unity does not understand Blender animations involving shape keys. You need to re-animate it from within Unity.

The additional concern is that shape keys always lerp, never slerp—that meaning, transitioning between shape A and B is done in an exclusively linear fashion. They also act in strictly Cartesian space, never spherical space (as nice as that would be). That means that for something like above, where you're "rolling up" a scroll, you'll need to break it into several parts.

I would suggest approaching something like this by breaking down the action into multiple individual segments, preferably atomic ones; for each one, develop a shape key that rolls the shape from one form to another. In Unity, you would maximize those one by one. You might have one shape key that forms the initial roll in the scroll; then another that half-rolls to the right, then another, until you have the entire scroll rolled up.

That is, have one shape key that goes from flat to flat-with-one-roll, then another that goes from flat-with-one-roll to flat-with-one-and-a-half-rolls, and continue until you reach the end. Then, in Unity, set up an animation that interpolates each Blend Shape from zero to one, then moves to the next one.

Conveniently, many of Blender's modifiers can apply themselves as shape keys.

I should also note that you'll want to add a solidify modifier to that mesh, even if at width zero. It looks like it's just a plane, and in Unity, one side will be transparent. I strongly suggest applying this after you've got the roll-up motion working, though; it should make things much easier.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.