Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
samra_khan_2494's avatar
samra_khan_2494
Honored Guest
6 years ago

How to achieve antiAliasing in VR (Oculus Rift S and Quest)

My problem is how can I get rid of jagged edges in my scene, especially with UI elements.

HDRP is not supported for oculus quest apk. I have tried the following things but neither solves my problem:

  1. quality setting anti Aliasing set tp 2X multi-sampling
  2. CenterEyeAnchor Camera's rendering path to forward, turn on MSAA.

Here is the script i have attached in the scene:

using UnityEngine;
using UnityEngine.XR;

public class VRRenderScale : MonoBehaviour {
void Start () {
XRSettings.eyeTextureResolutionScale = 1.5f;
}
}

4 Replies

Replies have been turned off for this discussion
  • For UI elements, you can try to tweak the CanvasScaler values or play around with the mip maps on your textures
  • Anonymous's avatar
    Anonymous
    There are a lot of issues using the Lightweight Render Pipeline (aka Universal Render Pipeline or LWRP) on the Quest, but one thing that definitely works is MSAA. I haven't tried using `eyeTextureResolutionScale`, so I can't guarantee it's compatible with that, but you can get readable UI text.

    (Edit: This pic was taken on a Quest. The scene is using 4x MSAA.)

    • buymeacoffee's avatar
      buymeacoffee
      Honored Guest

      How did you solve this? I am unable to get this quality even after using MSAA.

  • For everyone else who encounters this, delete SSAO from the Renderer Features list on the Renderer you are using, instead of just unchecking it. For some reason if you don't you get this issue. I spent hours trying to figure this out and scanned every forum post.