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 d9dde91 commit c50afa7
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 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://dkkew3u3hi7md"]
[gd_scene load_steps=11 format=3 uid="uid://dkkew3u3hi7md"]

[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,15 @@ uv1_scale = Vector3(3, 3, 3)
material = SubResource("StandardMaterial3D_603qd")
size = Vector2(8, 8)

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

[sub_resource type="TorusMesh" id="TorusMesh_rbtmk"]
material = SubResource("StandardMaterial3D_gl6q7")
outer_radius = 0.6
rings = 32
ring_segments = 8

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

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
Expand All @@ -40,7 +49,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.2, 1.4, 2.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 All @@ -52,6 +61,7 @@ target = NodePath("../XRBodyModifier3D/Test-Chan/Armature/Skeleton3D/Body")
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Chan"]
body_tracker = &"/vmc/body"
target = NodePath("Test-Chan/Armature/Skeleton3D")
bone_update = 1

[node name="Test-Chan" parent="Chan/XRBodyModifier3D" instance=ExtResource("1_lkeve")]

Expand Down Expand Up @@ -98,6 +108,11 @@ 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_rbtmk")
skeleton = NodePath("")

[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)

Expand All @@ -108,6 +123,7 @@ target = NodePath("../XRBodyModifier3D/Test-Kun/Armature/Skeleton3D/Body")
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Kun"]
body_tracker = &"/vmc/body"
target = NodePath("Test-Kun/Armature/Skeleton3D")
bone_update = 1

[node name="Test-Kun" parent="Kun/XRBodyModifier3D" instance=ExtResource("2_67k0v")]

Expand Down Expand Up @@ -154,5 +170,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, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
mesh = SubResource("TorusMesh_rbtmk")
skeleton = NodePath("")

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

0 comments on commit c50afa7

Please sign in to comment.