Blender Git Commit Log
Git Commits -> Revision cb12fb7
May 15, 2021, 18:36 (GMT) |
XR Controller Support Step 1: Internal Abstractions for OpenXR Actions Adds internal API for creating and managing OpenXR actions at the GHOST and WM layers. Does not bring about any changes for users since XR action functionality is not yet exposed in the Python API (will be added in a subsequent patch). OpenXR actions are a means to communicate with XR input devices and can be used to retrieve button/pose states or apply haptic feedback. Actions are bound to device inputs via a semantic path binding (https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#semantic-path-interaction-profiles), which serves as an XR version of keymaps. Main features: - Abstraction of OpenXR action management functions to GHOST-XR, WM-XR APIs. - New "xr_session_start_pre" callback for creating actions at appropriate point in the XR session. - Creation of name-identifiable action sets/actions. - Binding of actions to controller inputs. - Acquisition of controller button states. - Acquisition of controller poses. - Application of controller haptic feedback. - Carefully designed error handling and useful error reporting (e.g. action set/action name included in error message). Reviewed By: Julian Eisel Differential Revision: https://developer.blender.org/D10942 |
Commit Details:
Full Hash: cb12fb78cad4be5fa18edf0de1f8891cd97a9bed
Parent Commit: 3e6609a
Lines Changed: +2223, -24
4 Added Paths:
/intern/ghost/intern/GHOST_Util.h (+45, -0) (View)
/intern/ghost/intern/GHOST_XrAction.cpp (+477, -0) (View)
/intern/ghost/intern/GHOST_XrAction.h (+145, -0) (View)
/source/blender/windowmanager/xr/intern/wm_xr_actions.c (+480, -0) (View)
/intern/ghost/intern/GHOST_XrAction.cpp (+477, -0) (View)
/intern/ghost/intern/GHOST_XrAction.h (+145, -0) (View)
/source/blender/windowmanager/xr/intern/wm_xr_actions.c (+480, -0) (View)
21 Modified Paths:
/intern/ghost/CMakeLists.txt (+3, -0) (Diff)
/intern/ghost/GHOST_C-api.h (+104, -1) (Diff)
/intern/ghost/GHOST_IXrContext.h (+6, -0) (Diff)
/intern/ghost/GHOST_Types.h (+54, -1) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+143, -1) (Diff)
/intern/ghost/intern/GHOST_XrContext.cpp (+13, -2) (Diff)
/intern/ghost/intern/GHOST_XrContext.h (+5, -0) (Diff)
/intern/ghost/intern/GHOST_XrException.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_XRSession.cpp (+346, -15) (Diff)
/intern/ghost/intern/GHOST_XrSession.h (+37, -0) (Diff)
/intern/ghost/intern/GHOST_XR_intern.h (+24, -0) (Diff)
/source/blender/blenkernel/BKE_callbacks.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_xr_types.h (+15, -0) (Diff)
/source/blender/python/intern/bpy_app_handlers.c (+1, -0) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+1, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+74, -2) (Diff)
/source/blender/windowmanager/WM_types.h (+19, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr.c (+5, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_draw.c (+6, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_intern.h (+68, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_session.c (+148, -0) (Diff)
/intern/ghost/GHOST_C-api.h (+104, -1) (Diff)
/intern/ghost/GHOST_IXrContext.h (+6, -0) (Diff)
/intern/ghost/GHOST_Types.h (+54, -1) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+143, -1) (Diff)
/intern/ghost/intern/GHOST_XrContext.cpp (+13, -2) (Diff)
/intern/ghost/intern/GHOST_XrContext.h (+5, -0) (Diff)
/intern/ghost/intern/GHOST_XrException.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_XRSession.cpp (+346, -15) (Diff)
/intern/ghost/intern/GHOST_XrSession.h (+37, -0) (Diff)
/intern/ghost/intern/GHOST_XR_intern.h (+24, -0) (Diff)
/source/blender/blenkernel/BKE_callbacks.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_xr_types.h (+15, -0) (Diff)
/source/blender/python/intern/bpy_app_handlers.c (+1, -0) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+1, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+74, -2) (Diff)
/source/blender/windowmanager/WM_types.h (+19, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr.c (+5, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_draw.c (+6, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_intern.h (+68, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_session.c (+148, -0) (Diff)