Search Unity

Black cloth meshes (not cubes)

Discussion in 'Physics' started by dkollmann, Mar 19, 2015.

  1. dkollmann

    dkollmann

    Joined:
    Jul 25, 2009
    Posts:
    25
    Hello everybody,

    I am using the latest Unity 5 version.

    When the meshes are static they are lit correctly.
    When I add cloth support to them they turn black with the same materials.

    The meshes are exported as double-sided ones so I first thought that the two sides would be shadowing each other but even when I disable cast and receive shadow it does not change anything.

    black_sails.jpg

    Any suggestions why this happens?

    Dan
     
  2. dkollmann

    dkollmann

    Joined:
    Jul 25, 2009
    Posts:
    25
    It is definitely a lighting issue as when I change the material to be unlit it works fine. Also when I remove the cloth component, it also works fine with the lit material.
     
  3. xDavidLeon

    xDavidLeon

    Joined:
    Jun 9, 2014
    Posts:
    81
    Are you using HDR? I'm having a similar issue where I get vertex painted black when using cloth + a forward shader + hdr.
     
  4. Roni92

    Roni92

    Joined:
    Nov 29, 2013
    Posts:
    226
    So you generally are adding cloth component to static mesh? Hmmm , f*ck logic :D
     
  5. Orslax

    Orslax

    Joined:
    Apr 8, 2015
    Posts:
    1
    Did you ever figure this out?
     
  6. Shiyao

    Shiyao

    Joined:
    Nov 27, 2013
    Posts:
    23
    I got same issues. Finally, I figure out vertices are too close in front and back face. I think you just duplicated mesh and reverse normal, so vertices of back face has the same position with front face.
     
  7. benthroop

    benthroop

    Joined:
    Jan 5, 2007
    Posts:
    134
    Yes this appears to be a bug. I'm also seeing it.