how to get the HMD model

how to get the HMD model

wenyueyang08
Contributor Contributor
925 Views
5 Replies
Message 1 of 6

how to get the HMD model

wenyueyang08
Contributor
Contributor

hi,

how can I get back the name of the currently connected HMD's model from APIs? eg. 'varjo xr-3' or 'htc vive'

 

cheers,

 

0 Likes
Accepted solutions (3)
926 Views
5 Replies
Replies (5)
Message 2 of 6

__daniel.lincoln__
Alumni
Alumni
Accepted solution
Hello,

When View, Display mode is set to OpenXR, these should work.
print(vrHMDService.getActiveOpenXRRuntimeName())
print(vrHMDService.getActiveOpenXRSystemName())
0 Likes
Message 3 of 6

wenyueyang08
Contributor
Contributor

thanks for the reply. 

how to get the view>display>openXR? I only can see openVR in the list.

also it shows 'vrKernelServices.vrHMDService' object has no attribute 'getActiveOpenXRRuntimeName' or '

getActiveOpenXRSystemName()' 

is there any plugin or additional module need to be installed to get them work?

0 Likes
Message 4 of 6

__daniel.lincoln__
Alumni
Alumni
Accepted solution

Ok, for an XR-3, there is an 'OpenXR' toggle in the System tab of the Varjo Base software that needs to be enabled.

For Vive, it may depend on which model it is.

0 Likes
Message 5 of 6

Christian_Garimberti
Advisor
Advisor
Accepted solution

Hi, note then OpenXR in VRED is introduced in 2023.4 version. So you need at least that version.

Best

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 6 of 6

wenyueyang08
Contributor
Contributor

thanks! works in the latest version!

0 Likes