- Home /
Interactive Cloth - Flickering?
I am having a problem with my interactive cloth.
Whenever I add a light to the scene, the cloth begins to "flicker" when it moves.
Now I am sure it has something to do with the vertex lighting that is going on but I am trying to find a way around it.
Does anyone have any ideas?
I can post up a web build showing the problem if people need.
Thanks in advance!
I have the exact same problem. This happens when using a double-sided mesh for cloth (pillowcase technique). I'm trying to get shadows working on Unity cloth, on both sides. Here are three techniques that I tried, all failed.
TECHNIQUE 1: SINGLE $$anonymous$$ESH, DOUBLE-SIDED DRAW (CULL OFF)
No shadows on back face. This is because Unity's shadow pass does not render backfaces. Also surface lighting is wrong because the normals on the backface point forward.
TECHNIQUE 2: SINGLE $$anonymous$$ESH, DOUBLE $$anonymous$$ATERIALS
Same problem. Unity does not render backfaces in the shadow pass, therefore, no shadows on the back side.
TECHNIQUE 3: DOUBLE-SIDED $$anonymous$$ESH (PILLOWCASE)
Shadows work on both sides! But surface normals flicker like crazy! This is caused by Unity's cloth simulation, which freaks out from pillowcase meshes.
Oh Unity
Answer by ThunderbirdX11 · Jun 02, 2013 at 05:46 PM
Hello,
I had the same problem I guess. Is your Cloth-Mesh double-sided? I had to remove the double faces to turn it back to normal:
Your answer
![](https://koobas.hobune.stream/wayback/20220613065013im_/https://answers.unity.com/themes/thub/images/avi.jpg)