-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.tscn
178 lines (137 loc) · 6.66 KB
/
demo.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[gd_scene load_steps=14 format=3 uid="uid://c02r4tj8rqvmo"]
[ext_resource type="Texture2D" uid="uid://drjoya1j38i21" path="res://assets/ambientcg.com/Carpet003_1K-JPG_Color.jpg" id="1_e6qef"]
[ext_resource type="Script" path="res://demo.gd" id="1_pjmhy"]
[ext_resource type="PackedScene" uid="uid://bhc6nngwjdvum" path="res://assets/test_chan/Test-Chan.fbx" id="3_rdwmc"]
[ext_resource type="PackedScene" uid="uid://cay8oh2ll7yxi" path="res://assets/test_kun/Test-Kun.fbx" id="4_2lusk"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_o2dlm"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
[sub_resource type="Sky" id="Sky_vnxsk"]
sky_material = SubResource("ProceduralSkyMaterial_o2dlm")
[sub_resource type="Environment" id="Environment_2w2sf"]
background_mode = 2
sky = SubResource("Sky_vnxsk")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_55n8g"]
albedo_texture = ExtResource("1_e6qef")
uv1_scale = Vector3(3, 3, 3)
[sub_resource type="QuadMesh" id="QuadMesh_1vgh2"]
material = SubResource("StandardMaterial3D_55n8g")
size = Vector2(8, 8)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_stsmb"]
albedo_color = Color(1, 1, 0, 1)
[sub_resource type="TorusMesh" id="TorusMesh_hgul2"]
material = SubResource("StandardMaterial3D_stsmb")
outer_radius = 0.6
rings = 32
ring_segments = 8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ik41p"]
albedo_color = Color(1, 1, 0, 1)
[sub_resource type="SphereMesh" id="SphereMesh_ouj5y"]
material = SubResource("StandardMaterial3D_ik41p")
radius = 0.05
height = 0.2
[node name="Demo" type="Node3D"]
script = ExtResource("1_pjmhy")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_2w2sf")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.86596, -0.433012, 0.250226, 0.250226, 0.80835, 0.532876, -0.433012, -0.398837, 0.80835, 0, 0, 0)
light_energy = 0.5
shadow_enabled = true
[node name="Ground" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
mesh = SubResource("QuadMesh_1vgh2")
[node name="Camera3D" type="Camera3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(0.939693, 0.0593911, -0.336824, 0, 0.984808, 0.173648, 0.34202, -0.163176, 0.925417, -1.24294, 1.42214, 2.31797)
[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)
[node name="ChanAvatar" type="XRNode3D" parent="Chan"]
transform = Transform3D(0.999311, 0, 0.0371093, 0, 1, 0, -0.0371093, 0, 0.999311, -0.00895814, 0, -0.0917108)
tracker = &"/rokoko/body_tracker"
[node name="Test-Chan" parent="Chan/ChanAvatar" instance=ExtResource("3_rdwmc")]
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Chan/ChanAvatar/Test-Chan/Armature/Skeleton3D" index="2"]
body_tracker = &"/rokoko/body_tracker"
bone_update = 1
[node name="XRFaceModifier3D" type="XRFaceModifier3D" parent="Chan/ChanAvatar"]
face_tracker = &"/rokoko/face_tracker"
target = NodePath("../Test-Chan/Armature/Skeleton3D/Body")
[node name="GroundRing" type="MeshInstance3D" parent="Chan/ChanAvatar"]
mesh = SubResource("TorusMesh_hgul2")
skeleton = NodePath("../Test-Chan")
[node name="Forward" type="MeshInstance3D" parent="Chan/ChanAvatar/GroundRing"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -0.6)
mesh = SubResource("SphereMesh_ouj5y")
[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="KunAvatar" type="XRNode3D" parent="Kun"]
transform = Transform3D(0.999311, 0, 0.0371093, 0, 1, 0, -0.0371093, 0, 0.999311, -0.00895814, 0, -0.0917108)
tracker = &"/rokoko/body_tracker"
[node name="Test-Kun" parent="Kun/KunAvatar" instance=ExtResource("4_2lusk")]
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Kun/KunAvatar/Test-Kun/Armature/Skeleton3D" index="2"]
body_tracker = &"/rokoko/body_tracker"
bone_update = 1
[node name="XRFaceModifier3D" type="XRFaceModifier3D" parent="Kun/KunAvatar"]
face_tracker = &"/rokoko/face_tracker"
target = NodePath("../Test-Kun/Armature/Skeleton3D/Body")
[node name="GroundRing" type="MeshInstance3D" parent="Kun/KunAvatar"]
mesh = SubResource("TorusMesh_hgul2")
[node name="Forward" type="MeshInstance3D" parent="Kun/KunAvatar/GroundRing"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -0.6)
mesh = SubResource("SphereMesh_ouj5y")
[node name="PanelContainer" type="PanelContainer" parent="."]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -360.0
offset_top = -81.0
offset_right = -5.0
offset_bottom = -5.0
grow_horizontal = 0
grow_vertical = 0
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Godot XR
Rokoko Tracker"
horizontal_alignment = 1
[node name="VSeparator" type="VSeparator" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="GridContainer" type="GridContainer" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
columns = 2
[node name="SkeletonLabel" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
layout_mode = 2
text = "Skeleton Scale
"
[node name="SkeletonSpinBox" type="SpinBox" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
layout_mode = 2
min_value = 0.1
max_value = 2.0
step = 0.1
value = 1.0
[node name="WorldLabel" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
layout_mode = 2
text = "World Scale
"
[node name="WorldSpinBox" type="SpinBox" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
layout_mode = 2
min_value = 0.1
max_value = 5.0
step = 0.1
value = 1.0
[connection signal="value_changed" from="PanelContainer/MarginContainer/HBoxContainer/GridContainer/SkeletonSpinBox" to="." method="_on_skeleton_spin_box_value_changed"]
[connection signal="value_changed" from="PanelContainer/MarginContainer/HBoxContainer/GridContainer/WorldSpinBox" to="." method="_on_world_spin_box_value_changed"]
[editable path="Chan/ChanAvatar/Test-Chan"]
[editable path="Kun/KunAvatar/Test-Kun"]