Hello everyone.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Options
How to identify if a hologram is in user gaze view in DirectX UWP C# Hololens app?
Akash
✭
I am rendering the scene with some holograms similar to spinning cube renderer. I need to know if a user wearing hololens is looking at them. Most of the suggestions are for Unity. I am using DirectX rendering in C#. Any suggestions?
Tagged:
0
Best Answer
-
OptionsAkash ✭
Found the answer.
Thanks to: https://forums.hololens.com/discussion/6785/understand-when-a-user-clicked-gaze-on-particular-object-in-directx-newbieYou need to manually use raycast to get the intersection information. I had to dig up further to get possible raycast libraries to do so. Best one is to use SharpDX.BoundingBox and SharpDX.Ray.
0
Answers
Found the answer.
Thanks to: https://forums.hololens.com/discussion/6785/understand-when-a-user-clicked-gaze-on-particular-object-in-directx-newbie
You need to manually use raycast to get the intersection information. I had to dig up further to get possible raycast libraries to do so. Best one is to use SharpDX.BoundingBox and SharpDX.Ray.