Forum Discussion

MonCheriDels's avatar
MonCheriDels
Explorer
1 month ago

Glitchy rendering on certain camera angles

This bug only appears in device build and on certain camera angles. Sometimes when the player looks up or when the controllers are out of the camera frame. 

I have used the default VR Controller from UnityXR Toolkit and this glitch doesnt show. 
I am currently using the prefab controller for pose detection scene and added the locomotion prefab to add movements. 

I am using URP for my project. 

What I've tried:
- Removed the tunneling vignette object from the controller because maybe its conflicting with the rendering
- Adjusted near and far clippings of left,center, and right cameras
- Played with XR settings Single Pass Instanced / Multiview

Unity Version: 6000.3.3f1

1 Reply

  • Degly's avatar
    Degly
    Start Partner

    What I would do:

    • Make sure all materials use URP-compatible shaders (no legacy/Standard)
    • If using custom shaders, ensure XR (SPI/Multiview) support is enabled
    • Disable Depth Texture / Opaque Texture in URP asset to test
    • Check for objects using ZTest Always / incorrect render queue
    • Try forcing Single Pass Instanced only (avoid switching modes)
    • Replace the controller material with a basic URP Lit → if glitch disappears, it’s 100% shader-related

    I do feel that it's a shader not handling XR rendering correctly in URP on device.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions