Skip to content

Commit

Permalink
Add OpenXR hand tracking demo
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Oct 4, 2023
1 parent 0dfb54f commit 5bc34f8
Show file tree
Hide file tree
Showing 30 changed files with 589 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xr/openxr_hand_tracking_demo/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf
8 changes: 8 additions & 0 deletions xr/openxr_hand_tracking_demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Godot 4+ specific ignores
.godot/

# Ignore our Android build folder, should be installed by user if needed
android/

# Ignore our OpenXR loader add-on, should be installed by user if needed
addons/godotopenxr
27 changes: 27 additions & 0 deletions xr/openxr_hand_tracking_demo/assets/valve_hand_models/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c), Valve Corporation
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 changes: 5 additions & 0 deletions xr/openxr_hand_tracking_demo/assets/valve_hand_models/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The model files and textures in this folder are Copyright (c) Valve. All Rights Reserved.

They are made available under the terms of the attached LICENSE file.

Original files including blend and fbx versions can be found at: https://github.com/JoeLudwig/xrsandbox/tree/master/projects/xrsandbox/assets/models/valve_hand_models
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://bs5xn2f4c7i42"
path="res://.godot/imported/left_hand.glb-3b74577681ea43528a21481079416e20.scn"

[deps]

source_file="res://assets/valve_hand_models/left_hand.glb"
dest_files=["res://.godot/imported/left_hand.glb-3b74577681ea43528a21481079416e20.scn"]

[params]

nodes/root_type="Spatial"
nodes/root_name="HandModel"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=0
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
animation/import=true
animation/fps=15
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cxycwpn8gjea0"
path.s3tc="res://.godot/imported/left_hand_file2.png-b8bef016bdaeec0e01d5d8be8ff7e586.s3tc.ctex"
path.etc2="res://.godot/imported/left_hand_file2.png-b8bef016bdaeec0e01d5d8be8ff7e586.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
generator_parameters={}

[deps]

source_file="res://assets/valve_hand_models/left_hand_file2.png"
dest_files=["res://.godot/imported/left_hand_file2.png-b8bef016bdaeec0e01d5d8be8ff7e586.s3tc.ctex", "res://.godot/imported/left_hand_file2.png-b8bef016bdaeec0e01d5d8be8ff7e586.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/valve_hand_models/left_hand_file2.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cy7pa0dxaw768"
path.s3tc="res://.godot/imported/left_hand_file3.jpg-56e2392868a70843211420a34f12e9b6.s3tc.ctex"
path.etc2="res://.godot/imported/left_hand_file3.jpg-56e2392868a70843211420a34f12e9b6.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
generator_parameters={}

[deps]

source_file="res://assets/valve_hand_models/left_hand_file3.jpg"
dest_files=["res://.godot/imported/left_hand_file3.jpg-56e2392868a70843211420a34f12e9b6.s3tc.ctex", "res://.godot/imported/left_hand_file3.jpg-56e2392868a70843211420a34f12e9b6.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://28kilruyuw6p"
path="res://.godot/imported/right_hand.glb-861cb559eabc001de94b0f3cad13e387.scn"

[deps]

source_file="res://assets/valve_hand_models/right_hand.glb"
dest_files=["res://.godot/imported/right_hand.glb-861cb559eabc001de94b0f3cad13e387.scn"]

[params]

nodes/root_type="Spatial"
nodes/root_name="HandModel"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=0
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
animation/import=true
animation/fps=15
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://brfle6b72mi8p"
path.s3tc="res://.godot/imported/right_hand_file2.png-e9bffa6f99c68052b4a534d935ca5b1c.s3tc.ctex"
path.etc2="res://.godot/imported/right_hand_file2.png-e9bffa6f99c68052b4a534d935ca5b1c.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
generator_parameters={}

[deps]

source_file="res://assets/valve_hand_models/right_hand_file2.png"
dest_files=["res://.godot/imported/right_hand_file2.png-e9bffa6f99c68052b4a534d935ca5b1c.s3tc.ctex", "res://.godot/imported/right_hand_file2.png-e9bffa6f99c68052b4a534d935ca5b1c.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/valve_hand_models/right_hand_file2.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c7gnqpbl7eurm"
path.s3tc="res://.godot/imported/right_hand_file3.jpg-7d5b59fe57bd602de3e7776887b1ee9b.s3tc.ctex"
path.etc2="res://.godot/imported/right_hand_file3.jpg-7d5b59fe57bd602de3e7776887b1ee9b.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
generator_parameters={}

[deps]

source_file="res://assets/valve_hand_models/right_hand_file3.jpg"
dest_files=["res://.godot/imported/right_hand_file3.jpg-7d5b59fe57bd602de3e7776887b1ee9b.s3tc.ctex", "res://.godot/imported/right_hand_file3.jpg-7d5b59fe57bd602de3e7776887b1ee9b.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c8td8yp33avq4"
path.s3tc="res://.godot/imported/vr_glove_color.jpg-70a0815d0b370c719621ac33d282a7e2.s3tc.ctex"
path.etc2="res://.godot/imported/vr_glove_color.jpg-70a0815d0b370c719621ac33d282a7e2.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/valve_hand_models/textures/vr_glove_color.jpg"
dest_files=["res://.godot/imported/vr_glove_color.jpg-70a0815d0b370c719621ac33d282a7e2.s3tc.ctex", "res://.godot/imported/vr_glove_color.jpg-70a0815d0b370c719621ac33d282a7e2.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://v36a038xivjy"
path.s3tc="res://.godot/imported/vr_glove_color_red.jpg-1dddac1638aa951c3bea91c5eaad8334.s3tc.ctex"
path.etc2="res://.godot/imported/vr_glove_color_red.jpg-1dddac1638aa951c3bea91c5eaad8334.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/valve_hand_models/textures/vr_glove_color_red.jpg"
dest_files=["res://.godot/imported/vr_glove_color_red.jpg-1dddac1638aa951c3bea91c5eaad8334.s3tc.ctex", "res://.godot/imported/vr_glove_color_red.jpg-1dddac1638aa951c3bea91c5eaad8334.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bgvqgaslq3tab"
path.s3tc="res://.godot/imported/vr_glove_normal.png-c68b395d873e4430ca3ab215541ea936.s3tc.ctex"
path.etc2="res://.godot/imported/vr_glove_normal.png-c68b395d873e4430ca3ab215541ea936.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/valve_hand_models/textures/vr_glove_normal.png"
dest_files=["res://.godot/imported/vr_glove_normal.png-c68b395d873e4430ca3ab215541ea936.s3tc.ctex", "res://.godot/imported/vr_glove_normal.png-c68b395d873e4430ca3ab215541ea936.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
1 change: 1 addition & 0 deletions xr/openxr_hand_tracking_demo/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5bc34f8

Please sign in to comment.