-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.tscn
268 lines (227 loc) · 10.4 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
[gd_scene load_steps=14 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"]
[ext_resource type="Script" path="res://demo.gd" id="1_tphhe"]
[ext_resource type="PackedScene" uid="uid://cay8oh2ll7yxi" path="res://assets/test_kun/Test-Kun.fbx" id="2_67k0v"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_cqqj5"]
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_elgeq"]
sky_material = SubResource("ProceduralSkyMaterial_cqqj5")
[sub_resource type="Environment" id="Environment_w0xf3"]
background_mode = 2
sky = SubResource("Sky_elgeq")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_603qd"]
albedo_texture = ExtResource("1_pfl7p")
uv1_scale = Vector3(3, 3, 3)
[sub_resource type="QuadMesh" id="QuadMesh_0334b"]
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")
outer_radius = 0.6
rings = 32
ring_segments = 8
[sub_resource type="SphereMesh" id="SphereMesh_tw3o4"]
material = SubResource("StandardMaterial3D_ahrhg")
radius = 0.05
height = 0.2
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xhsxi"]
bg_color = Color(0, 0, 0, 0.498039)
[node name="Demo" type="Node3D"]
script = ExtResource("1_tphhe")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_w0xf3")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.866025, -0.433013, 0.25, 0.25, 0.808013, 0.533494, -0.433013, -0.39952, 0.808012, 0, 10, 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_0334b")
[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.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)
[node name="ChanAvatar" type="XRNode3D" parent="Chan"]
tracker = &"/axis_studio/body_tracker"
[node name="Test-Chan" parent="Chan/ChanAvatar" instance=ExtResource("1_lkeve")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0, 0, 0)
[node name="Body" parent="Chan/ChanAvatar/Test-Chan/Armature/Skeleton3D" index="0"]
blend_shapes/Cheek_Puff_Left = 1.28996e-05
blend_shapes/Cheek_Puff_Right = 1.28996e-05
blend_shapes/Eye_Left_Left = 0.297788
blend_shapes/Eye_Left_Right = 0.0393999
blend_shapes/Eye_Left_Wide = 0.0133242
blend_shapes/Eye_Right_Blink = 0.00013511
blend_shapes/Eye_Right_Left = 0.275447
blend_shapes/Eye_Right_Right = 0.0277578
blend_shapes/Eye_Right_Wide = 0.00428797
blend_shapes/Jaw_Forward = 0.000153695
blend_shapes/Jaw_Left = 0.00336811
blend_shapes/Jaw_Open = 0.00751231
blend_shapes/Jaw_Right = 2.27399e-05
blend_shapes/Mouth_Ape_Shape = 0.00011435
blend_shapes/Mouth_Lower_DownLeft = 0.000834321
blend_shapes/Mouth_Lower_DownRight = 0.000420048
blend_shapes/Mouth_Lower_Overturn = 0.000739455
blend_shapes/Mouth_Smile_Left = 0.00125522
blend_shapes/Mouth_Smile_Right = 0.0023025
blend_shapes/Mouth_Upper_Overturn = 0.000739455
blend_shapes/Mouth_Upper_UpLeft = 0.000106642
blend_shapes/Mouth_Upper_UpRight = 0.000192762
blend_shapes/browDownLeft = 0.15347
blend_shapes/browDownRight = 0.309234
blend_shapes/browOuterUpLeft = 0.0348048
blend_shapes/browOuterUpRight = 0.00225858
blend_shapes/eyeLookDownLeft = 0.109839
blend_shapes/eyeLookDownRight = 0.116176
blend_shapes/eyeLookUpLeft = 0.109527
blend_shapes/eyeLookUpRight = 0.105932
blend_shapes/eyeSquintLeft = 0.0409867
blend_shapes/eyeSquintRight = 0.437591
blend_shapes/mouthDimpleLeft = 0.00314422
blend_shapes/mouthDimpleRight = 0.00836317
blend_shapes/mouthFrownLeft = 0.00134124
blend_shapes/mouthFrownRight = 0.00104317
blend_shapes/mouthFunnel = 0.000739455
blend_shapes/mouthPressLeft = 0.00762485
blend_shapes/mouthPressRight = 0.0310566
blend_shapes/mouthStretchLeft = 0.0145674
blend_shapes/mouthStretchRight = 0.00253638
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Chan/ChanAvatar/Test-Chan/Armature/Skeleton3D" index="2"]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
body_tracker = &"/axis_studio/body_tracker"
bone_update = 1
[node name="GroundRing" type="MeshInstance3D" parent="Chan/ChanAvatar"]
transform = Transform3D(1, 0, 7.10543e-15, 0, 1, 0, -7.10543e-15, 0, 1, 0, 0.05, 0)
mesh = SubResource("TorusMesh_c2425")
skeleton = NodePath("")
[node name="Forward" type="MeshInstance3D" parent="Chan/ChanAvatar/GroundRing"]
transform = Transform3D(1, -8.74228e-08, -8.74228e-08, 8.74228e-08, -4.37114e-08, 1, -8.74228e-08, -1, -4.37114e-08, -5.96046e-08, 0, -0.6)
mesh = SubResource("SphereMesh_tw3o4")
[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"]
tracker = &"/axis_studio/body_tracker"
[node name="Test-Kun" parent="Kun/KunAvatar" instance=ExtResource("2_67k0v")]
transform = Transform3D(1, 0, -2.13163e-14, 0, 1, 0, 2.13163e-14, 0, 1, 0, 0, 0)
[node name="Body" parent="Kun/KunAvatar/Test-Kun/Armature/Skeleton3D" index="0"]
blend_shapes/Cheek_Puff_Left = 1.28996e-05
blend_shapes/Cheek_Puff_Right = 1.28996e-05
blend_shapes/Eye_Left_Left = 0.297788
blend_shapes/Eye_Left_Right = 0.0393999
blend_shapes/Eye_Left_Wide = 0.0133242
blend_shapes/Eye_Right_Blink = 0.00013511
blend_shapes/Eye_Right_Left = 0.275447
blend_shapes/Eye_Right_Right = 0.0277578
blend_shapes/Eye_Right_Wide = 0.00428797
blend_shapes/Jaw_Forward = 0.000153695
blend_shapes/Jaw_Left = 0.00336811
blend_shapes/Jaw_Open = 0.00751231
blend_shapes/Jaw_Right = 2.27399e-05
blend_shapes/Mouth_Ape_Shape = 0.00011435
blend_shapes/Mouth_Lower_DownLeft = 0.000834321
blend_shapes/Mouth_Lower_DownRight = 0.000420048
blend_shapes/Mouth_Lower_Overturn = 0.000739455
blend_shapes/Mouth_Smile_Left = 0.00125522
blend_shapes/Mouth_Smile_Right = 0.0023025
blend_shapes/Mouth_Upper_Overturn = 0.000739455
blend_shapes/Mouth_Upper_UpLeft = 0.000106642
blend_shapes/Mouth_Upper_UpRight = 0.000192762
blend_shapes/browDownLeft = 0.15347
blend_shapes/browDownRight = 0.309234
blend_shapes/browOuterUpLeft = 0.0348048
blend_shapes/browOuterUpRight = 0.00225858
blend_shapes/eyeLookDownLeft = 0.109839
blend_shapes/eyeLookDownRight = 0.116176
blend_shapes/eyeLookUpLeft = 0.109527
blend_shapes/eyeLookUpRight = 0.105932
blend_shapes/eyeSquintLeft = 0.0409867
blend_shapes/eyeSquintRight = 0.437591
blend_shapes/mouthDimpleLeft = 0.00314422
blend_shapes/mouthDimpleRight = 0.00836317
blend_shapes/mouthFrownLeft = 0.00134124
blend_shapes/mouthFrownRight = 0.00104317
blend_shapes/mouthFunnel = 0.000739455
blend_shapes/mouthPressLeft = 0.00762485
blend_shapes/mouthPressRight = 0.0310566
blend_shapes/mouthStretchLeft = 0.0145674
blend_shapes/mouthStretchRight = 0.00253638
[node name="XRBodyModifier3D" type="XRBodyModifier3D" parent="Kun/KunAvatar/Test-Kun/Armature/Skeleton3D" index="2"]
transform = Transform3D(1, 0, 2.13163e-14, 0, 1, 0, -2.13163e-14, 0, 1, 0, 0, 0)
body_tracker = &"/axis_studio/body_tracker"
bone_update = 1
[node name="GroundRing" type="MeshInstance3D" parent="Kun/KunAvatar"]
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("")
[node name="Forward" type="MeshInstance3D" parent="Kun/KunAvatar/GroundRing"]
transform = Transform3D(1, -8.74228e-08, -8.74228e-08, 8.74228e-08, -4.37114e-08, 1, -8.74228e-08, -1, -4.37114e-08, -5.96046e-08, 0, -0.6)
mesh = SubResource("SphereMesh_tw3o4")
[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
theme_override_styles/panel = SubResource("StyleBoxFlat_xhsxi")
[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 Tracker
Axis Studio
"
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"
horizontal_alignment = 2
[node name="SkeletonSpinBox" type="SpinBox" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
unique_name_in_owner = true
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"]
auto_translate_mode = 1
layout_mode = 2
text = "World Scale"
horizontal_alignment = 2
[node name="WorldSpinBox" type="SpinBox" parent="PanelContainer/MarginContainer/HBoxContainer/GridContainer"]
unique_name_in_owner = true
auto_translate_mode = 1
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"]