Class WebXRRawCameraAccessSince
Hierarchy (View Summary)
- WebXRAbstractFeature
- WebXRRawCameraAccess
Constructors
constructor
-
new WebXRRawCameraAccess(
_xrSessionManager: WebXRSessionManager,
options?: IWebXRRawCameraAccessOptions,
): WebXRRawCameraAccessCreates a new instance of the feature
Parameters
- _xrSessionManager: WebXRSessionManager
the WebXRSessionManager
- options: IWebXRRawCameraAccessOptions = {}
options for the Feature
Returns WebXRRawCameraAccess
- _xrSessionManager: WebXRSessionManager
Properties
camera Intrinsics
ax: number;
ay: number;
gamma: number;
height: number;
u0: number;
v0: number;
viewportX: number;
viewportY: number;
width: number;
}[] = []
If needed, this array will contain the camera's intrinsics You can use this data to convert from camera space to screen space and vice versa
Optionaldepends On
The dependencies of this feature, if any
disable Auto Attach
Should auto-attach be disabled?
is Disposed
Is this feature disposed?
on Feature Attach Observable
Observers registered here will be executed when the feature is attached
on Feature Detach Observable
Observers registered here will be executed when the feature is detached
on Textures Updated Observable
An observable that will notify when the camera's textures are updated
Readonlyoptions
options for the Feature
textures Data
This is an array of camera views
Note that mostly the array will contain a single view
If you want to know the order of the views, use the viewIndex array
view Index
If needed, this array will contain the eye definition of each texture in texturesArray
Static ReadonlyName
The module's name
Static ReadonlyVersion
The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version
Accessors
attached
-
get attached(): boolean
Is this feature attached
Returns boolean
xr Native Feature Name
-
get xrNativeFeatureName(): string
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Returns string
-
set xrNativeFeatureName(name: string): void
The name of the native xr feature name, if applicable (like anchor, hit-test, or hand-tracking)
Parameters
- name: string
Returns void
Methods
attach
-
attach this feature
Parameters
Optionalforce: booleanshould attachment be forced (even when already attached)
Returns boolean
true if successful, false is failed or already attached
detach
-
detach this feature.
Returns boolean
true if successful, false if failed or already detached
dispose
-
Dispose this feature and all of the resources attached
Returns void
is Compatible
-
This function will be executed during before enabling the feature and can be used to not-allow enabling it. Note that at this point the session has NOT started, so this is purely checking if the browser supports it
Returns boolean
whether or not the feature is compatible in this environment
WebXR Feature for WebXR raw camera access 6.31.0
See
https://immersive-web.github.io/raw-camera-access/