I’m working on a project and all of my mesh edges are flickering when looked at a distance in VR only. I’m not sure what the issue is and have experimented with nearly every graphical setting I can think of. This issue is pretty major and is making my project look very amateurish. I was wondering if anyone knew of a solution to this problem.
Here is a GIF of what the issue looks like.
Here’s a video from someone who had a very similar looking issue.
The settings I currently have.
Forward Rendering
Single Pass Stereo Rendering
MSAA
4X Anti Aliasing.
.3 Near Clip Plane
Well I presume for your texture: you’ve got mipmaps enabled and at least bicubic filtering.
It may be a cutout shader with too high a threshold.
You may be able to reduce the effect by changing the threshold of the cutout shader.
If your foliage texture is bad then you won’t be able to fix it in engine:
A good cutout texture will have its alpha ramp from opaque to transparent over several pixels around the entire shape, in a uniform manner around the entire shape, this can be done in photoshop, you can make a white copy of the hard outline shape, then apply inner black glow, then use that to derive alpha mask.
The youtube video is a different cause, geometry based: it needs more MSAA or supersampling to reduce effect, or to remove effect: the windows and frames should not be in mesh geometry, but rather baked as bump/normal maps into the texture.
No, the problem I’m having I think is different from what is in the gif. It’s sort of a universal blurring effect that hits edges of every piece of mesh / foliage in the game. Initially I thought it a was post processing effect or Anti Aliasing but messing with those things don’t seem to fix it.
Hi,
I am having similar issue with Windows MixedReality.
It is very annoying flickering effect, but i have not got any solution after posting it in pretty much every forum.
If you visit the link i have a video that demonstrates the problem with a simple app; cube and a plane; (no textures, no complex stuff).
It seems it is a limitation of the current technology (I hope i am wrong).
All what i can do now is keep digging and i ll share any findings.
Hey raedbenz issue looks very similar to mine. I’ll give you an update if I’m able to fix it. I think it’s something Unity / VR / AR related but I’m unsure. I put the issue on hold for now but I will return to it in the future.
All I see in these is aliasing. When you have detail that is smaller than 2 pixels samples wide/high such as the thin recessed windows in the building from the OP video, you are going to get aliasing.
As BGolus suggested in some other thread , try to set MSAA to atleast 4x , and use a script to set (SSAA) renderScale to 1.4-2.0, as long as you are happy with the performance.
XRSettings.eyeTextureResolutionScale = 2.0f; //replaces the deprecated VRSettings.renderScale
Also, if someone is like me and tried everything but nothing worked. This might be obvious for some but my render resolution was turned way done. To like .6. If your render resolution is below 1.0 aliasing becomes incredibly noticeable. More so the further your resolution goes down.