Page MenuHome

XR Actions [part 5]: Ref Space Improvements
ClosedPublic

Authored by Peter Kim (muxed-reality) on Apr 11 2021, 4:09 PM.

Details

Summary

Improves control over the XR reference space by using the stage ref
space (user-defined tracking bounds) instead of local ref space
(position at application launch), if available. Also adds an
"absolute tracking" session option to skip applying eye offsets that
are normally added for placing users exactly at landmarks.

By enabling absolute tracking, users can define the tracking origin
in a way that is not linked to the headset position. Instead, the
tracking values given by the XR runtime are left unadjusted and a
user can manually calibrate an "origin" landmark object to adjust to
their real world space.

Can be useful for applications that use external tracking systems
and those that primarily only need to use controllers and not the
headset (e.g. motion capture).

The absolute tracking option requires an update to the VR
Scene Inspection addon to be accessible by regular users.

Diff Detail

Repository
rB Blender
Branch
temp-xr-refspace-improvements (branched from master)
Build Status
Buildable 13991
Build 13991: arc lint + arc unit

Event Timeline

Peter Kim (muxed-reality) requested review of this revision.Apr 11 2021, 4:09 PM
Peter Kim (muxed-reality) created this revision.
Peter Kim (muxed-reality) retitled this revision from XR Actions [part 5] to XR Actions [part 5]: Ref Space Improvements.Apr 11 2021, 4:25 PM
Peter Kim (muxed-reality) changed the visibility from "Public (No Login Required)" to "All Users".
Peter Kim (muxed-reality) changed the visibility from "All Users" to "Public (No Login Required)".May 18 2021, 11:03 AM
Julian Eisel (Severin) added inline comments.
source/blender/makesrna/intern/rna_xr.c
67–72

Can use SET_FLAG_FROM_TEST().

93–98

SET_FLAG_FROM_TEST().

source/blender/windowmanager/xr/intern/wm_xr_session.c
209

Please commit this separately (can go in already).

This revision is now accepted and ready to land.Jul 22 2021, 5:55 PM

Use SET_FLAG_FROM_TEST(), fix merge conflict

Peter Kim (muxed-reality) marked 3 inline comments as done.Jul 23 2021, 7:50 AM
Peter Kim (muxed-reality) added inline comments.
source/blender/makesrna/intern/rna_xr.c
67–72

Using SET_FLAG_FROM_TEST().

93–98

Using SET_FLAG_FROM_TEST().

source/blender/windowmanager/xr/intern/wm_xr_session.c
209

Will commit separately.

This revision was automatically updated to reflect the committed changes.
Peter Kim (muxed-reality) marked 3 inline comments as done.