I’m using Unity3D version 5 and this is the first time I’ve been getting into physical cloth. From what I’ve read you used to be able to use any kind of mesh collider for cloth to bounce off, now it seems you can only use spheres and capsules. How would I set up a dress for a female character that is animated with walking legs? Would I be expected to create some fake leg colliders using a combination of spheres and capsules or is there an easier way?
Yep. Create some capsule colliders and attach them to the leg bones so they follow the movement.
ok, I’ve done that. The collisions are there but my dress ends up in pieces as soon as I start the walking animation. The dress itself is just one object. In the initial position the capsule colliders are not intersecting with the dress. I have “tether” and “gravity” on. I’ve edited constraints to make all vertices movable to 0.5 except for the row of vertices at the top of the dress around the waist which is set to 0, so it latches onto the waist. Is there a tutorial somewhere on Unity v5 clothing and how to get it working with animated characters?
EDIT:
The dress falling apart was my fault. When I exported from Marvelous Designer it exported the fabric then all the textures as patterns on top of the fabric. Even though it was exported as one object it would split apart at the seams during movement.
I’ve attached a picture showing what I’m trying to achieve. It looks fine when static, but when animated it looks terrible. Its impossible to replicate the contours of the hips and buttocks using capsules and spheres. I always get body mesh coming through the cloth. If I increase the size of the colliders (bigger than the mesh) then it looks ridiculous since you see the obvious bulge of the capsule or sphere (even with mesh renderer off)
I figured it out! I need to rig the dress to the same rigging as the character (in Daz3D I used the ‘transfer utility’). This will make the dress move with the body. Then in Unity when I add cloth component to the dress I edit constraints, select the vertices just below the waist and allow them to move 0.5. This makes the part that hugs the waist stick to it while the female moves and the rest will flow. I only needed 4 capsule colliders for the legs and they don’t need to be 100% accurate since the dress isn’t “hugging” the legs.
Congratz! Glad you sorted it out!
Hey! That looks fantastic! And PLEASE tell me that’s a Project Runway style game! (Guilty pleasure…)
Cheers mate Its not a game, but a virtual reality experience. I’m putting together a virtual fashion show for Melbourne Spring Fashion Week using real catwalk models (scanned in 3D) and dresses replicated in Marvelous Designer.
Feel free to share any tips on getting cloth working. I’m not seeing a ton of threads on this yet.
@mmline Do you get to be the one scanning the models?
I agree with @hopeful , though. If you felt like putting together a quick tutorial on the full process, I’d be extremely interested in giving it a look.
Also, when is MSFW?
Wooah!!
Cool!!
Seconded, A full process tutorial is drastically need. I’m new to all of this and can’t quite figure it out, and I need it for a fighting game I’m making ;D
Wooah!
Cool!
Nice work dude!
hi! does anybody know how to eliminate or minimize the gelatin effect of unity 5’s cloth component? like the one on my cape. it’s bothering me coz sometimes, the cape gets stuck on some of the colliders attached to character’s body.
( @Done4Good - We can’t see the video as it is marked “private.”)
lol sorry XD fixing it now
Do you have any bones in that cape? If not, maybe that would help.
I’ll try adding a bone then XD thnx
I had a problem on making cloth by using joint.
I use colliders attached to its bone and add Character Joint and Rigidbody.
It’s ironic that I invented this method but I can’t use it myself. Here’s tutorial from my blog.
Is there anyway to make cloth physics without passing through skins using joint ? I’m kinda stressed out because of this.
EDIT : No I can’t use Interactive Cloth or Skinned cloth renderer, cause my model skirt and body was joined / connected.