1

对于 WebVR,我发现:vrDisplay.requestPresent ([{source: canvas, attributes: {highRefreshRate: true}}]);

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

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

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

4

1 回答 1

0

AFAIK 尚未指定注视点和高刷新率功能。

但是,如果您愿意进行功能检测和处理故障,除了标准字符串之外,以下是 Oculus 浏览器可以识别的字符串local-floor

  • 注视点:no-fixed-foveation, low-fixed-foveation-level, medium-fixed-foveation-level,high-fixed-foveation-level
  • 刷新率:low-refresh-rate,high-refresh-rate
  • 色差校正:ca-correction

例如:

button.onclick = async () => {
  let session = await navigator.xr.requestSession('immersive-vr', {
    requiredFeatures: ['high-fixed-foveation-level', 'low-refresh-rate']
  });
  ...
};
于 2020-04-29T01:17:54.803 回答