R2024x FD03: OpenXR Migration

In R2024x FD03, the migration to the OpenXR standard induces several infrastructural changes to the VR nomenclature and scripting in your experience.

For more information on the OpenXR standard, see https://www.khronos.org/openxr/.

To clarify and facilitate your workflow, R2024x FD03 introduces notable restructuring to some naming, scripts, properties, and JavaScript APIs. The Nomenclature Changes, Script Changes, and JavaScript API Main Changes sections describe these changes.

This page discusses:

See Also
Extended Reality Concepts
Creating XR Actors
Creating an XR Environment

Preliminary Recommendations for Using VR Devices

With the introduction of OpenXR, you now have the possibility to use a greater variety of XR devices. However, if you connect two different devices, Creative Experience favors the device selected in OpenXR Runtime.

Having a single OpenXR Runtime ensures a proper visualization of virtual reality in Creative Experience. If available, use the OpenXR Runtime switcher. For more information, see https://github.com/WaGi-Coding/OpenXR-Runtime-Switcher.

Ensure that you have at least one OpenXR Runtime installed. For practicality and optimal performance, use the corresponding OpenXR Runtime associated with your headset. For example:

  • For the HTC Vive headset series, ensure that SteamVR uses the OpenXR Runtime of SteamVR.
  • For the Meta Quest headset series, you do not require SteamVR. Use the Oculus OpenXR Runtime. Ensure that Oculus uses the OpenXR Runtime of Oculus.

Finally, ensure that you close any concurrent program that might interfere with your current OpenXR Runtime.

Nomenclature Changes

Most of the names for commands, scripts, or behaviors transition from Vive to XR to reflect the migration. In substance, this does not affect your VR workflow as it remains identical to what it was before the migration.

The Natural Language capacities associated with VR headsets and controllers remain identical.

Script Changes

XR controller actors receive changes to their Geometry property and a new Device ID property. For more information, see XR Controller Properties.

Script Change Description
Vive Services Script

The Vive Services Script attached to the Vive interaction areas becomes deprecated. The functions exposed with this script are now associated with the XRManager of the JavaScript API. These functions were:

  • controllerTransformToRayTransform
  • getPickedIntersectionFromController
  • getViveTrackerActors: this function becomes getXRDevices and requires you to differentiate if the actor is a controller or a tracker.
  • getViveTrackerActorToDeviceMapping: this function disappears and does not have any equivalent inside XRManager.

Note: From R2024x FD03, you can find The Refresh Main Viewer property of Vive Services Script in the Properties panel of XR headset actors (under XR).

Vive Transform Script

The Vive Transform Script attached to the Vive headset camera and Vive controller disappears. The script becomes deprecated. The transform feature is embedded in XR actors directly.

Vive Manipulator Script

The Vive Manipulator Script attached to the Vive controller becomes the XR Grab behavior.

This behavior is available only on XR controllers and provides you with additional properties to work with. For more information, see XR Grab Properties.

Vive Ray Script

The Vive Ray Script attached to the Vive controller becomes the XR Ray behavior.

This behavior is available only on XR controllers and provides you with additional properties to work with. For more information, see XR Ray Properties.

Vive Teleport Script

The Vive Teleport Script attached to the Vive controller becomes the XR Teleport behavior.

This behavior is available only on XR controllers and provides you with additional properties to work with. For more information, see XR Teleport Properties.

JavaScript API Main Changes

Previous Naming New Naming
ViveManager XRManager
ViveManager. EController XRManager. EDeviceIdentifier
ViveManager. ETracker
Note: Grouped with EDeviceIdentifier.
ViveManager. startViveViewer XRManager.startXRViewer
STU.ViveInteractionContextActor STU.XRInteractionArea
ViveManager.getConnectedViveTrackerDevicesName XRManager.getConnectedXRDevicesName
ViveServices.getViveTrackerActors XRManager.getXRDevices
ViveServices.getViveTrackerActorToDeviceMapping
Note: This script was deleted.
ViveServices.refreshMainViewer XRCameraActor.refreshMainViewer

For an exhaustive summary of all the JavaScript SDK changes induced by the OpenXR migration, see the JavaScript API Guide of Creative Experience.