Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Importing characther, clothes and animation from Blender to Unity

Discussion in 'External Tools' started by Phoenix248, Sep 20, 2019.

  1. Phoenix248

    Phoenix248

    Joined:
    Sep 20, 2019
    Posts:
    1
    Hello everyone!

    I'm in a game project, using Blender for 3D modeling / animation, and Unity as engine.

    I've modeled a character and rigged him in Blender, and parented his clothes to the bones as well. But when moving it, some clothes get a strange deform and intersect the body. So it was reccomended to me to do this process in Unity, using Unity's cloth function, so the collisions solve the intersecting.

    My question is: how exactly should i export the Blender file to Unity? Because i still intend to animate the character in Blender. So should I animate only the body (without the clothes) in Blender, and then import the clothes as separate objects to put it all together in Unity? Or Should I animate the clothes parented to the the body (even with the intersections), then fix only the intersections in Unity?

    Or there is a better way to solve all this?

    Thats the character. My goal is to make at least the jacket and the shorts as clothes.

    upload_2019-9-20_1-45-32.png

    And thats the intersecting problem that i'm having:

    upload_2019-9-20_1-50-37.png

    Using Blender 2.8 and Unity 2018.2.

    Thanks for the attention!
     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    1,666
    Have you read the manual page about Unity cloth?
    https://docs.unity3d.com/Manual/class-Cloth.html

    If you really want to use the cloth modifier then you would not animate the clothes. You need to rig the clothes separately according to where you want the cloth to bend and where the colliders should be. To be frank, I don't really expect that it's going to work well with tight fighting clothes like shirts and pants unless you rig them fairly densely, and then you'd have performance concerns.

    Why are you modeling the clothes as separate part's though? Are you trying to make interchangeable/removable clothes for that character?