microsoft / MixedRealityDesignLabs_Unity

Mixed Reality Design Labs share experimental samples, explorations and learning from Windows Mixed Reality Design group. If you are looking for official toolkit, please use Mixed Reality Toolkit
MIT License
408 stars 110 forks source link

AppBar always renders -2.9 m behind the hololens #92

Closed ideasdeployed closed 6 years ago

ideasdeployed commented 6 years ago

I have a prefab that I instantiate via code, the prefab has the following scripts, a Compound Button, Bounding Box Target with a Box Collider. Everytime time it renders, the app bar is always behind me.

In the Unity I can see it and when I try to move it forward via the inspector it snaps back to its position.

Ive been stuck on this for weeks of and on, any help would be appreciated.

Env: Win10, Unity 2017.1.0p5

Thanks in advance

paseb commented 6 years ago

Hi @mhoward2467,

Can you provide code sample for how you're instantiating the prefab? This is most likely and initialization issue with app bar post spawn.

thanks, -pat

ideasdeployed commented 6 years ago

@paseb Hello, here's the code and below is the actual values after the scaleClonePrefab get instantiated:

ScaleClonePrefab = Instantiate(UIContaindScaleClonePrefab, new Vector3(selectedUIContainerScript.transform.position.x, selectedUIContainerScript.transform.position.y, selectedUIContainerScript.transform.position.z), Quaternion.LookRotation(cameraForward, Vector3.up)); image

Thanks for taking time to look into this... And here's the BoundingBoxShell settings image

cre8ivepark commented 6 years ago

@mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785

ideasdeployed commented 6 years ago

Ok that's awesome, I will work n that this evening and let you know how it goes.

Thanks

Sent from my Windows 10 phone


From: Yoon Park notifications@github.com Sent: Saturday, March 3, 2018 10:34:36 AM To: Microsoft/MRDesignLabs_Unity Cc: mhoward2467; Mention Subject: Re: [Microsoft/MRDesignLabs_Unity] AppBar always renders -2.9 m behind the hololens (#92)

@mhoward2467https://github.com/mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1785

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MRDesignLabs_Unity/issues/92#issuecomment-370169532, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACQwTB1JYqQjwiWdQNRXNlDF-6SYJJChks5tauI8gaJpZM4SGR6W.

ideasdeployed commented 6 years ago

Do you have a sample of attaching a bounding box and app bar to a newly instantiated object via code?

Sent from my Windows 10 phone


From: Yoon Park notifications@github.com Sent: Saturday, March 3, 2018 10:34:36 AM To: Microsoft/MRDesignLabs_Unity Cc: mhoward2467; Mention Subject: Re: [Microsoft/MRDesignLabs_Unity] AppBar always renders -2.9 m behind the hololens (#92)

@mhoward2467https://github.com/mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1785

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MRDesignLabs_Unity/issues/92#issuecomment-370169532, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACQwTB1JYqQjwiWdQNRXNlDF-6SYJJChks5tauI8gaJpZM4SGR6W.