Commit Graph

18 Commits

Author SHA1 Message Date
e8da6131fd License headers: use SPDX-FileCopyrightText for all addons
Move copyright text to SPDX-FileCopyrightText or set to the
Blender Foundation so "make check_licenses" now runs without warnings.
2023-06-15 16:54:05 +10:00
ad26f1f421 VR Scene Inspection: I18n: enable translation of UI messages
Most UI messages are extracted automatically, but some more complex
ones need to be manually.

Pull Request #104432
2023-02-27 08:39:51 +01:00
fe59d382b4 Cleanup: trailing space 2023-01-31 15:47:58 +11:00
5ba2c7517e Add missing import gpu in Scene inspector. 2022-12-19 14:16:09 +01:00
ec558f2a91 VR Scene Inspection: replace deprecated bgl module
Part of T80730
2022-07-28 12:29:39 -03:00
016430de4b Cleanup: remove <pep8 compliant> comment
This is no longer necessary, see: T98554.
2022-06-03 11:50:32 +10:00
478f0466d5 VR: Add object extras, object types visibility session options
See D14220.
2022-04-30 16:29:22 +09:00
5aa25f6a3f VR: Add "Camera Landmark from Session" operator
Creates a new camera and "Custom Object"-type landmark from the VR
headset pose.

In contrast to the existing "Landmark from Session" operator that only
saves the headset rotation around the global z-axis, this preserves the
exact rotation of the headset by assigning it to the newly-created
camera (although the landmark itself still only inherits the z-rotation
component).
2022-03-25 13:22:50 +09:00
777653f7d6 VR: Fix camera rotation when added from landmark 2022-03-15 19:59:41 +09:00
b12dd385eb Cleanup: trailing space 2022-03-10 13:20:20 +11:00
b0274e50da VR: Add action bindings for Vive Focus 3 controller
Although the HTC Vive Focus 3 controller extension is currently not
supported by any OpenXR runtimes (save for the dedicated Focus 3
runtime in developer early-access), the bindings are still useful to
have for the future.
2022-02-18 17:08:53 +09:00
4803bc04f3 VR: Update action paths based on API changes
XR actions API was changed in rB6a8709ba136e.
2022-02-17 16:00:19 +09:00
f7876b71cd File headers: use SPDX license identifiers
Some files needed to be changed manually.
2022-02-11 16:34:06 +11:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
c60fef3817 Fix T93509: Unintended navigation on Valve Index
The input bindings for "grab" navigation on the Valve Index controllers
could previously trigger the action even when the user did not intend
to do so (i.e. their hand was not actively gripping the sensor). This
was resolved by changing the bindings from "/input/squeeze/value" to
"/input/squeeze/force" and increasing the input threshold from 0.3 to
0.5.

Thanks to sybren for testing.
2021-12-07 20:54:20 +09:00
1d91e8c12a Cleanup: trailing space & tabs to spaces 2021-12-01 10:43:38 +11:00
7dec6ee9d2 Fix UI message. 2021-11-01 17:41:14 +01:00
823910c50d VR: Default Actions, Controller Visualization
This updates the VR Scene Inspection add-on with functionality for
loading and using default controller actions, including controller
poses and haptics, and visualizing VR controllers both in-headset and
in the regular 3D viewport.

In other words, users can finally view their VR controllers and use
them to navigate their scene in VR.

Controller actions (enabled by default) are available as an option in
the "VR Session" panel. For controller bindings that require OpenXR
extensions (Reverb G2, Vive Cosmos, Huawei), there is a new
"Action Maps" panel where users can toggle these bindings. Bindings
that require extensions are disabled by default since not all OpenXR
runtimes may support them, which will lead to an error during action
creation at session start.

There is also an option in the "Action Maps" panel to use a
gamepad (Xbox Controller) instead of motion controllers for VR
actions/viewport navigation.

In addition to default actions, this update adds new options for VR
controller visualization. For in-headset (VR) visualization, controller
visibility as well as style (dark/light, ray/no ray) can be set via the
"View" panel. For visualization in the regular 3D viewport, there is a
new option in the "Viewport Feedback" panel to draw controllers as
gizmos, similar to the existing option for the VR camera (headset).

Finally, this update also changes the VR Landmark "Custom Camera" type
to "Custom Object", so users can specify any object (not just cameras)
as a base pose reference, and adds a base scale option for custom
object and custom pose-type landmarks.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D11271
2021-10-26 13:45:16 +09:00