MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

[MRTK3] world locked rendering or tracking broken on app resume

Open pajama opened this issue 3 years ago • 8 comments

Describe the bug

App runs fine on fresh launch, but after launching the HL2 home menu then resuming the app, it seems head/space tracking is broken.

To reproduce

  1. launch Simple MRTK3 app with a canvas being positioned from a RadialView solver. 2.Launch the home menu,
  2. re enter the app, the canvas will now be fixed to the users view.

Your setup (please complete the following information)

  • Unity 2020.3.38f1
  • MRTK 3.preview11

Target platform (please complete the following information)

  • HoloLens 2

Additional context

I'm using URP I'm using the default MRTK XR Rig, however I get this warning in my logs Camera "Main Camera" does not use a AR Pose Driver or a Tracked Pose Driver, so its transform will not be updated by an XR device. In order for this to be updated, please add either an AR Pose Driver or a Tracked Pose Driver.

pajama avatar Oct 13 '22 20:10 pajama

I was able to fix the issue by

  1. enabling Run In Background
  2. adding a tracked pose driver to the camera

I'm not sure which of those steps were the solution.

pajama avatar Oct 13 '22 21:10 pajama

reopening in case this is something that should still be fixed mrtk side

pajama avatar Oct 13 '22 21:10 pajama

adding a tracked pose driver to the camera

@pajama By this, do you mean replacing the TrackedPoseDriver (Input System) with the non-Action-based TrackedPoseDriver?

i.e., doing this?

image

Zee2 avatar Oct 13 '22 23:10 Zee2

@pajama Just pinging here again :)

Zee2 avatar Oct 18 '22 01:10 Zee2

adding a tracked pose driver to the camera

@pajama By this, do you mean replacing the TrackedPoseDriver (Input System) with the non-Action-based TrackedPoseDriver?

i.e., doing this?

image

I added the non action based one but did not remove the input system version.

pajama avatar Oct 18 '22 05:10 pajama

Interesting...thanks for the confirmation on the Tracked Pose Driver. Can you please report which version if the Input System package you're using?

keveleigh avatar Oct 19 '22 17:10 keveleigh

I was able to fix the issue by

  1. enabling Run In Background
  2. adding a tracked pose driver to the camera

I'm not sure which of those steps were the solution.

Both of these are actually potential fixes to this issue! Though it should have been fixed by a specific release of the Input System...I think 1.4.0.

keveleigh avatar Oct 19 '22 18:10 keveleigh

Adding @Clandguth here to repro the errors on app resume.

Zee2 avatar Dec 06 '22 19:12 Zee2

@srinjoym can you try to reproduce

AMollis avatar Mar 03 '23 23:03 AMollis

Unable to reproduce on the MRTK Dev Template project with Unity 2020.3.44 and Input System 1.4.4. Looks like this is fixed now with the input system package

srinjoym avatar Mar 29 '23 17:03 srinjoym