Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
motorsep's avatar
motorsep
Member
8 years ago

[Gear VR] How can I make cubemap Stereo Layer render behind everything in the scene ?

I'd like to use cubemap Stereo Layer as sky sphere / sky box. I recall there is a check box to make it render in front of the scene (as if depth test is disabled).

How can I make it render behind everything so I could use it as skybox ?

Thanks

6 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    From the above link isn't it just?:

    "By default, VR compositor layers are always displayed on top of all other objects in the scene. You may set compositor layers to respect depth positioning by enabling Supports Depth."

    not sure if it's going to give great performance though see the next paragraph:

    "Note that enabling Supports Depth may affect performance, so use it with caution and be sure to assess its impact."

  • Support depth is for several stereo layers to be sorted properly when they overlap (to my understanding anyway).

    I tried using world locked cubemap and it doesn't show the cubemap at all :(
  • Bump!

    Still can't get cubemap to render when using cubemap world locked Stereo Layer component (using same cubemap image I use for sky sphere).

    Also I'd like to know if it's possible to make it render behind level geometry, as if it's a skybox.


  • Hi,

    This is a bad idea (according to the team in charge of this code) because the stereo cubemap won't line up with 3D content when the user's head pose has any pitch or roll.



    Alright, let's skip that part then :) Why doesn't my cubemap render ?

    I made BP actor, added stereo layer component to it, set it to be world locked, chose my cubemap texture, dropped it to the level - and nothing happened :/


  • Our team isn't sure why your depth-enabled cubemap layer isn't rendering. It works in their tests. Can you compare your setup to our sample?



    Thanks, will do!