Search Unity

Blender Animation Causes Mesh to stretch in Unity

Discussion in 'Asset Importing & Exporting' started by kenaochreous, Nov 3, 2012.

  1. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    Hi everyone, I tried importing a model from blender in fbx format to unity and tried to run it's animation. For some reason when the animation runs it causes the mesh to stretch while it's running. When I run it in blender the animation works fine and does not distort/stretch the mesh. Any idea why it is doing this?
     
  2. nipoco

    nipoco

    Joined:
    Sep 1, 2011
    Posts:
    2,008
    Setting the blend weights in the quality settings to 4 bones may solve the problem.
     
  3. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    Where are the quality settings located?
     
  4. nipoco

    nipoco

    Joined:
    Sep 1, 2011
    Posts:
    2,008
    Edit> Project Settings> Quality
     
  5. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Another possibility that happens frequently:
    If you have scaled your model in object mode, you are getting those kind of artifacts. You can solve it by applying the scale and maybe the rotation.
     
  6. nipoco

    nipoco

    Joined:
    Sep 1, 2011
    Posts:
    2,008
    Let me add, with ctrl+A in object mode, in case you don't know how to do that.
     
  7. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Thanks nipoco! I should have mentioned that.
     
  8. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    I tried increasing the blend weights and applying the object transform but the mesh is still stretching. I noticed that the stretched bit of the mesh is not moving along with the animation and just sits there in one spot. Any other ideas I could try?
     
  9. nipoco

    nipoco

    Joined:
    Sep 1, 2011
    Posts:
    2,008
    Hmm, maybe you have too much bones influence certain vertices. I don't know. If you post the blend I could take a look at it.
     
  10. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Can you post the file?
     
  11. kenaochreous

    kenaochreous

    Joined:
    Sep 7, 2012
    Posts:
    395
    I'm going to try re doing the bones and see if that helps. I have a feeling that some of the bones are connected to parts of the mesh that shouldn't.
     
  12. GilesDMiddleton

    GilesDMiddleton

    Joined:
    Aug 12, 2015
    Posts:
    91
  13. prototype01

    prototype01

    Joined:
    Dec 3, 2018
    Posts:
    2
    Hi, I got same problem as kenaochreous, did you finally found the solution?
    I've followed all instructions, but yet none of them all worked. Please help
    Thank you
     
  14. Huxii

    Huxii

    Joined:
    Sep 15, 2018
    Posts:
    37
    Happened to me too in Unity 2019. I guess unity thinks I should rather use a duckel. Just hilarious. Any ideas that the reason is?
     

    Attached Files:

    fauzannr likes this.
  15. Subushie

    Subushie

    Joined:
    Dec 30, 2020
    Posts:
    1
    Were you ever able to solve this? Am having a similar issue and can't find a solution anywhere.
     
  16. newtype06

    newtype06

    Joined:
    Jan 1, 2013
    Posts:
    1
    This fixed mine too! Ctrl-A, then click Keep Transforms. I re-exported and it worked like a charm.