[BUG] Frame: SetOverlaySortOrder ignored in favor of depth testing

未关闭
#1,039 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
47/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux
领域
desktop-dev

调研方向

The report names SteamVR 2.18.2 on SteamOS 0.5.6 and cites the overlay sort order contract in openvr.h; no SteamVR implementation files or tests are identified. Start by comparing overlay rendering behavior on the Frame with the documented ordering and the working OpenXR case. Done means overlay sort order is respected for overlays and controller models, and dashboard input behavior matches what is displayed.

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
Not sure if this is just on the Frame or on desktop as well, as I can only test on the Frame lately.

I have an overlay app that utilizes overlay sort order to display things like a watch and other HUD elements. It worked well on previous versions of SteamVR for years on, and it works correctly on OpenXR.

Eversince the Frame came out, I had issues with the watch clipping into the controller render model (drawn by SteamVR), and my overlays also clipping into each other despite their sort order being carefully managed.

The only exception seems to be the SteamVR Dashboard, which for some reason doesn't use depth testing and seems to be behind all other overlays, even if the "other overlay" has no sort order override. This is really confusing because the dashboard is blocking input to overlays that appear in front of it.

Expected behavior
As specified in openvr.h:

Sets the rendering sort order for the overlay. Overlays are rendered this order:
Overlays owned by the scene application
Overlays owned by some other application

Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same
sort order are rendered back to front base on distance from the HMD.

Subview overlays are always drawn immediately on top of their parent overlay, and the sort order is
only relative to their peer subviews for that overlay.

Sort order defaults to 0.

System Information (please complete the following information):

  • SteamOS version 0.5.6
  • SteamOS build 20261022.6153909
  • SteamVR version: 2.18.2

I don't think diagnostics / logs matter here but let me know if you need them.

主要语言
Shell
星标
1.2k
派生
58
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/SteamVR-for-Linux 的其他 Issue

查看 ValveSoftware/SteamVR-for-Linux 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。