Skip to content

Conversation

@cre8ivepark
Copy link
Contributor

@cre8ivepark cre8ivepark commented Jul 21, 2021

Overview

Based on the feedback, adding re-center functionality to MRTK Examples Hub.

  • Added ReorientContent() to MixedRealitySceneContent.cs
  • Updated ToggleFeaturesPanelExamplesHubStore.prefab for Examples Hub to include reorient functionality.
    • Re-Center button added
    • ReorientContent.cs added which calls MixedRealitySceneContent.ReorientContent()

How to test

Run MRTKExamplesHub scene. Use the 'Re-Center' button on the floating menu to test reorientation.

2021-07-20 20_54_00-Unity 2018 4 35f1 -  PREVIEW PACKAGES IN USE  - MRTKExamplesHub unity - MixedRea

Changes

…leFeaturesPanel for Examples Hub to include reorient functionality.
@cre8ivepark
Copy link
Contributor Author

Need help: Currently, it does not give content proper z offset from the user since it uses camera position.

@cre8ivepark cre8ivepark requested a review from keveleigh July 21, 2021 21:42
@keveleigh keveleigh requested a review from RogPodge July 22, 2021 15:31
@cre8ivepark cre8ivepark marked this pull request as ready for review August 12, 2021 19:48
@cre8ivepark
Copy link
Contributor Author

@RogPodge
Currently, when the Re-Center button is pressed, it becomes like this (too close to the user)
2021-08-12 12_46_55-Window

Wanted to maintain proper z-position as well. Something like this:
2021-08-12 12_47_03-Window

@cre8ivepark
Copy link
Contributor Author

It works well! I just tested with HandInteractionExample scene with Align with Head Pose option and it works well even after Hub Menu was reoriented. Thanks @RogPodge !

…t with (0,0,0) position and set Alignment Type 'Align with head pose'
@cre8ivepark
Copy link
Contributor Author

WORK-IN-PROGRESS

Updating example scenes to have proper MixedRealitySceneContent object with (0,0,0) position and set Alignment Type 'Align with head pose'

@cre8ivepark
Copy link
Contributor Author

@RogPodge Somehow, reorientation does not work in the device. Not sure if there is any non-device specific code for reorientation?

@david-c-kline
Copy link

@RogPodge, can you sync with @cre8ivepark and see if you can push it over the finish line? Thx!

@RogPodge RogPodge changed the base branch from main to prerelease/2.8.0 May 16, 2022 22:53
@RogPodge
Copy link
Contributor

FInally vetted it all and it looks good, will merge as soon as it passes CI

@RogPodge
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@RogPodge
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@RogPodge RogPodge merged commit 1b157fb into microsoft:prerelease/2.8.0 May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to recenter to user in Examples Hub

3 participants