Howto Read Proximity Sensor of mixed realtity HMD like HP Reverb G2

%3CLINGO-SUB%20id%3D%22lingo-sub-2744985%22%20slang%3D%22en-US%22%3EHowto%20Read%20Proximity%20Sensor%20of%20mixed%20realtity%20HMD%20like%20HP%20Reverb%20G2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2744985%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'm%20developing%20an%20OpenXR%20app%20with%20C%2B%2B%20on%20top%20of%20the%20Windows%20Mixed%20Reality%20OpenXR%20runtime.%20I%20need%20to%20directly%20access%20the%20proximity%20sensor%20in%20the%20headset.%20In%20general%20this%20should%20be%20somehow%20possible%20because%20I%20basically%20have%20it%20running%20when%20using%20SteamVR%20as%20OpenXR%20runtime%20and%20the%20Windows%20Mixed%20Reality%20Plugin.%20In%20this%20case%20I%20can%20create%20an%20input%20binding%20in%20SteamVR%20for%20a%20windows%20mixed%20realtiy%20HMD%20and%20map%20the%20proximity%20sensor%20to%20a%20button%20press.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20SteamVR%20Windows%20Mixed%20Realtiy%20plugin%20in%20steam%20is%20somehow%20able%20to%20get%20access%20to%20the%20proximity%20sensor.%20But%20I%20cannot%20find%20any%20information%20about%20how%20to%20access%20windows%20mixed%20reality%20inputs%20from%20c%2B%2B%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20imagine%20that%20there%20might%20be%20an%20undocumented%20OpenXR%20input%20action%20path%20like%20%2Fuser%2Fhead%2Fproximity%20or%20something.%20I%20also%20looked%20at%20C%3A%5CProgram%20Files%20(x86)%5CSteam%5Csteamapps%5Ccommon%5CMixedRealityVRDriver%5Cbin%5Cwin64%20and%20there%20seems%20to%20be%20a%20%3CSTRONG%3EMicrosoft.MixedReality.Input.dll%20%3C%2FSTRONG%3Ebut%20I%20could%20not%20find%20any%20information%20about%20this%20on%20Microsoft%20API%20docs.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20really%20like%20to%20not%20have%20to%20use%20SteamVR%20to%20access%20the%20proximity%20sensor%20as%20I'm%20writing%20an%20industrial%20application%20where%20requiring%20a%20steam%20account%20isn't%20an%20option.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20or%20tip%20would%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBR%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMarkus%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

I'm developing an OpenXR app with C++ on top of the Windows Mixed Reality OpenXR runtime. I need to directly access the proximity sensor in the headset. In general this should be somehow possible because I basically have it running when using SteamVR as OpenXR runtime and the Windows Mixed Reality Plugin. In this case I can create an input binding in SteamVR for a windows mixed realtiy HMD and map the proximity sensor to a button press.

 

So the SteamVR Windows Mixed Realtiy plugin in steam is somehow able to get access to the proximity sensor. But I cannot find any information about how to access windows mixed reality inputs from c++ code.

 

I could imagine that there might be an undocumented OpenXR input action path like /user/head/proximity or something. I also looked at C:\Program Files (x86)\Steam\steamapps\common\MixedRealityVRDriver\bin\win64 and there seems to be a Microsoft.MixedReality.Input.dll but I could not find any information about this on Microsoft API docs. 

 

I would really like to not have to use SteamVR to access the proximity sensor as I'm writing an industrial application where requiring a steam account isn't an option.

 

Any help or tip would be appreciated.

 

BR

 

Markus

0 Replies
www.000webhost.com