Forum Discussion

mrekuc's avatar
mrekuc
Explorer
4 months ago

OVROverlayCanvas with Passthrough Broken

I was playing around with an app I made and decided to turn it into an XR app with passthrough capabilities and ran into issues. 

 

Passthrough: this works as it should I can see the video feed.

UI: I had OVROverlayCanvas enabled on the main menu. This is where things get wonky. With the OVROverlayCanvas component set to underlay as the default and no passthrough enabled everything works on the device (editor is another story as it only shows in the left eye and will not show in the right eye no matter what I try, even with a simple canvas. 

When I turn on passthrough the UI shows but only in my peripheral vision, but if I look directly at it I cannot see the UI anymore it just disappears.

Switching to Overlay instead of Underlay it is always visible, but I cannot figure out how to get the hand ray cursor to appear over the top of the imposter UI.

Does anyone know how to get either of these to work?

4 Replies

  • Hey there!

    Our first recommendation would be looking over our documentation regarding the Passthrough API, as well as our Sample Scenes (specifically the ones covering OVROverlay and OVROverlayCanvas).

    If recreating the steps there doesn't work and you continue to face the same issues, please let us know so we can take a further look into this.

    Let us know if you have any additional questions - we're happy to help!

    • mrekuc's avatar
      mrekuc
      Explorer

      While there is no sample scene with Passthrough and OverlayCanvas together I added it to the passthrough scene and it does work. I am dumbfounded as to why it will not work in my scene even when exporting the scene from the samples and bringing it into my project. It stops working. I have gone through every setting and compared the two but nothing seems to make it work in my project. Any ideas of other places that may be cached? it seems like a depth issue and they are being rendered behind the passthrough even though the passthrough is at 0 depth, layers are set up exactly the same.

    • mrekuc's avatar
      mrekuc
      Explorer

      I still cant figure out exactly what changed but copying the samples camera component values to my camera worked, although all the values are identical. Could something have changed on the script that isn't visible in the inspector? Because rig prefabs in the all the samples do the same thing except for the overlay rig and copying those values.

  • I have a lot. 

    While there is no sample scene with Passthrough and OverlayCanvas together I added it to the passthrough scene and it does work. I am dumbfounded as to why it will not work in my scene even when exporting the scene from the samples and bringing it into my project. It stops working. I have gone through every setting and compared the two but nothing seems to make it work in my project. Any ideas of other places that may be cached? it seems like a depth issue and they are being rendered behind the passthrough even though the passthrough is at 0 depth, layers are set up exactly the same.

→ 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