Peter Kim
9dda65455b
XR Controller Support Step 4: Controller Drawing
...
Addresses T77127 (Controller Drawing).
Adds VR controller visualization and custom drawing via draw
handlers. Add-ons can draw to the XR surface (headset display) and
mirror window by adding a View3D draw handler of region type 'XR' and
draw type 'POST_VIEW'. Controller drawing and custom overlays can be
toggled individually as XR session options, which will be added in a
future update to the VR Scene Inspection add-on.
For the actual drawing, the OpenXR XR_MSFT_controller_model extension
is used to load a glTF model provided by the XR runtime. The model's
vertex data is then used to create a GPUBatch in the XR session
state. Finally, this batch is drawn via the XR surface draw handler
mentioned above.
For runtimes that do not support the controller model extension, a
a simple fallback shape (sphere) is drawn instead.
Reviewed By: Severin, fclem
Differential Revision: https://developer.blender.org/D10948
2021-10-12 16:18:05 +09:00
..
2021-09-22 15:54:34 +02:00
2021-08-26 12:36:58 +10:00
2021-08-26 12:36:58 +10:00
2020-10-08 13:23:30 +02:00
2021-08-26 12:36:58 +10:00
2021-07-15 16:12:36 +02:00
2021-09-23 15:00:45 +02:00
2021-06-26 21:50:48 +10:00
2021-06-24 15:59:34 +10:00
2021-09-03 12:42:18 +02:00
2021-08-04 15:54:54 +02:00
2021-08-20 14:34:43 +02:00
2021-08-20 14:34:43 +02:00
2020-11-06 12:32:54 +11:00
2021-06-24 15:59:34 +10:00
2021-09-24 11:31:23 +10:00
2020-10-08 16:11:38 +02:00
2021-08-04 19:18:34 +02:00
2021-06-15 09:34:58 +10:00
2021-09-24 11:31:23 +10:00
2021-03-23 18:34:46 +11:00
2021-09-12 19:51:16 +10:00
2021-10-03 18:54:52 -05:00
2021-09-24 07:44:22 +02:00
2020-08-07 09:50:34 +02:00
2021-07-04 00:43:40 +10:00
2021-07-20 22:58:14 +10:00
2021-06-22 10:54:50 -07:00
2021-06-26 21:50:48 +10:00
2021-07-05 15:54:57 +10:00
2021-09-10 16:48:30 +02:00
2021-09-10 16:48:30 +02:00
2021-09-13 10:37:50 -04:00
2021-06-28 15:46:08 +10:00
2021-09-26 19:43:12 +08:00
2021-10-06 14:54:05 +11:00
2021-09-26 19:43:12 +08:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-06-24 15:59:34 +10:00
2021-09-22 16:55:39 +02:00
2020-09-11 08:08:46 +02:00
2021-09-08 10:35:16 +02:00
2021-07-27 18:06:29 +10:00
2021-06-24 15:59:34 +10:00
2020-08-07 09:50:34 +02:00
2021-07-13 12:10:34 -04:00
2021-09-21 14:55:54 +02:00
2021-04-01 12:31:01 +02:00
2021-07-23 17:03:51 +10:00
2020-08-07 09:50:34 +02:00
2021-06-26 21:50:48 +10:00
2021-09-15 14:03:39 +08:00
2020-08-07 09:50:34 +02:00
2021-07-27 18:06:29 +10:00
2020-08-07 09:50:34 +02:00
2021-08-04 19:18:34 +02:00
2021-07-20 13:06:45 +08:00
2021-07-21 08:18:34 +02:00
2021-04-02 14:44:26 +02:00
2021-08-11 16:57:56 -06:00
2021-07-05 15:54:57 +10:00
2020-08-07 09:50:34 +02:00
2021-06-26 21:50:48 +10:00
2021-09-10 16:48:30 +02:00
2021-09-24 11:31:23 +10:00
2021-04-14 14:25:34 +02:00
2021-02-22 16:30:04 +01:00
2020-11-19 13:41:50 +01:00
2021-10-11 23:43:01 +01:00
2021-03-16 19:59:09 +01:00
2020-11-19 13:41:50 +01:00
2021-06-26 21:50:48 +10:00
2021-06-26 21:50:48 +10:00
2021-09-11 13:54:40 -05:00
2021-07-04 00:43:40 +10:00
2020-11-19 13:41:50 +01:00
2020-10-08 18:19:09 +02:00
2021-07-07 13:42:46 +10:00
2021-07-14 14:23:19 +02:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-07-23 17:03:51 +10:00
2021-09-21 14:55:54 +02:00
2021-09-29 17:48:35 +10:00
2021-10-12 16:18:05 +09:00
2020-11-19 13:41:50 +01:00
2021-10-09 08:41:07 +02:00
2020-08-07 09:50:34 +02:00
2021-06-24 15:59:34 +10:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-08-16 15:10:58 +02:00
2021-10-08 17:07:56 +11:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2021-07-19 11:24:24 +10:00
2021-10-01 16:29:38 +02:00
2021-09-29 14:34:01 +02:00
2021-09-23 15:00:45 +02:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-07-04 00:43:40 +10:00
2021-09-21 10:55:04 +02:00
2021-08-04 10:55:05 +02:00
2021-10-12 16:18:05 +09:00
2021-10-12 16:18:05 +09:00
2020-09-15 23:13:01 +05:30
2020-11-19 13:41:50 +01:00
2021-07-23 17:03:51 +10:00
2021-09-21 18:14:11 +10:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-10-12 16:18:05 +09:00