Skip to main content
Up and Coming
June 15, 2017

Why does my gameObject's mesh edges were flickering in Oculus?

Hello Guys, I am making a quite big world for my game in Unity for Oculus Rift. Initially when I tried my game with default settings it looked somewhat blurry and mesh edges were flickering like a hell (especially trees). So I changed RenderScale value to 2 from 1. It made huge difference in my game quality but FPS went below 60 and then I adjusted RenderScale value to 1.2 so now my game quality is okay and FPS is also okay. But the problem I'm facing now is the flickering in mesh edges. I even tried with 8x MSAA but still flickering exists. Does anyone know how to solve this. FYI : THOSE FLICKERING PROBLEM IS ONLY IN OCULUS SCREEN, PC MONITOR DOES NOT SHOW THAT MUCH FLICKERING

Oculus Version : Oculus Rift CV1

Current Settings :  Rendering Path -> Forward,  AA -> 8x MSAA, VSync -> Disabled, Color Space -> Gamma, Stereo Rendering Method -> Single Pass. 

PC Specs : RAM -> 32GB, Processor -> Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz 4.00 GHz,  Gfx -> NVIDIA GeForce GTX 1070

If you guys need additional Info, I will provide :smile:
 
This topic has been closed for replies.

9 replies

Up and Coming
June 15, 2017
Does your camera also have "Forward" as the rendering path? Sometimes it might override "Player Settings".
NirmlRjAuthor
Up and Coming
June 15, 2017

moonbear said:

Does your camera also have "Forward" as the rendering path? Sometimes it might override "Player Settings".


Yes. I always check it before playing game in editor and before taking build.
Up and Coming
October 24, 2017
if you still have this flickering 
Add this script to any Game Object

public class SetAntiAliasing : MonoBehaviour
{
    public int antiAliasing = 2;
    // Use this for initialization
    void Start ()
    {
        QualitySettings.antiAliasing = antiAliasing;
    }
}

Anti-aliasing from the script will override the quality settings in gameplay.

hope it help.
NirmlRjAuthor
Up and Coming
October 26, 2017


if you still have this flickering 
Add this script to any Game Object

public class SetAntiAliasing : MonoBehaviour
{
    public int antiAliasing = 2;
    // Use this for initialization
    void Start ()
    {
        QualitySettings.antiAliasing = antiAliasing;
    }
}

Anti-aliasing from the script will override the quality settings in gameplay.

hope it help.


MSAA is already enabled in Quality Settings(8X MSAA). Does it really make difference to add it through script? Just asking. 
Up and Coming
October 26, 2017
yes you have to override it especially for VR development.
Up and Coming
October 26, 2017
I think its not bug , its an performance optimization from unity side.

From Unity Documentations 
Anti-aliasing value indicates the number of samples per pixel. If unsupported by the hardware or rendering API, the greatest supported number of samples less than the indicated number is used.


Participant
November 14, 2017
@"carsten.knoblich"
Were you able to solve your problem. If yes, then kindly tell me the solution as I am having the same issue.
NirmlRjAuthor
Up and Coming
November 14, 2017
@A1_Mandeep
Enabling anti aliasing in runtime had almost no effect in 5.4.0. But when I switched to 2017.2.0 unity version I was no longer needed to enable it in runtime. Even @imperativity
 told me to try 5.6.0 or above versions. Try new version.
New Participant
June 3, 2023

I am probably so late to the party, but, I also faced similar issues, so I made the video, hope it helps