安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
草案
此页面不完整。
A
WebXR 设备 API
XRFrame
object is passed into the
requestAnimationFrame()
callback function and provides access to the information needed in order to render a single frame of animation for an
XRSession
describing a VR or AR sccene.
Events which communicate the tracking state of objects also provide an
XRFrame
reference as part of their structure.
In addition to providing a reference to the
XRSession
for which this frame is to be rendered, the
getViewerPose()
method is provided to obtain the
XRViewerPose
describing the viewer's position and orientation in space, and
getPose()
can be used to create an
XRPose
describing the relative position of one
XRSpace
relative to another.
session
只读
XRSession
that for which this
XRFrame
describes the tracking details for all objects. The information about a specific object can be obtained by calling one of the methods on the object.
getPose()
XRPose
object representing the spatial relationship between the two specified
XRSpace
对象。
getViewerPose()
XRViewerPose
describing the viewer's position and orientation in a given
XRReferenceSpace
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRFrame' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
XRFrame
|
Chrome 79 | Edge 79 | Firefox 不支持 No | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 79 | Firefox Android 不支持 No | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 11.2 |
getPose()
|
Chrome 79 | Edge 79 | Firefox 不支持 No | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 79 | Firefox Android 不支持 No | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 11.2 |
getViewerPose()
|
Chrome 79 | Edge 79 | Firefox 不支持 No | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 79 | Firefox Android 不支持 No | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 11.2 |
session
|
Chrome 79 | Edge 79 | Firefox 不支持 No | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 79 | Firefox Android 不支持 No | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 11.2 |
完整支持
不支持
实验。期望将来行为有所改变。
XRFrame
Navigator.xr
WebGLRenderingContext.makeXRCompatible()
XR
XRBoundedReferenceSpace
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourcesChangeEvent
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRRenderState
XRRigidTransform
XRSession
XRSessionEvent
XRSpace
XRView
XRViewerPose
XRViewport
XRWebGLLayer