KitwareMedical / SlicerVirtualReality

A Slicer extension that enables user to interact with a Slicer scene using virtual reality.
Apache License 2.0
117 stars 58 forks source link

Option to access video feed from stero cameras (VIVE PRO) #66

Open lgroves6 opened 5 years ago

lgroves6 commented 5 years ago

Adam Rankin edit:

Access to camera (stereo camera treated as one image, horizontally side-by-side): https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h#L4892

1.0.16 https://github.com/ValveSoftware/openvr/blob/v1.0.16/headers/openvr.h#L4537

Camera interface https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h#L4007

1.0.16 https://github.com/ValveSoftware/openvr/blob/v1.0.16/headers/openvr.h#L3734

and most importantly, grabbing camera frames https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h#L4035

1.0.16 https://github.com/ValveSoftware/openvr/blob/v1.0.16/headers/openvr.h#L3762

cpinter commented 5 years ago

This will be awesome! Please check if the OpenVR version used by the SlicerVR master contains these functions. If not then we'll need to update (I already did not too long ago from 1.0.9 to 1.0.16 which is currently used by the extension)

jcfr commented 7 months ago

OpenVR

The 1.x version of openvr currently associated with the "OpenVR Backend" is 1.26.7^1, this means that the function calls described are available.

OpenXR

In the context of the "OpenXR backend", it does not look like there is an extension supporting this:

cc: @LucasGandel