Noticed these flickering pixels when using a normal map and displacement map. Is it possible that theres something wrong with my normal image or is there something wrong with the shader itself?
I can’t see any issue with your fiddle as shared @nwpointer. Checked on Chrome, Windows 10.
However, if I set the roughness to zero (with or without AA) then there are a lot of fireflies (note: to see them open the image in a new tab, discourse scales the image down which removes the artefacts):
Thanks everyone for your comments and suggestions!
Since not everyone was seeing the issue I tried it out on multiple computers. Original screenshots were taken on my new m1x macbook with chrome. Notably my work computer (intel mac) does not seem to have the problem.
Hey @nwpointer. Are you using DRACO compression, by any chance? I’ve run into this issue in the past when compressing my UVs too much. The UVs were so compressed that they lost some precision, and neighboring UVs would end up sharing the same coordinates. This would ruin the reading of my normalMap and it would give me random flickering because the normals were going haywire. It was barely noticeable in my Windows machine, but very obvious in my 2015 Macbook Pro. Maybe you’re experiencing the same thing?
Edit: I just looked through your JSFiddle link and I guess this could not be the problem because you’re using a simple Plane for your geometry.
May be too. In 3ds max then exporting to format “obj” we can select precision of uv. vertex e.t.c. In my machine too flickering pixels was. And in the game at low graphics.
I didn’t know this but there are cloud compute platforms with m1 instances available.
I stood up a on-demand m1 instance on Scaleway to double check and confirmed that it also suffers from this issue even with antialiasing and the other suggested fixes turned on.
Unsure what the next step would be given this appears to be a hardware issue - should we submit a bug report to apple? Is there documentation that might shed some light on the differences between the m1 and intel chips that might help?