Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

New cloth system & attached points.

Discussion in 'Unity 5 Pre-order Beta' started by RazorSharps, Dec 17, 2014.

  1. RazorSharps

    RazorSharps

    Joined:
    Dec 17, 2014
    Posts:
    5
    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?
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    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.
     
  3. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Although it's worth pointing out that it's totally buggered in beta17.
     
  4. RazorSharps

    RazorSharps

    Joined:
    Dec 17, 2014
    Posts:
    5
    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.
    Skin.PNG

    After that I import it in unity and get this.
    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?
     
  5. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    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.
     
    MonkeyPuzzle likes this.
  6. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    How so? Any bug reports?
     
  7. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Yes. And, if that does not work, attach a unity package file here, and we can take a look.
     
  8. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    lermy3d likes this.
  9. RazorSharps

    RazorSharps

    Joined:
    Dec 17, 2014
    Posts:
    5
    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
     

    Attached Files:

  10. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Uhm, not everywhere at the same time :)

    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.
     
  11. RazorSharps

    RazorSharps

    Joined:
    Dec 17, 2014
    Posts:
    5
    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?
     
  12. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Yes, that should work.
     
  13. RazorSharps

    RazorSharps

    Joined:
    Dec 17, 2014
    Posts:
    5
    I will wait for the new beta version then.
    Alright, thanks for the help. :)
     
  14. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    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
     
    Last edited: Dec 18, 2014
  15. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    We hope to improve on the authoring pipeline for cloth in the future, but this is out of scope for 5.0.
     
  16. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    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 :)
     
  17. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Are you aware that you can drag out a box to select vertices?
     
  18. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    yep...
     
  19. KRGraphics

    KRGraphics

    Joined:
    Jan 5, 2010
    Posts:
    4,466
    But that is not fun and I would rather use a brush to create the influence of cloth...
     
  20. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Well i didn't said it was fun :D
    actually i never said it was fun :/
    that's why i'm asking about cloth brush, so it can be great workflow for artist :)
     
    KRGraphics likes this.
  21. KRGraphics

    KRGraphics

    Joined:
    Jan 5, 2010
    Posts:
    4,466
    LOL, it's early. But yes, I have tested the cloth rigorously and I love the direction it is going...
     
  22. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Seems to not be fixed in beta18 :(
     
    Joviex and shkar-noori like this.
  23. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    This is still broken as hell in beta19.

    I'm not gonna lie, this bug pisses me off, it used to work perfectly.
     
    lermy3d, chiapet1021 and Joviex like this.
  24. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    you are not the only one man......
     
  25. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    I just rechecked this. It appears that this got re-broken after it got fixed, and now got fixed again in b20. Sorry for the inconvenience.
     
  26. KRGraphics

    KRGraphics

    Joined:
    Jan 5, 2010
    Posts:
    4,466
    Are you guys going to fix the cloth tools so it can be brush based? It will not be fun trying to select vertices on a dense cloth surface.
     
  27. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    This is actually fixed in b20! I wish I wasn't so surprised. I'm just glad it's working again now.
     
    hippocoder likes this.
  28. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    awesome, haven't checked this yet since i'm still downloading b20