Forum Discussion

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

[StereoLayerComponent] I turned on the Supports Depth Flag to build and use Oculus Quest Error

The Stereo Layer Component is used for widget use. However, due to the phenomenon that the player hand is drawn behind the widget

I turned on the Supports Depth Flag to build and use Oculus Quest, but it comes out with a black background with no alpha behind.

Does anyone know how to fix it?

When I turn off the Supports Depth Flag, the alpha is fine and the hand is drawn behind the widget.

Unreal Engine Version 4.24

5 Replies

Replies have been turned off for this discussion
  • KoXeN's avatar
    KoXeN
    Honored Guest

    I'm compiling for Quest 1 with ES3.1. Last time I saw black screen was on Epic's branch, on Oculus only black background.

    If I understand correctly AlphaHoldout should only affect alpha, basically make hole in translucent material, so why modifying PokeAHoleMaterial affected colours?

    It's not like all elements are pitch black, I can see their details, it's more like black tint was applied.

  • KoXeN's avatar
    KoXeN
    Honored Guest

    Hi, 

    this problem occurs in 4.26 too. I've applied en-austin changes on top of latest 4.26 from Oculus branch. Nothing has changed until I replaced PokeAHoleMaterial with version from this commit. Now transparency cutout is working correctly but all visible parts are black. Any ideas what went wrong?

  • Thanks for answering. However, even though the engine code is applied, the same phenomenon occurs.
  • Hi,

    I've encountered the same problem with the Stereo Layer Component. If you are building the engine from the Oculus fork I have a few commits to address this in my fork of the engine here.

    There are several different problems going on here, but the core cause I found to be the `PokeAHole` material Oculus is using to simulate depth on Quest.