diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-20 10:02:01 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-20 10:02:01 +0200 |
commit | a700b2a4a219bccd4d4326daab35d89d386d0ceb (patch) | |
tree | 1bceb544ede60f996bc05c79e965be311467b94d /doc | |
parent | 7999b4bb8ac8009f66a380472d8cd0c58ca1aa5a (diff) | |
parent | a8c5117777184535234558591a84a3aa86471977 (diff) | |
download | redot-engine-a700b2a4a219bccd4d4326daab35d89d386d0ceb.tar.gz |
Merge pull request #95153 from BastiaanOlij/improve_hand_tracking_settings
Change hand tracking project settings and finetune `show_when_tracked`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ProjectSettings.xml | 15 | ||||
-rw-r--r-- | doc/classes/XRHandTracker.xml | 5 |
2 files changed, 16 insertions, 4 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 37d9995887..34c41195af 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -2951,10 +2951,19 @@ Specify whether to enable eye tracking for this project. Depending on the platform, additional export configuration may be needed. </member> <member name="xr/openxr/extensions/hand_interaction_profile" type="bool" setter="" getter="" default="false"> - If true the hand interaction profile extension will be activated if supported by the platform. + If [code]true[/code] the hand interaction profile extension will be activated if supported by the platform. </member> - <member name="xr/openxr/extensions/hand_tracking" type="bool" setter="" getter="" default="true"> - If true we enable the hand tracking extension if available. + <member name="xr/openxr/extensions/hand_tracking" type="bool" setter="" getter="" default="false"> + If [code]true[/code], the hand tracking extension is enabled if available. + [b]Note:[/b] By default hand tracking will only work for data sources chosen by the XR runtime. For SteamVR this is the controller inferred data source, for most other runtimes this is the unobstructed data source. There is no way to query this. If a runtime supports the OpenXR data source extension you can use the [member xr/openxr/extensions/hand_tracking_controller_data_source] and/or [member xr/openxr/extensions/hand_tracking_unobstructed_data_source] to indicate you wish to enable these data sources. If neither is selected the data source extension is not enabled and the XR runtimes default behavior persists. + </member> + <member name="xr/openxr/extensions/hand_tracking_controller_data_source" type="bool" setter="" getter="" default="false"> + If [code]true[/code], support for the controller inferred data source is requested. If supported, you will receive hand tracking data even if the user has a controller in hand, with finger positions automatically inferred from controller input and/or sensors. + [b]Node:[/b] This requires the OpenXR data source extension and controller inferred handtracking to be supported by the XR runtime. If not supported this setting will be ignored. [member xr/openxr/extensions/hand_tracking] must be enabled for this setting to be used. + </member> + <member name="xr/openxr/extensions/hand_tracking_unobstructed_data_source" type="bool" setter="" getter="" default="false"> + If [code]true[/code], support for the unobstructed data source is requested. If supported, you will receive hand tracking data based on the actual finger positions of the user often determined by optical tracking. + [b]Node:[/b] This requires the OpenXR data source extension and unobstructed handtracking to be supported by the XR runtime. If not supported this setting will be ignored. [member xr/openxr/extensions/hand_tracking] must be enabled for this setting to be used. </member> <member name="xr/openxr/form_factor" type="int" setter="" getter="" default=""0""> Specify whether OpenXR should be configured for an HMD or a hand held device. diff --git a/doc/classes/XRHandTracker.xml b/doc/classes/XRHandTracker.xml index 636af6625b..79ea237480 100644 --- a/doc/classes/XRHandTracker.xml +++ b/doc/classes/XRHandTracker.xml @@ -107,7 +107,10 @@ <constant name="HAND_TRACKING_SOURCE_CONTROLLER" value="2" enum="HandTrackingSource"> The source of hand tracking data is a controller, meaning that joint positions are inferred from controller inputs. </constant> - <constant name="HAND_TRACKING_SOURCE_MAX" value="3" enum="HandTrackingSource"> + <constant name="HAND_TRACKING_SOURCE_NOT_TRACKED" value="3" enum="HandTrackingSource"> + No hand tracking data is tracked, this either means the hand is obscured, the controller is turned off, or tracking is not supported for the current input type. + </constant> + <constant name="HAND_TRACKING_SOURCE_MAX" value="4" enum="HandTrackingSource"> Represents the size of the [enum HandTrackingSource] enum. </constant> <constant name="HAND_JOINT_PALM" value="0" enum="HandJoint"> |