Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Cloth Constraints not working - can't paint or select

Discussion in 'Physics' started by KarlKarl2000, Jul 26, 2019.

  1. FerociousIndustries

    FerociousIndustries

    Joined:
    Feb 28, 2018
    Posts:
    6
    This has to be looked at. I know I'm just repeating what everyone else is saying but this is brutal.. Spend weeks working on great graphics and then anything that should have cloth physics just doesn't.. it's nasty.. I love Unity and the devs but please for the love of god get someone working on this specific feature.. it's been years since this worked properly for me.. btw can anyone still confirm this does work in 2019.4? Thanks in advance
     
    M_R_M, KospY and awesomedata like this.
  2. TacticalShader

    TacticalShader

    Joined:
    Dec 5, 2018
    Posts:
    27
    (Just as I was about to replace the Cloth system by a third party)

    The bounds are fixed ? That's great.

    But what about this issue though ? It's a major issue and it seems not a lot of people are aware of it.
    tl;dr : The Cloth component CPU cost increase linearly when adding Cloth components in the scene and it doesn't matter if they are disabled or frustum culled : and we tried, but it seems you cannot "hack your way" around this issue. And it's not a small cost, it's 5ms on PC.

    https://issuetracker.unity3d.com/is...ts-with-cloth-and-then-hiding-them-off-screen
     
    M_R_M likes this.
  3. TacticalShader

    TacticalShader

    Joined:
    Dec 5, 2018
    Posts:
    27
  4. KospY

    KospY

    Joined:
    May 12, 2014
    Posts:
    153
    I think we would all be happy to get at least an official response about the status of the cloth system. So far It look abandoned, the edit mode of the cloth component is broken since years. A lot of bug reports has been done, tickets are still open, the reproduction steps are easy, but still nobody is willing to fix cloth at Unity.

    I don't know what else we could do. I'm sorry for the rant, and I may be brutal, but I'm using Unity since years and I'm baffled about all the bugs that are never fixed. And it's not only me, it's a feedback shared with many Unity devs around me. Unity is good to create new features that will be used by 5% of Unity users for hobby projects, but still ignore bugs that concern 95% of their users with professional projects. This is a major problem at Unity since years, and I never saw a support as bad as Unity in my 15 years experience in the IT. Even a pro license will not help you (I advice to not bother with that if you can). My experience with Unity support is looking at dead ticket every weeks in the hope something move.

    At least we have a forum to rant about this, and maybe one day Unity will do something if we are loud enough (one can hope :rolleyes:)
     
    TacticalShader likes this.
  5. anykimster

    anykimster

    Joined:
    Jul 8, 2020
    Posts:
    7
    on 2020.1.4f1. The problem with bounds is still experienced. Don't know what to do....
     
    OlliQueck likes this.
  6. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Get in touch with a Product Manager at Unity (there are more than one of them) and ask them what team the Cloth feature is assigned to. Then share it here with the community (if you actually get an answer) so that more of us can push for that.
     
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    But seriously? Bug->use bug reporter tool. That can't be ignored by Unity's developers, and Unity's developers can actually ignore forum posts.

    So use the bug reporter tool, and leave the case number in threads. Anything that's not actively in dev will likely be totally ignored and you will all just be crying into the wind.
     
  8. TacticalShader

    TacticalShader

    Joined:
    Dec 5, 2018
    Posts:
    27
    M_R_M likes this.
  9. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    You're looking at it wrong. The more bug reports on a thing, the faster that thing gets fixed. One lone bug report is often actually ignored as there's more pressing things. Pressing things are decided by how much it affects people.


    That said, also it's probably not fixed because most programmers thought "f-it, I'll parse vert cols and assign those in code to cloth weights" - I did anyway.

    Cloth I have to say, never did seem to *ever* have a good UI that didn't break, and I can only assume it's because nobody can be bothered to wait for Unity.
     
  10. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Yeah I remember reporting most of these cloth bugs back in 2019 when we had a big clothing related project.....in the end we just had to work around it as we had deadlines. They seem like really easy bugs to fix too, so it's pretty disappointing that cloth is still in such a bad state..
     
    hippocoder likes this.
  11. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Yep! and I'm not even sure it's cloth that's bugged or it's UI. I think it's the UI.
     
  12. M_R_M

    M_R_M

    Joined:
    Jan 31, 2019
    Posts:
    26
    I've discovered what my issue was here with the cloth tool, maybe this will help someone else.

    If a mesh is not at exactly 1,1,1 scale, including any submeshes that comprise that mesh, then the UI for the tool does not work correctly, and treats the mesh as if it were much larger. The brush will not paint the nodes, or when it does sporadically, will paint them in random ways.

    For me this issue stemmed from how I exported my models from Blender, where I generally left the export options for FBX alone, but now I set the "Apply Scaling" option to "FBX all". Simply applying the scale of your meshes in Blender will not be enough, you will need to make sure that the scaling is completely converted to the FBX standard (using that "FBX all" option) in order for Unity to use it at the same scaling.

    Once I figured that out, the cloth simulation worked beautifully.

    I hope that helps some people, and I'm sorry that it's been such a pain for so many, it's something that stumped me for a while too.
     
    bulletwhaledevs likes this.
  13. EgoJacky

    EgoJacky

    Joined:
    Aug 15, 2017
    Posts:
    26
    Thanks! this worked for me!
     
  14. nantoaqui

    nantoaqui

    Joined:
    Oct 1, 2014
    Posts:
    40
    Worked for me!
     
  15. GoldenWol

    GoldenWol

    Joined:
    May 14, 2020
    Posts:
    1
    i do not knew if that help but if you face this problem in the new versions of unity like 2020 you can just make the scale and rotation back to how they was when you imported your asset and you can paint them it is a bit tidies some times but we hope that they will fix this problem very soon
     
  16. Biscuitlid

    Biscuitlid

    Joined:
    Apr 1, 2013
    Posts:
    6
    This is still broken. It's absolutely nuts that Unity won't fix something so basic. But yes switching layout to default works. Thank god for that person!
     
    awesomedata likes this.
  17. directusgames

    directusgames

    Joined:
    May 8, 2015
    Posts:
    14
    Also worked for me!
     
  18. AnimalMan

    AnimalMan

    Joined:
    Apr 1, 2018
    Posts:
    1,164
    Completely broke for me. Default layout doesn’t work I can select them so wish there was hot key to set max distance and surface penetration without needing that damn cursor E764529C-8AFA-4916-8E9C-EEE4A82AC5C6.jpeg
     
  19. AnimalMan

    AnimalMan

    Joined:
    Apr 1, 2018
    Posts:
    1,164
    Oh okay you can do it via select. So once selected which doesn’t require the cursor, you can check both of the check boxes in select mode(max distance and surface penetration) and it will paint the vertice red, or whatever scale you set as if using the cursor.
     
  20. ihsan07

    ihsan07

    Joined:
    Mar 28, 2016
    Posts:
    17
    For people who is still struggling with this, if the cloth constraint panel is not showing, open gizmos and enable clothes. It is disabled by default.
     
  21. teamdunali

    teamdunali

    Joined:
    Jan 7, 2022
    Posts:
    1
    This really helps, Thank you so much! Hope unity updates this bug.
     
  22. samran263

    samran263

    Joined:
    Dec 29, 2016
    Posts:
    4
    For me what it works was just go to layout and revert to factory settings the UI and that's it!
     
  23. galnikkozmelj

    galnikkozmelj

    Joined:
    May 29, 2019
    Posts:
    7
    i had similar problem.. i couldn't edit my cloth constraints. I fixed problem by enabling all gizmos in scene view
     
  24. AnimalMan

    AnimalMan

    Joined:
    Apr 1, 2018
    Posts:
    1,164
    It’s buggy I have my own solution now
     
  25. OlliQueck

    OlliQueck

    Joined:
    Apr 11, 2013
    Posts:
    49
    I'm also experincing the issue in 2020.3.24 while modifing a prefab in prefab mode. I'f im having the issue in a scene I can just "reset to default layout" which fixes the problem, but no chance in prefab mode
     
  26. OlliQueck

    OlliQueck

    Joined:
    Apr 11, 2013
    Posts:
    49
    So my workaround now is - leave prefab edit mode and go to your scene where the prefab is placed. go to "window/layouts/Default" then you can select the vertices again. make your adjustments and apply to the prefab from you scene
     
  27. zeropointblack

    zeropointblack

    Joined:
    Jun 8, 2020
    Posts:
    190
    i still randomly cant paint cloth constraints in unity versions 2019 and 2022. fail.

    for me, half side of both meshes completely disappears cursor, and switching to default layout doesnt fix. so sad im going to cry.

    fix your garbage.

    EDIT: i can confirm it is on a scaled mesh. the cursor only shows up where it THINKS the mesh is before scaling it a little wider. lame. present work around is to scale back to 1,1,1 then paint then paste altered scale values again. should be easy to fix now. get on it thanks.


    oh and by the way Cloth suffers from the worst most atrociously retarded default settings known to mankind, all of them, especially why the hell am i painting constraints at a value anything other than an actual constraint of ZERO? you press play and the cloth/curtain/outfit practically falls through the floor and looks like complete trash. are you guys ok with that? with everyone knowing this? you know how much time i wasted before finding this out, painting a super loose default "constraint" and trying to compensate by pull the mesh up before runtime so it can fall down into the right location while mushing together looking like crap? nice work, head unity cloth guy.

    lol sorry i just cant stop. im really good at this.

    i have to add at least THREE or four capsule colliders to stop the cloth from hitting the wall behind it because someone thought that would provide "better performance" then giving me the option to use ONE plane? lol really? am i doing something wrong? besides using unity or what what happened.
     
    Last edited: Dec 5, 2022
  28. abbas_haider

    abbas_haider

    Joined:
    Nov 24, 2021
    Posts:
    1
    I'm facing this issue in 2021.3.16f1 where although select tool is working, the paint tool does not work.
     
  29. unitydreamer29

    unitydreamer29

    Joined:
    Dec 27, 2020
    Posts:
    47
    Having this issue in 2020.3.43, the cloth paint tool cannot be used unless the object scale and parent scale are set to 1,1,1.
     
  30. Fimiam

    Fimiam

    Joined:
    Oct 24, 2016
    Posts:
    11
    2022.3.0 Paint mod still doesn't work only select.