New cloth system & attached points.

In Unity 4 you could put “attached points” on cloth and move these around independently. I want to reproduce this in Unity 5, but it seems “attached points” are no longer available for the cloth component. So my question is how do I reproduce this behaviour with the new cloth system?

Cloth in Unity 5 is very different in Unity 4, and centered around the SkinnedMeshRenderer so you can use it for cloth on characters. However, what you describe should still be possible, though the setup would be different:

When you click “edit constraints” in the cloth component, you can fix individual cloth vertices to stay fixed to the skinned mesh. So if you set up your skinned mesh to have specific vertices skinned to a single bone, and then fix cloth vertices to those positions, you can attach cloth vertices to objects that way.

Although it’s worth pointing out that it’s totally buggered in beta17.

Thanks for the replies. I am trying to do what Jonas said, made a plane with 2 dummy objects which skin the plane in half like this.

After that I import it in unity and get this.
1889638--121591--Unity.PNG

Then I put the cloth component on the plane and set the Mesh of Skinned Mesh Renderer to my plane mesh. That is where I get problems. If the Cloth component is attached the attachpoints have 0 influence on the mesh anymore. (They do before the Cloth component is attached) So could you explain what I am doing wrong or is Cloth bugged at the moment?

You have to click the button that lets you change the vertex constraints, then select the vertices you want to fix in place and set them to “max distance” of zero.

I suggest you do it in beta16, because even if you do everything right in beta17 it won’t work.

1 Like

How so? Any bug reports?

Yes. And, if that does not work, attach a unity package file here, and we can take a look.

Yeah dude, where’ve you been?

Bug case 655777 and example project in case 656765.

I just had an email saying that they’ve been able to reproduce the problem and it’s been passed on to the devs.

1 Like

Alright, now I am getting somewhere, thanks for the help. The flag now responds to where I set the dummy objects in the scene. There is 1 thing left I want to achieve, that it updates the cloth when I move the dummy objects. I want to create an ‘unfolding animation’ for my cloth. Is that also possible?

Also when I change the dummys myself I need to press play before the Scene view updates the new cloth position which is less then optimal.

EDIT: Also added the package

1889699–121609–ClothTestProject.unitypackage (22.3 KB)

Uhm, not everywhere at the same time :slight_smile:

I just took a look - that bug should be fixed in b18. But yes, it is probably not a good idea to use b17 for cloth testing like this.

That is good to know, then I shall wait for the new beta version. But will it be possible in the new version to do the ‘unfolding animation’ thing?

Yes, that should work.

I will wait for the new beta version then.
Alright, thanks for the help. :slight_smile:

How to use the new cloth with skinned meshes actually???
Edit : Nevermind finally i get it. Wow seriously guys unity need a proper vertex painter, it would work great for cloth vertex setup. Or at least if there’s a way to import the cloth setup from external DCC files

We hope to improve on the authoring pipeline for cloth in the future, but this is out of scope for 5.0.

Well actually the current one already decent enough, just need a brush with radius not pervertex ,imagine if you have to setup a cloth with medium res polys, also a smooth brush would be awesome.
This maybe can be usefull (which i belive that you’ve read it already) Link sadly that one is Apex only.
Cheers :slight_smile:

Are you aware that you can drag out a box to select vertices?

yep…

But that is not fun and I would rather use a brush to create the influence of cloth…

Well i didn’t said it was fun :smile:
actually i never said it was fun :confused:
that’s why i’m asking about cloth brush, so it can be great workflow for artist :slight_smile:

1 Like