ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.14k stars 1.28k forks source link

The depth test between overlays fails in some cases (v2.5.1) #1830

Closed sergioprete closed 6 months ago

sergioprete commented 6 months ago

bug_overlay_depthtest_fig1 fig.1- there are two overlays: the blue overlay is located at 50cm from the eyes like a monitor, the red overlay is located at 45cm from the eyes is smaller and is positioned on the corner; the eyes are positioned orthogonally in the center of the blue overlay. In this case the depth test fails: the red overlay is not visible or if the overlays are transparent it appears behind the blue one, even if it is geometrically in front bug_overlay_depthtest_fig2 fig.2: same setup as fig.1, but the eyes are directed towards the red overlay. Also in this case the depth test fails bug_overlay_depthtest_fig3 fig.3: same setups, the eyes move, aligning with the red overlay. The depth test works correctly and showing the red overlay

sergioprete commented 6 months ago

RESOLVED I just now saw VROverlay::SetOverlaySortOrder inside the library (PS: the documentation on the wiki is very very incomplete)