|
In my application user can wear different clothes. Clothes for character are skinned meshes with bones, identical to character's bones. Clothes should dress on a character through attaching clothes bones to character's bones. The problem is that bones are attached, but clothes mesh worn “unevenly”, some parts of character's body get off from clothes (see pic.1). Dressing should be processed at run-time, clothes are load from asset bundles. Please, see my code. Start Download() function: Wearing() function: It happened that all clothing was modeled around this character, staying in a T-pose. Now, I try to dress this clothing on a character staying in another, “default” pose. Maybe, problem in it? But, as I understand, if mesh rigged to bones and bones changed their positions, mesh should follow bones. So, please review my code and tell me, how can I solve this problem? Perhaps, I don't understand something in mesh behaviour in Unity.
(comments are locked)
|
|
you could use interactive cloth and have a box collider on the bones of the shoulders or the waist. then adding a mesh collider to the body, the cloth would smoothly cover it. but this way need more processing power
(comments are locked)
|
|
while I'm having the same problem as you are, I dont have a definite answer...but there are somethings that could help you out. 1) I dont see where you are setting the bones you setting to the skinned mesh renderer 2) I dont see where you are setting the bind pose or weights for your bones. 3) if you have a skinned mesh renderer (and you do since you are trying to animate the model) you dont need the normal meshFilter... in fact, once you have a skinned mesh renderer, Unity ignores the mesh filter attached to the object. Let me know if you solve this problem, since I need help with this too.
(comments are locked)
|
