Skip to content

Support scenarios that do not use OVRCameraRig #5

@camnewnham

Description

@camnewnham

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 MRUK and OVRManager are in scene and appropriately configured.
  • Create a class a class that extends OVRCameraRig
  • Override unity functions (Start, Update etc...) with blank functions
  • Use reflection (in Awake) to set the private value of trackingSpace to 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 OVRCameraRig if unspecified)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions