Skip to main content
Inspiring
February 2, 2017

[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
This topic has been closed for replies.

6 replies

motorsepAuthor
Inspiring
February 4, 2017


I've been informed the information you need is found here:

https://developer3.oculus.com/documentation/game-engines/latest/concepts/unreal-overlay/

Is this the setting you are looking for(?):  It
should be called LeftTexture in Cubemap Overlays Properties.




That is for stereo cubemap (left eye). That's not it.
February 4, 2017
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."

motorsepAuthor
Inspiring
February 4, 2017
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 :(
motorsepAuthor
Inspiring
March 14, 2017
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.
motorsepAuthor
Inspiring
March 14, 2017


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 :/
motorsepAuthor
Inspiring
March 14, 2017


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!