Skip to content

Commit

Permalink
Added ground ring to visualize tracker location.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon committed Mar 3, 2024
1 parent d6e921d commit 65a93a2
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions demo.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://btisi43jtpet"]
[gd_scene load_steps=11 format=3 uid="uid://btisi43jtpet"]

[ext_resource type="PackedScene" uid="uid://bhc6nngwjdvum" path="res://assets/test_chan/Test-Chan.fbx" id="1_lkeve"]
[ext_resource type="Texture2D" uid="uid://drjoya1j38i21" path="res://assets/ambientcg.com/Carpet003_1K-JPG_Color.jpg" id="1_pfl7p"]
Expand All @@ -25,6 +25,17 @@ uv1_scale = Vector3(3, 3, 3)
material = SubResource("StandardMaterial3D_603qd")
size = Vector2(8, 8)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ahrhg"]
albedo_color = Color(1, 1, 0, 1)
emission = Color(1, 1, 0, 1)

[sub_resource type="TorusMesh" id="TorusMesh_c2425"]
material = SubResource("StandardMaterial3D_ahrhg")
inner_radius = 0.6
outer_radius = 0.5
rings = 32
ring_segments = 8

[node name="Demo" type="Node3D"]

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
Expand All @@ -40,7 +51,7 @@ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0,
mesh = SubResource("QuadMesh_0334b")

[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(0.939693, 0.0593912, -0.336824, 0, 0.984808, 0.173648, 0.34202, -0.163176, 0.925417, -0.7, 1.4, 1.2)
transform = Transform3D(0.939693, 0.0593911, -0.336824, 0, 0.984808, 0.173648, 0.34202, -0.163176, 0.925417, -1.7, 1.8, 3.2)

[node name="Chan" type="Node3D" parent="."]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.6, 0, 0)
Expand Down Expand Up @@ -97,13 +108,16 @@ blend_shapes/mouthPressRight = 0.0310566
blend_shapes/mouthStretchLeft = 0.0145674
blend_shapes/mouthStretchRight = 0.00253638

[node name="GroundRing" type="MeshInstance3D" parent="Chan/XRBodyModifier3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
mesh = SubResource("TorusMesh_c2425")

[node name="Kun" type="Node3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0.6, 0, 0)

[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Kun"]
body_tracker = &"/axis_studio/body"
target = NodePath("Test-Kun/Armature/Skeleton3D")
bone_update = 1
show_when_tracked = false

[node name="Test-Kun" parent="Kun/XRBodyModifier3D" instance=ExtResource("2_67k0v")]
Expand Down Expand Up @@ -152,5 +166,10 @@ blend_shapes/mouthPressRight = 0.0310566
blend_shapes/mouthStretchLeft = 0.0145674
blend_shapes/mouthStretchRight = 0.00253638

[node name="GroundRing" type="MeshInstance3D" parent="Kun/XRBodyModifier3D"]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0, 0.05, 0)
mesh = SubResource("TorusMesh_c2425")
skeleton = NodePath("../../../Chan/XRBodyModifier3D")

[editable path="Chan/XRBodyModifier3D/Test-Chan"]
[editable path="Kun/XRBodyModifier3D/Test-Kun"]

0 comments on commit 65a93a2

Please sign in to comment.