-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Related to #2
We've recently implemented the experimental QR detection from MRUK. It works very well and we're excited to public release! This functionality will make a huge difference to how our users can interact with the world.
This post is part request and part FYI for others.
Our app uses an OpenXR setup with a camera rig based on XROrigin. We found that the main thing stopping MRUK QR detection working out of the box was MRUK's OVRCameraRig _cameraRig reference along with OVRCameraRig.trackingSpace. Tracing it through QR detection, only the transforms were used and hence they need not be OVR specific objects.
The workaround for this:
- Ensure
MRUKandOVRManagerare in scene and appropriately configured. - Create a class a class that extends
OVRCameraRig - Override unity functions (
Start,Updateetc...) with blank functions - Use reflection (in
Awake) to set the private value oftrackingSpaceto an appropriate ancestor of the main camera (i.e. Camera Offset)
Shim class here.
The request:
- Allow the root transform and/or tracking space to be overridden in the editor (could default to
OVRCameraRigif unspecified)
bkevelham
Metadata
Metadata
Assignees
Labels
No labels