We’ve recently got a problem with glitches in the meshes (Esp meshes skinned to bones but it is also visible in environment meshes from time to time). Here’s an example:
(Don’t mind the deformed/ugly character, I only did it as a quick example since it’s easier to see on high poly characters on screen shots)
Anyone know what this could be?
I checked glitches in the UV, but there were none.
Things were working perfectly before, we got this issue a few weeks ago and we have been checking the code to see if we could find the source of it, but with no luck this far.
We have this problem with any skinned objects / characters.
col000r: The texture should be fine. It looks alright in Maya and the same texture has worked once before the glitches appeared.
We will look into the Mip-level settings. Thanks! I’ll get back about that.
Ben: None taken. It was pretty hard to indicate where the glitches are on a screenshot. Sorry about not being clear enough.
It is the white pixels that shows as though there is a light source inside the mesh. (On the second image, I have indeed drawn red lines to indicate which white pixels/glitches I am talking about. It is not part of the actual render.) It’s like the mesh has strings of holes on every edge, and light gets out.
It is not the jagged spikes. It is part of this test-dummy-model.
The white around the model’s border is not the issue, it’s an effect from the shader we use (velvet).
Do the glitches occur if you use a standard shader such as Diffuse?
Does it only occur on windows?
Does your mesh self-intersect at any point? Unity has a bug where self intersecting meshes can get ‘double lighting’, which could possible be the cause. See here:
Alternately, because of the ‘velvet’ shader you’re using, it could be that there are some messed-up normals on your model, which are causing them to be lit as if they were at the visible edge of the model, when in fact they’re not.
Just to mention, sometimes, white lines appear when an image that’s meant to clamp the object is in repeat mode… Just change its wrap mode on inspector…