如何在WebXR中设置highRefreshRate?

问题描述 投票:1回答:1

对于WebVR,我发现:vrDisplay.requestPresent([{源:canvas,属性:{highRefreshRate:true}}])]

仅适用于WebXR:requiredFeatures:[“ local-floor”]

对于必填功能:[“ highRefreshRate”]。我在Oculus Go中收到“请求的无法识别的功能:highRefreshRate”错误。我可以获得受支持的功能吗?

以及如何设置'foveationLevel:3'?

oculus webxr
1个回答
0
投票

尚未指定AFAIK的浮动和高刷新率功能。

但是,如果您愿意进行功能检测和处理故障,除了local-floor这样的标准字符串外,这是Oculus Browser还将识别的字符串。]

  • 焦点:no-fixed-foveationlow-fixed-foveation-levelmedium-fixed-foveation-levelhigh-fixed-foveation-level
  • 刷新率:low-refresh-ratehigh-refresh-rate
  • 色差校正:ca-correction
  • 例如:

button.onclick = async () => {
  let session = await navigator.xr.requestSession('immersive-vr', {
    requiredFeatures: ['high-fixed-foveation-level', 'low-refresh-rate']
  });
  ...
};
© www.soinside.com 2019 - 2024. All rights reserved.