engine icon indicating copy to clipboard operation
engine copied to clipboard

stereoscopic skybox

Open edmundspriede opened this issue 1 month ago • 4 comments

i was wondering if it is possible to use 2 left/right images for skybox environment

https://mint.m50.lv/aframe/

here is demo with aframe using 2 seperate views

would it be possibe with playcanvas engine?

edmundspriede avatar Dec 07 '25 15:12 edmundspriede

You could modify shader chunk for the skybox, providing a second texture to it, and then can use view_index (int uniform) to identify the eye being rendered.

Although, while this technique can provide good result when looking in one specific direction, it falls short when you rotate around. For best effect, you would want to provide a depth information for the scene, and render skybox with depth offset mesh. You would want something like this: https://playcanvas.com/project/985028/overview/projective-skybox

Maksims avatar Dec 08 '25 11:12 Maksims

can i see example in VR ? there is no VR button

edmundspriede avatar Dec 08 '25 11:12 edmundspriede

can i see example in VR ? there is no VR button

You can Fork it, and add necessary functionality.

Maksims avatar Dec 09 '25 10:12 Maksims

https://mint.m50.lv/aframe.html

all works here with rotation.

edmundspriede avatar Dec 09 '25 18:12 edmundspriede