对于画布我找到了: vrDisplay.requestPresent ({ WebVR : canvas,attributes:{highRefreshRate: true}});
仅限WebXR : requiredFeatures:"local-floor“
对于requiredFeatures:"highRefreshRate“。我在Oculus Go中得到“无法识别的功能请求: highRefreshRate”错误。我可以获得支持的功能吗?
以及如何设置'foveationLevel: 3'?
发布于 2020-04-29 09:17:55
AFAIK尚未指定Foveation和高刷新率功能。
但是,如果您愿意对故障进行特征检测和处理,则除了local-floor等标准字符串之外,Oculus浏览器还可以识别以下字符串
像差校正:ca-correction,
no-fixed-foveation:low-fixed-foveation-level,medium-fixed-foveation-level,high-refresh-rateno-fixed-foveation,low-fixed-foveation-level,medium-fixed-foveation-level,high-refresh-rateno-fixed-foveation:low-fixed-foveation-level,medium-fixed-foveation-level,high-refresh-rate举个例子:
button.onclick = async () => {
let session = await navigator.xr.requestSession('immersive-vr', {
requiredFeatures: ['high-fixed-foveation-level', 'low-refresh-rate']
});
...
};https://stackoverflow.com/questions/61291789
复制相似问题