Class MSFTSpatialGraphBridge
- java.lang.Object
-
- org.lwjgl.openxr.MSFTSpatialGraphBridge
-
public class MSFTSpatialGraphBridge extends java.lang.ObjectThe MSFT_spatial_graph_bridge extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAMEThe extension name.static intXR_MSFT_spatial_graph_bridge_SPEC_VERSIONThe extension specification version.static intXR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT
XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFTXrSpatialGraphNodeTypeMSFT - The type of spatial graph node.static intXR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFTExtendsXrStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space)Unsafe version of:CreateSpatialGraphNodeSpaceMSFTstatic intxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, org.lwjgl.PointerBuffer space)Create anXrSpacefrom a spatial graph node.
-
-
-
Field Detail
-
XR_MSFT_spatial_graph_bridge_SPEC_VERSION
The extension specification version.
-
XR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME
The extension name.
-
XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT
ExtendsXrStructureType.
-
XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT, XR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT
XrSpatialGraphNodeTypeMSFT - The type of spatial graph node.Description
There are two types of spatial graph nodes: static and dynamic.
Static spatial nodes track the pose of a fixed location in the world relative to reference spaces. The tracking of static nodes may slowly adjust the pose over time for better accuracy but the pose is relatively stable in the short term, such as between rendering frames. For example, a QR code tracking library can use a static node to represent the location of the tracked QR code. Static spatial nodes are represented by
SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT.Dynamic spatial nodes track the pose of a physical object that moves continuously relative to reference spaces. The pose of dynamic spatial nodes can be very different within the duration of a rendering frame. It is important for the application to use the correct timestamp to query the space location using
LocateSpace. For example, a color camera mounted in front of a HMD is also tracked by the HMD so a web camera library can use a dynamic node to represent the camera location. Dynamic spatial nodes are represented bySPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT.See Also
-
-
Method Detail
-
nxrCreateSpatialGraphNodeSpaceMSFT
public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space)
Unsafe version of:CreateSpatialGraphNodeSpaceMSFT
-
xrCreateSpatialGraphNodeSpaceMSFT
public static int xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, org.lwjgl.PointerBuffer space)
Create anXrSpacefrom a spatial graph node.C Specification
The
CreateSpatialGraphNodeSpaceMSFTfunction creates anXrSpacehandle for a given spatial graph node type and ID.XrResult xrCreateSpatialGraphNodeSpaceMSFT( XrSession session, const XrSpatialGraphNodeSpaceCreateInfoMSFT* createInfo, XrSpace* space);Valid Usage (Implicit)
- The
XR_MSFT_spatial_graph_bridgeextension must be enabled prior to callingCreateSpatialGraphNodeSpaceMSFT sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrSpatialGraphNodeSpaceCreateInfoMSFTstructurespacemust be a pointer to anXrSpacehandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSessionwhich will use the created space.createInfo- anXrSpatialGraphNodeSpaceCreateInfoMSFTspecifying the space to be created.space- the returnedXrSpacehandle for the given spatial node ID.
- The
-
-