mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
XR: Add Vive Tracker interaction profile extension
This PR enables the OpenXR Vive Tracker interaction profile[1], so that Vive Trackers can be accessed through the Blender Python API. It just adds `XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME` to the list of tried-to-enable extensions. I grouped it after the other HTC interaction profiles. This allows add-ons to use Vive Trackers in their code, but requires no further modifications to the C++ module. I will be using it in Tracking Toolkit[2] for native Blender XR integration, but it opens up feature possibilities for many projects that use the XR bpy PY API (eg. scene inspector). [1]: https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#XR_HTCX_vive_tracker_interaction [2]: https://github.com/ethanporcaro/tracking-toolkit Pull Request: https://projects.blender.org/blender/blender/pulls/161513
This commit is contained in:
parent
a92b33a569
commit
b01e7324be
1 changed files with 1 additions and 0 deletions
|
|
@ -462,6 +462,7 @@ void GHOST_XrContext::getExtensionsToEnable(
|
|||
#ifdef XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME
|
||||
try_ext.push_back(XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME);
|
||||
#endif
|
||||
try_ext.push_back(XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME);
|
||||
try_ext.push_back(XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME);
|
||||
|
||||
/* Controller model extension. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue