Datasets:
Formats:
imagefolder
Size:
< 1K
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +1 -0
- AIController3D.gd +45 -0
- FlyBy.csproj +10 -0
- FlyBy.gd +24 -0
- FlyBy.onnx +3 -0
- FlyBy.sln +25 -0
- FlyBy.tscn +312 -0
- GameArea.gd +5 -0
- Goal.gd +6 -0
- Goal.tscn +27 -0
- Plane.gd +122 -0
- Plane.tscn +28 -0
- PlaneModel.gd +9 -0
- PlaneModel.tscn +19 -0
- README.md +25 -0
- addons/godot_rl_agents/controller/ai_controller_2d.gd +113 -0
- addons/godot_rl_agents/controller/ai_controller_3d.gd +114 -0
- addons/godot_rl_agents/godot_rl_agents.gd +16 -0
- addons/godot_rl_agents/icon.png +3 -0
- addons/godot_rl_agents/onnx/csharp/ONNXInference.cs +103 -0
- addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs +131 -0
- addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml +31 -0
- addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml +29 -0
- addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd +27 -0
- addons/godot_rl_agents/plugin.cfg +7 -0
- addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn +48 -0
- addons/godot_rl_agents/sensors/sensors_2d/GridSensor2D.gd +235 -0
- addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd +25 -0
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd +118 -0
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn +7 -0
- addons/godot_rl_agents/sensors/sensors_3d/ExampleRaycastSensor3D.tscn +6 -0
- addons/godot_rl_agents/sensors/sensors_3d/GridSensor3D.gd +258 -0
- addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd +25 -0
- addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd +21 -0
- addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.tscn +41 -0
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd +185 -0
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn +27 -0
- addons/godot_rl_agents/sync.gd +540 -0
- alps_field_2k.hdr +3 -0
- cartoon_plane/Body.material +0 -0
- cartoon_plane/Cube_1_3__0.material +0 -0
- cartoon_plane/Glass.material +0 -0
- cartoon_plane/material.material +0 -0
- cartoon_plane/material_3.material +0 -0
- cartoon_plane/scene.bin +3 -0
- cartoon_plane/scene.gltf +3208 -0
- cartoon_plane/texture_07.png +3 -0
- concrete_wall_004_ao_1k.jpg +3 -0
- concrete_wall_004_arm_1k.jpg +3 -0
- concrete_wall_004_diff_1k.jpg +3 -0
.gitattributes
CHANGED
@@ -56,3 +56,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
alps_field_2k.hdr filter=lfs diff=lfs merge=lfs -text
|
AIController3D.gd
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends AIController3D
|
2 |
+
|
3 |
+
|
4 |
+
func get_obs():
|
5 |
+
if _player.cur_goal == null:
|
6 |
+
_player.game_over()
|
7 |
+
var goal_vector = to_local(_player.cur_goal.position)
|
8 |
+
var goal_distance = goal_vector.length()
|
9 |
+
goal_vector = goal_vector.normalized()
|
10 |
+
goal_distance = clamp(goal_distance, 0.0, 50.0)
|
11 |
+
|
12 |
+
var next_goal = _player.environment.get_next_goal(_player.cur_goal)
|
13 |
+
var next_goal_vector = to_local(next_goal.position)
|
14 |
+
var next_goal_distance = next_goal_vector.length()
|
15 |
+
next_goal_vector = next_goal_vector.normalized()
|
16 |
+
next_goal_distance = clamp(next_goal_distance, 0.0, 50.0)
|
17 |
+
|
18 |
+
var obs = [
|
19 |
+
goal_vector.x,
|
20 |
+
goal_vector.y,
|
21 |
+
goal_vector.z,
|
22 |
+
goal_distance / 50.0,
|
23 |
+
next_goal_vector.x,
|
24 |
+
next_goal_vector.y,
|
25 |
+
next_goal_vector.z,
|
26 |
+
next_goal_distance / 50.0
|
27 |
+
]
|
28 |
+
|
29 |
+
return {"obs": obs}
|
30 |
+
|
31 |
+
|
32 |
+
func get_action_space():
|
33 |
+
return {
|
34 |
+
"pitch": {"size": 1, "action_type": "continuous"},
|
35 |
+
"turn": {"size": 1, "action_type": "continuous"}
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
func set_action(action):
|
40 |
+
_player.turn_input = action["turn"][0]
|
41 |
+
_player.pitch_input = action["pitch"][0]
|
42 |
+
|
43 |
+
|
44 |
+
func get_reward():
|
45 |
+
return reward
|
FlyBy.csproj
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<Project Sdk="Godot.NET.Sdk/4.0.3">
|
2 |
+
<PropertyGroup>
|
3 |
+
<TargetFramework>net6.0</TargetFramework>
|
4 |
+
<EnableDynamicLoading>true</EnableDynamicLoading>
|
5 |
+
<RootNamespace>GodotRLAgents</RootNamespace>
|
6 |
+
</PropertyGroup>
|
7 |
+
<ItemGroup>
|
8 |
+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.15.1" />
|
9 |
+
</ItemGroup>
|
10 |
+
</Project>
|
FlyBy.gd
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
|
3 |
+
var goals = null
|
4 |
+
|
5 |
+
|
6 |
+
# Called when the node enters the scene tree for the first time.
|
7 |
+
func _ready():
|
8 |
+
goals = $Goals.get_children()
|
9 |
+
|
10 |
+
|
11 |
+
func get_next_goal(current_goal):
|
12 |
+
if current_goal == null:
|
13 |
+
return goals[0]
|
14 |
+
var index = null
|
15 |
+
for i in len(goals):
|
16 |
+
if goals[i] == current_goal:
|
17 |
+
index = (i + 1) % len(goals)
|
18 |
+
break
|
19 |
+
|
20 |
+
return goals[index]
|
21 |
+
|
22 |
+
|
23 |
+
func get_last_goal():
|
24 |
+
return goals[-1]
|
FlyBy.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:933de1f9ca8317c0efde301a441582ebe0ac338f7d9020c3d816631530628ddd
|
3 |
+
size 21197
|
FlyBy.sln
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
Microsoft Visual Studio Solution File, Format Version 12.00
|
3 |
+
# Visual Studio Version 17
|
4 |
+
VisualStudioVersion = 17.5.33530.505
|
5 |
+
MinimumVisualStudioVersion = 10.0.40219.1
|
6 |
+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Godot RL Agents", "Godot RL Agents.csproj", "{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}"
|
7 |
+
EndProject
|
8 |
+
Global
|
9 |
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
10 |
+
Debug|Any CPU = Debug|Any CPU
|
11 |
+
ExportDebug|Any CPU = ExportDebug|Any CPU
|
12 |
+
ExportRelease|Any CPU = ExportRelease|Any CPU
|
13 |
+
EndGlobalSection
|
14 |
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
15 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
16 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
17 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
18 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
19 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
20 |
+
{055E8CBC-A3EC-41A8-BC53-EC3010682AE4}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
21 |
+
EndGlobalSection
|
22 |
+
GlobalSection(SolutionProperties) = preSolution
|
23 |
+
HideSolutionNode = FALSE
|
24 |
+
EndGlobalSection
|
25 |
+
EndGlobal
|
FlyBy.tscn
ADDED
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
4 |
+
[ext_resource type="Script" path="res://GameArea.gd" id="2"]
|
5 |
+
[ext_resource type="Texture2D" uid="uid://cc7fd3cl63ky1" path="res://alps_field_2k.hdr" id="2_retnu"]
|
6 |
+
[ext_resource type="PackedScene" uid="uid://bjx0dykb8q6kf" path="res://Goal.tscn" id="3"]
|
7 |
+
[ext_resource type="Script" path="res://FlyBy.gd" id="4"]
|
8 |
+
[ext_resource type="PackedScene" uid="uid://3xxv82w5v8bo" path="res://Plane.tscn" id="5"]
|
9 |
+
[ext_resource type="Texture2D" uid="uid://bddbiy7gwtdyh" path="res://concrete_wall_004_diff_1k.jpg" id="7_mnp35"]
|
10 |
+
[ext_resource type="Texture2D" uid="uid://bj56jsr1idhhk" path="res://concrete_wall_004_ao_1k.jpg" id="8_mhe64"]
|
11 |
+
[ext_resource type="Texture2D" uid="uid://ow81638q14o" path="res://concrete_wall_004_arm_1k.jpg" id="9_1x60u"]
|
12 |
+
[ext_resource type="Texture2D" uid="uid://drkdgeq22xo2f" path="res://concrete_wall_004_nor_gl_1k.jpg" id="10_x6htc"]
|
13 |
+
|
14 |
+
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_88xh0"]
|
15 |
+
panorama = ExtResource("2_retnu")
|
16 |
+
|
17 |
+
[sub_resource type="Sky" id="Sky_bna3a"]
|
18 |
+
sky_material = SubResource("PanoramaSkyMaterial_88xh0")
|
19 |
+
|
20 |
+
[sub_resource type="Environment" id="Environment_1r6xt"]
|
21 |
+
background_mode = 2
|
22 |
+
sky = SubResource("Sky_bna3a")
|
23 |
+
ambient_light_source = 3
|
24 |
+
reflected_light_source = 2
|
25 |
+
|
26 |
+
[sub_resource type="StandardMaterial3D" id="1"]
|
27 |
+
transparency = 1
|
28 |
+
albedo_color = Color(0.372549, 0.0823529, 0.109804, 0.705882)
|
29 |
+
|
30 |
+
[sub_resource type="StandardMaterial3D" id="2"]
|
31 |
+
albedo_color = Color(0.0862745, 0.211765, 0.12549, 1)
|
32 |
+
uv1_scale = Vector3(0.5, 0.5, 0.5)
|
33 |
+
uv1_triplanar = true
|
34 |
+
|
35 |
+
[sub_resource type="StandardMaterial3D" id="3"]
|
36 |
+
albedo_color = Color(0.0196078, 0.0313726, 0.0313726, 1)
|
37 |
+
|
38 |
+
[sub_resource type="BoxShape3D" id="4"]
|
39 |
+
size = Vector3(500, 102, 502)
|
40 |
+
|
41 |
+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lnswx"]
|
42 |
+
albedo_texture = ExtResource("7_mnp35")
|
43 |
+
metallic = 1.0
|
44 |
+
metallic_texture = ExtResource("9_1x60u")
|
45 |
+
roughness_texture = ExtResource("9_1x60u")
|
46 |
+
normal_enabled = true
|
47 |
+
normal_texture = ExtResource("10_x6htc")
|
48 |
+
ao_enabled = true
|
49 |
+
ao_texture = ExtResource("8_mhe64")
|
50 |
+
uv1_scale = Vector3(10, 10, 10)
|
51 |
+
|
52 |
+
[sub_resource type="BoxMesh" id="5"]
|
53 |
+
material = SubResource("StandardMaterial3D_lnswx")
|
54 |
+
size = Vector3(500, 100, 2)
|
55 |
+
|
56 |
+
[node name="FlyBy" type="Node3D"]
|
57 |
+
script = ExtResource("4")
|
58 |
+
|
59 |
+
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
60 |
+
transform = Transform3D(0.837719, 0.472938, -0.273051, -0.199304, 0.730284, 0.653424, 0.508434, -0.492966, 0.706031, -138.049, 226.704, 0)
|
61 |
+
shadow_enabled = true
|
62 |
+
|
63 |
+
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
64 |
+
environment = SubResource("Environment_1r6xt")
|
65 |
+
|
66 |
+
[node name="Goals" type="Node" parent="."]
|
67 |
+
|
68 |
+
[node name="Goal" parent="Goals" instance=ExtResource("3")]
|
69 |
+
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 21, 35, -74)
|
70 |
+
|
71 |
+
[node name="Goal2" parent="Goals" instance=ExtResource("3")]
|
72 |
+
transform = Transform3D(0.965926, 0.258819, 1.13133e-08, 0, -4.37114e-08, 1, 0.258819, -0.965926, -4.2222e-08, 64, 35, -149)
|
73 |
+
|
74 |
+
[node name="Goal3" parent="Goals" instance=ExtResource("3")]
|
75 |
+
transform = Transform3D(-5.96046e-08, 1, 4.37113e-08, 0, -4.37114e-08, 1, 1, 5.96046e-08, 2.30926e-14, 118, 54, -203)
|
76 |
+
|
77 |
+
[node name="Goal4" parent="Goals" instance=ExtResource("3")]
|
78 |
+
transform = Transform3D(-0.707107, 0.707107, 3.09086e-08, 0, -4.37114e-08, 1, 0.707107, 0.707107, 3.09086e-08, 201, 42, -156)
|
79 |
+
|
80 |
+
[node name="Goal5" parent="Goals" instance=ExtResource("3")]
|
81 |
+
transform = Transform3D(-1, 5.96046e-08, 2.30926e-14, 0, -4.37114e-08, 1, 5.96046e-08, 1, 4.37113e-08, 230, 35, -63)
|
82 |
+
|
83 |
+
[node name="Goal6" parent="Goals" instance=ExtResource("3")]
|
84 |
+
transform = Transform3D(-1, -2.98023e-08, 1.77636e-15, 0, -4.37114e-08, 1, -2.98023e-08, 1, 4.37114e-08, 216, 17, 48)
|
85 |
+
|
86 |
+
[node name="Goal7" parent="Goals" instance=ExtResource("3")]
|
87 |
+
transform = Transform3D(-0.866026, -0.5, -2.18557e-08, 0, -4.37114e-08, 1, -0.5, 0.866026, 3.78551e-08, 169, 40, 147)
|
88 |
+
|
89 |
+
[node name="Goal8" parent="Goals" instance=ExtResource("3")]
|
90 |
+
transform = Transform3D(0.258819, -0.965926, -4.2222e-08, 0, -4.37114e-08, 1, -0.965926, -0.258819, -1.13133e-08, 74, 30, 181)
|
91 |
+
|
92 |
+
[node name="Goal9" parent="Goals" instance=ExtResource("3")]
|
93 |
+
transform = Transform3D(-2.98023e-07, -1, -4.37113e-08, 0, -4.37114e-08, 1, -1, 2.98023e-07, -4.08562e-14, 10, 45, 133)
|
94 |
+
|
95 |
+
[node name="Goal10" parent="Goals" instance=ExtResource("3")]
|
96 |
+
transform = Transform3D(-0.5, -0.866025, -3.78552e-08, 0, -4.37114e-08, 1, -0.866025, 0.5, 2.18557e-08, -54, 16, 171)
|
97 |
+
|
98 |
+
[node name="Goal11" parent="Goals" instance=ExtResource("3")]
|
99 |
+
transform = Transform3D(0.5, -0.866026, -3.78551e-08, 0, -4.37114e-08, 1, -0.866026, -0.5, -2.18557e-08, -132, 20, 166)
|
100 |
+
|
101 |
+
[node name="Goal12" parent="Goals" instance=ExtResource("3")]
|
102 |
+
transform = Transform3D(1, -2.38419e-07, 4.26326e-14, 0, -4.37114e-08, 1, -2.38419e-07, -1, -4.37113e-08, -159, 35, 99)
|
103 |
+
material = SubResource("1")
|
104 |
+
|
105 |
+
[node name="Goal13" parent="Goals" instance=ExtResource("3")]
|
106 |
+
transform = Transform3D(0.5, 0.866026, 3.78551e-08, 0, -4.37114e-08, 1, 0.866026, -0.5, -2.18556e-08, -123, 35, 22)
|
107 |
+
material = SubResource("1")
|
108 |
+
|
109 |
+
[node name="Goal14" parent="Goals" instance=ExtResource("3")]
|
110 |
+
transform = Transform3D(0.707107, 0.707107, 3.09086e-08, 0, -4.37114e-08, 1, 0.707107, -0.707107, -3.09085e-08, -43, 35, -7)
|
111 |
+
material = SubResource("1")
|
112 |
+
|
113 |
+
[node name="Columns" type="CSGCombiner3D" parent="."]
|
114 |
+
|
115 |
+
[node name="CSGBox3D" type="CSGBox3D" parent="Columns"]
|
116 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 35, -7.6325, 0)
|
117 |
+
size = Vector3(1000, 1, 1000)
|
118 |
+
material = SubResource("2")
|
119 |
+
|
120 |
+
[node name="CSGBox2" type="CSGBox3D" parent="Columns"]
|
121 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 48, 25, -81)
|
122 |
+
size = Vector3(10, 100, 10)
|
123 |
+
material = SubResource("3")
|
124 |
+
|
125 |
+
[node name="CSGBox3" type="CSGBox3D" parent="Columns"]
|
126 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -84, 25, -38)
|
127 |
+
size = Vector3(10, 100, 10)
|
128 |
+
material = SubResource("3")
|
129 |
+
|
130 |
+
[node name="CSGBox16" type="CSGBox3D" parent="Columns"]
|
131 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -83, 25, 31)
|
132 |
+
size = Vector3(10, 100, 10)
|
133 |
+
material = SubResource("3")
|
134 |
+
|
135 |
+
[node name="CSGBox17" type="CSGBox3D" parent="Columns"]
|
136 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -58, 25, 31)
|
137 |
+
size = Vector3(10, 100, 10)
|
138 |
+
material = SubResource("3")
|
139 |
+
|
140 |
+
[node name="CSGBox18" type="CSGBox3D" parent="Columns"]
|
141 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -163, 25, 31)
|
142 |
+
size = Vector3(10, 100, 10)
|
143 |
+
material = SubResource("3")
|
144 |
+
|
145 |
+
[node name="CSGBox19" type="CSGBox3D" parent="Columns"]
|
146 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -185, 25, 113)
|
147 |
+
size = Vector3(10, 100, 10)
|
148 |
+
material = SubResource("3")
|
149 |
+
|
150 |
+
[node name="CSGBox20" type="CSGBox3D" parent="Columns"]
|
151 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -130, 25, 92)
|
152 |
+
size = Vector3(10, 100, 10)
|
153 |
+
material = SubResource("3")
|
154 |
+
|
155 |
+
[node name="CSGBox4" type="CSGBox3D" parent="Columns"]
|
156 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 142, 25, 112)
|
157 |
+
size = Vector3(10, 100, 10)
|
158 |
+
material = SubResource("3")
|
159 |
+
|
160 |
+
[node name="CSGBox13" type="CSGBox3D" parent="Columns"]
|
161 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 212, 25, 165)
|
162 |
+
size = Vector3(10, 100, 10)
|
163 |
+
material = SubResource("3")
|
164 |
+
|
165 |
+
[node name="CSGBox14" type="CSGBox3D" parent="Columns"]
|
166 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 245, 25, 107)
|
167 |
+
size = Vector3(10, 100, 10)
|
168 |
+
material = SubResource("3")
|
169 |
+
|
170 |
+
[node name="CSGBox12" type="CSGBox3D" parent="Columns"]
|
171 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 157, 25, 70)
|
172 |
+
size = Vector3(10, 100, 10)
|
173 |
+
material = SubResource("3")
|
174 |
+
|
175 |
+
[node name="CSGBox5" type="CSGBox3D" parent="Columns"]
|
176 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 25, 187)
|
177 |
+
size = Vector3(10, 100, 10)
|
178 |
+
material = SubResource("3")
|
179 |
+
|
180 |
+
[node name="CSGBox15" type="CSGBox3D" parent="Columns"]
|
181 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 129, 25, 215)
|
182 |
+
size = Vector3(10, 100, 10)
|
183 |
+
material = SubResource("3")
|
184 |
+
|
185 |
+
[node name="CSGBox6" type="CSGBox3D" parent="Columns"]
|
186 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 25, -80)
|
187 |
+
size = Vector3(10, 100, 10)
|
188 |
+
material = SubResource("3")
|
189 |
+
|
190 |
+
[node name="CSGBox21" type="CSGBox3D" parent="Columns"]
|
191 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 25, -80)
|
192 |
+
size = Vector3(10, 100, 10)
|
193 |
+
material = SubResource("3")
|
194 |
+
|
195 |
+
[node name="CSGBox7" type="CSGBox3D" parent="Columns"]
|
196 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 125, 25, -164)
|
197 |
+
size = Vector3(10, 100, 10)
|
198 |
+
material = SubResource("3")
|
199 |
+
|
200 |
+
[node name="CSGBox11" type="CSGBox3D" parent="Columns"]
|
201 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 185, 25, -218)
|
202 |
+
size = Vector3(10, 100, 10)
|
203 |
+
material = SubResource("3")
|
204 |
+
|
205 |
+
[node name="CSGBox10" type="CSGBox3D" parent="Columns"]
|
206 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 74, 25, -226)
|
207 |
+
size = Vector3(10, 100, 10)
|
208 |
+
material = SubResource("3")
|
209 |
+
|
210 |
+
[node name="CSGBox8" type="CSGBox3D" parent="Columns"]
|
211 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -74, 25, 91)
|
212 |
+
size = Vector3(10, 100, 10)
|
213 |
+
material = SubResource("3")
|
214 |
+
|
215 |
+
[node name="CSGBox9" type="CSGBox3D" parent="Columns"]
|
216 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 102, 25, 130)
|
217 |
+
size = Vector3(10, 100, 10)
|
218 |
+
material = SubResource("3")
|
219 |
+
|
220 |
+
[node name="GameArea" type="Area3D" parent="."]
|
221 |
+
script = ExtResource("2")
|
222 |
+
|
223 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="GameArea"]
|
224 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 35, 41, 1)
|
225 |
+
shape = SubResource("4")
|
226 |
+
|
227 |
+
[node name="Sync" type="Node" parent="."]
|
228 |
+
script = ExtResource("1")
|
229 |
+
|
230 |
+
[node name="Plane" parent="." instance=ExtResource("5")]
|
231 |
+
transform = Transform3D(-0.372224, 0.0145406, -0.928029, 0, 0.999877, 0.0156663, 0.928143, 0.00583138, -0.372178, -111.001, 77.3255, -109.24)
|
232 |
+
turn_acc = 4.0
|
233 |
+
|
234 |
+
[node name="Plane2" parent="." instance=ExtResource("5")]
|
235 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
236 |
+
turn_acc = 4.0
|
237 |
+
|
238 |
+
[node name="Plane3" parent="." instance=ExtResource("5")]
|
239 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
240 |
+
turn_acc = 4.0
|
241 |
+
|
242 |
+
[node name="Plane4" parent="." instance=ExtResource("5")]
|
243 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
244 |
+
turn_acc = 4.0
|
245 |
+
|
246 |
+
[node name="Plane5" parent="." instance=ExtResource("5")]
|
247 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
248 |
+
turn_acc = 4.0
|
249 |
+
|
250 |
+
[node name="Plane6" parent="." instance=ExtResource("5")]
|
251 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
252 |
+
turn_acc = 4.0
|
253 |
+
|
254 |
+
[node name="Plane7" parent="." instance=ExtResource("5")]
|
255 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
256 |
+
turn_acc = 4.0
|
257 |
+
|
258 |
+
[node name="Plane8" parent="." instance=ExtResource("5")]
|
259 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
260 |
+
turn_acc = 4.0
|
261 |
+
|
262 |
+
[node name="Plane9" parent="." instance=ExtResource("5")]
|
263 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
264 |
+
turn_acc = 4.0
|
265 |
+
|
266 |
+
[node name="Plane10" parent="." instance=ExtResource("5")]
|
267 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
268 |
+
turn_acc = 4.0
|
269 |
+
|
270 |
+
[node name="Plane11" parent="." instance=ExtResource("5")]
|
271 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
272 |
+
turn_acc = 4.0
|
273 |
+
|
274 |
+
[node name="Plane12" parent="." instance=ExtResource("5")]
|
275 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
276 |
+
turn_acc = 4.0
|
277 |
+
|
278 |
+
[node name="Plane13" parent="." instance=ExtResource("5")]
|
279 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
280 |
+
turn_acc = 4.0
|
281 |
+
|
282 |
+
[node name="Plane14" parent="." instance=ExtResource("5")]
|
283 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 27, 0)
|
284 |
+
turn_acc = 4.0
|
285 |
+
|
286 |
+
[node name="Plane15" parent="." instance=ExtResource("5")]
|
287 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 27, -1)
|
288 |
+
turn_acc = 4.0
|
289 |
+
|
290 |
+
[node name="Plane16" parent="." instance=ExtResource("5")]
|
291 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 27, -1)
|
292 |
+
turn_acc = 4.0
|
293 |
+
|
294 |
+
[node name="Walls" type="Node" parent="."]
|
295 |
+
|
296 |
+
[node name="MeshInstance3D" type="MeshInstance3D" parent="Walls"]
|
297 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36, -24.1131, 252)
|
298 |
+
mesh = SubResource("5")
|
299 |
+
|
300 |
+
[node name="MeshInstance2" type="MeshInstance3D" parent="Walls"]
|
301 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 35, -24.1131, -251)
|
302 |
+
mesh = SubResource("5")
|
303 |
+
|
304 |
+
[node name="MeshInstance3" type="MeshInstance3D" parent="Walls"]
|
305 |
+
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -215, -24.1131, 1)
|
306 |
+
mesh = SubResource("5")
|
307 |
+
|
308 |
+
[node name="MeshInstance4" type="MeshInstance3D" parent="Walls"]
|
309 |
+
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 285, -24.1131, -2)
|
310 |
+
mesh = SubResource("5")
|
311 |
+
|
312 |
+
[connection signal="body_exited" from="GameArea" to="GameArea" method="_on_GameArea_body_exited"]
|
GameArea.gd
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Area3D
|
2 |
+
|
3 |
+
|
4 |
+
func _on_GameArea_body_exited(body):
|
5 |
+
body.exited_game_area()
|
Goal.gd
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends CSGTorus3D
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
func _on_Area_body_entered(body):
|
6 |
+
body.goal_reached(self)
|
Goal.tscn
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=4 format=3 uid="uid://bjx0dykb8q6kf"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://Goal.gd" id="1"]
|
4 |
+
|
5 |
+
[sub_resource type="StandardMaterial3D" id="1"]
|
6 |
+
transparency = 1
|
7 |
+
albedo_color = Color(0.372549, 0.0823529, 0.109804, 0.705882)
|
8 |
+
|
9 |
+
[sub_resource type="CylinderShape3D" id="2"]
|
10 |
+
height = 1.0
|
11 |
+
radius = 5.0
|
12 |
+
|
13 |
+
[node name="Goal" type="CSGTorus3D"]
|
14 |
+
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 34, 11)
|
15 |
+
inner_radius = 8.0
|
16 |
+
outer_radius = 10.0
|
17 |
+
sides = 32
|
18 |
+
ring_sides = 12
|
19 |
+
material = SubResource("1")
|
20 |
+
script = ExtResource("1")
|
21 |
+
|
22 |
+
[node name="Area3D" type="Area3D" parent="."]
|
23 |
+
|
24 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
25 |
+
shape = SubResource("2")
|
26 |
+
|
27 |
+
[connection signal="body_entered" from="Area3D" to="." method="_on_Area_body_entered"]
|
Plane.gd
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends CharacterBody3D
|
2 |
+
|
3 |
+
# Maximum airspeed
|
4 |
+
var max_flight_speed = 30
|
5 |
+
# Turn rate
|
6 |
+
@export var turn_speed = 5.0
|
7 |
+
@export var level_speed = 12.0
|
8 |
+
@export var turn_acc = 4.0
|
9 |
+
# Climb/dive rate
|
10 |
+
var pitch_speed = 2.0
|
11 |
+
# Wings "autolevel" speed
|
12 |
+
# Throttle change speed
|
13 |
+
var throttle_delta = 30
|
14 |
+
# Acceleration/deceleration
|
15 |
+
var acceleration = 6.0
|
16 |
+
# Current speed
|
17 |
+
var forward_speed = 0
|
18 |
+
# Throttle input speed
|
19 |
+
var target_speed = 0
|
20 |
+
|
21 |
+
#var velocity = Vector3.ZERO
|
22 |
+
var found_goal = false
|
23 |
+
var exited_arena = false
|
24 |
+
var cur_goal = null
|
25 |
+
@onready var environment = get_parent()
|
26 |
+
@onready var ai_controller = $AIController3D
|
27 |
+
# ------- #
|
28 |
+
var turn_input = 0
|
29 |
+
var pitch_input = 0
|
30 |
+
var best_goal_distance := 10000.0
|
31 |
+
var transform_backup = null
|
32 |
+
|
33 |
+
|
34 |
+
func _ready():
|
35 |
+
ai_controller.init(self)
|
36 |
+
transform_backup = transform
|
37 |
+
|
38 |
+
|
39 |
+
func game_over():
|
40 |
+
cur_goal = environment.get_next_goal(null)
|
41 |
+
transform_backup = transform_backup
|
42 |
+
position.x = 0 + randf_range(-2, 2)
|
43 |
+
position.y = 27 + randf_range(-2, 2)
|
44 |
+
position.z = 0 + randf_range(-2, 2)
|
45 |
+
velocity = Vector3.ZERO
|
46 |
+
rotation = Vector3.ZERO
|
47 |
+
found_goal = false
|
48 |
+
exited_arena = false
|
49 |
+
best_goal_distance = to_local(cur_goal.position).length()
|
50 |
+
ai_controller.reset()
|
51 |
+
|
52 |
+
|
53 |
+
func update_reward():
|
54 |
+
ai_controller.reward -= 0.01 # step penalty
|
55 |
+
ai_controller.reward += shaping_reward()
|
56 |
+
|
57 |
+
|
58 |
+
func shaping_reward():
|
59 |
+
var s_reward = 0.0
|
60 |
+
var goal_distance = to_local(cur_goal.position).length()
|
61 |
+
if goal_distance < best_goal_distance:
|
62 |
+
s_reward += best_goal_distance - goal_distance
|
63 |
+
best_goal_distance = goal_distance
|
64 |
+
|
65 |
+
s_reward /= 1.0
|
66 |
+
return s_reward
|
67 |
+
|
68 |
+
|
69 |
+
func set_heuristic(heuristic):
|
70 |
+
self._heuristic = heuristic
|
71 |
+
|
72 |
+
|
73 |
+
func _physics_process(delta):
|
74 |
+
if ai_controller.needs_reset:
|
75 |
+
game_over()
|
76 |
+
return
|
77 |
+
|
78 |
+
if cur_goal == null:
|
79 |
+
game_over()
|
80 |
+
set_input()
|
81 |
+
if Input.is_action_just_pressed("r_key"):
|
82 |
+
game_over()
|
83 |
+
# Rotate the transform based checked the input values
|
84 |
+
transform.basis = transform.basis.rotated(
|
85 |
+
transform.basis.x.normalized(), pitch_input * pitch_speed * delta
|
86 |
+
)
|
87 |
+
transform.basis = transform.basis.rotated(Vector3.UP, turn_input * turn_speed * delta)
|
88 |
+
$PlaneModel.rotation.z = lerp($PlaneModel.rotation.z, -float(turn_input), level_speed * delta)
|
89 |
+
$PlaneModel.rotation.x = lerp($PlaneModel.rotation.x, -float(pitch_input), level_speed * delta)
|
90 |
+
|
91 |
+
# Movement is always forward
|
92 |
+
velocity = -transform.basis.z.normalized() * max_flight_speed
|
93 |
+
# Handle landing/taking unchecked
|
94 |
+
set_velocity(velocity)
|
95 |
+
set_up_direction(Vector3.UP)
|
96 |
+
move_and_slide()
|
97 |
+
update_reward()
|
98 |
+
|
99 |
+
|
100 |
+
func set_input():
|
101 |
+
if ai_controller.heuristic == "model":
|
102 |
+
return
|
103 |
+
else:
|
104 |
+
turn_input = (
|
105 |
+
Input.get_action_strength("roll_left") - Input.get_action_strength("roll_right")
|
106 |
+
)
|
107 |
+
pitch_input = (
|
108 |
+
Input.get_action_strength("pitch_up") - Input.get_action_strength("pitch_down")
|
109 |
+
)
|
110 |
+
|
111 |
+
|
112 |
+
func goal_reached(goal):
|
113 |
+
if goal == cur_goal:
|
114 |
+
ai_controller.reward += 100.0
|
115 |
+
cur_goal = environment.get_next_goal(cur_goal)
|
116 |
+
|
117 |
+
|
118 |
+
func exited_game_area():
|
119 |
+
ai_controller.done = true
|
120 |
+
ai_controller.reward -= 10.0
|
121 |
+
exited_arena = true
|
122 |
+
game_over()
|
Plane.tscn
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=5 format=3 uid="uid://3xxv82w5v8bo"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://Plane.gd" id="2"]
|
4 |
+
[ext_resource type="PackedScene" uid="uid://bo7tjnr5viqq" path="res://cartoon_plane/scene.gltf" id="2_0hy0d"]
|
5 |
+
[ext_resource type="Script" path="res://AIController3D.gd" id="3_y1d1w"]
|
6 |
+
|
7 |
+
[sub_resource type="CylinderShape3D" id="27"]
|
8 |
+
height = 7.77792
|
9 |
+
|
10 |
+
[node name="Plane" type="CharacterBody3D"]
|
11 |
+
collision_mask = 2
|
12 |
+
script = ExtResource("2")
|
13 |
+
turn_speed = 2.0
|
14 |
+
level_speed = 2.0
|
15 |
+
|
16 |
+
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
17 |
+
transform = Transform3D(1, 0, 0, 0, -0.00176279, -0.999998, 0, 0.999998, -0.00176279, 0, -0.43198, 0.299141)
|
18 |
+
shape = SubResource("27")
|
19 |
+
|
20 |
+
[node name="PlaneModel" parent="." instance=ExtResource("2_0hy0d")]
|
21 |
+
transform = Transform3D(-0.01, 0, -8.74228e-10, 0, 0.01, 0, 8.74228e-10, 0, -0.01, 0, 0, 0)
|
22 |
+
|
23 |
+
[node name="Camera3D" type="Camera3D" parent="."]
|
24 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 21.4392)
|
25 |
+
|
26 |
+
[node name="AIController3D" type="Node3D" parent="." groups=["AGENT"]]
|
27 |
+
script = ExtResource("3_y1d1w")
|
28 |
+
reset_after = 200000
|
PlaneModel.gd
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
|
3 |
+
|
4 |
+
@onready var anim = $AnimationPlayer
|
5 |
+
|
6 |
+
# Called when the node enters the scene tree for the first time.
|
7 |
+
func _ready():
|
8 |
+
get_node("AnimationPlayer").get_animation("Main")#.set_loop(true)
|
9 |
+
anim.play("Main")
|
PlaneModel.tscn
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=2]
|
2 |
+
|
3 |
+
[ext_resource path="res://cartoon_plane/scene.gltf" type="PackedScene" id=1]
|
4 |
+
|
5 |
+
[node name="PlaneModel" instance=ExtResource( 1 )]
|
6 |
+
transform = Transform3D( 0.01, 0, 0, 0, 0.01, 0, 0, 0, 0.01, 0, 0, 0 )
|
7 |
+
|
8 |
+
[node name="RootNode (gltf orientation matrix)" parent="." index="0"]
|
9 |
+
transform = Transform3D( -1, 8.74228e-08, 3.82137e-15, 0, -4.37114e-08, 1, 8.74228e-08, 1, 4.37114e-08, 0, 0, 0 )
|
10 |
+
|
11 |
+
[node name="Propeller_1" parent="RootNode (gltf orientation matrix)/RootNode (model correction matrix)/12cc6a9ff2ae45b08826ba235d9cb8b7fbx/Node/RootNode" index="0"]
|
12 |
+
transform = Transform3D( -0.791092, -0.611698, 0, 0.611698, -0.791092, 0, 0, 0, 1, 0.873349, -46.0248, 401.434 )
|
13 |
+
|
14 |
+
[node name="Physical_Sky" parent="RootNode (gltf orientation matrix)/RootNode (model correction matrix)/12cc6a9ff2ae45b08826ba235d9cb8b7fbx/Node/RootNode" index="1"]
|
15 |
+
transform = Transform3D( 0.879922, 0.00248785, -0.475112, 0.0222404, 0.998674, 0.0464192, 0.474598, -0.051412, 0.8787, 0, 0, 0 )
|
16 |
+
visible = false
|
17 |
+
|
18 |
+
[node name="Shadow_Plane" parent="RootNode (gltf orientation matrix)/RootNode (model correction matrix)/12cc6a9ff2ae45b08826ba235d9cb8b7fbx/Node/RootNode/Physical_Sky" index="1"]
|
19 |
+
visible = false
|
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: godot-rl
|
3 |
+
tags:
|
4 |
+
- deep-reinforcement-learning
|
5 |
+
- reinforcement-learning
|
6 |
+
- godot-rl
|
7 |
+
- environments
|
8 |
+
- video-games
|
9 |
+
---
|
10 |
+
|
11 |
+
A RL environment called FlyBy for the Godot Game Engine.
|
12 |
+
|
13 |
+
This environment was created with: https://github.com/edbeeching/godot_rl_agents
|
14 |
+
|
15 |
+
|
16 |
+
## Downloading the environment
|
17 |
+
|
18 |
+
After installing Godot RL Agents, download the environment with:
|
19 |
+
|
20 |
+
```
|
21 |
+
gdrl.env_from_hub -r jtatman/godot_rl_FlyBy
|
22 |
+
```
|
23 |
+
|
24 |
+
|
25 |
+
|
addons/godot_rl_agents/controller/ai_controller_2d.gd
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node2D
|
2 |
+
class_name AIController2D
|
3 |
+
|
4 |
+
enum ControlModes { INHERIT_FROM_SYNC, HUMAN, TRAINING, ONNX_INFERENCE, RECORD_EXPERT_DEMOS }
|
5 |
+
@export var control_mode: ControlModes = ControlModes.INHERIT_FROM_SYNC
|
6 |
+
@export var onnx_model_path := ""
|
7 |
+
@export var reset_after := 1000
|
8 |
+
|
9 |
+
@export_group("Record expert demos mode options")
|
10 |
+
## Path where the demos will be saved. The file can later be used for imitation learning.
|
11 |
+
@export var expert_demo_save_path: String
|
12 |
+
## The action that erases the last recorded episode from the currently recorded data.
|
13 |
+
@export var remove_last_episode_key: InputEvent
|
14 |
+
## Action will be repeated for n frames. Will introduce control lag if larger than 1.
|
15 |
+
## Can be used to ensure that action_repeat on inference and training matches
|
16 |
+
## the recorded demonstrations.
|
17 |
+
@export var action_repeat: int = 1
|
18 |
+
|
19 |
+
var onnx_model: ONNXModel
|
20 |
+
|
21 |
+
var heuristic := "human"
|
22 |
+
var done := false
|
23 |
+
var reward := 0.0
|
24 |
+
var n_steps := 0
|
25 |
+
var needs_reset := false
|
26 |
+
|
27 |
+
var _player: Node2D
|
28 |
+
|
29 |
+
|
30 |
+
func _ready():
|
31 |
+
add_to_group("AGENT")
|
32 |
+
|
33 |
+
|
34 |
+
func init(player: Node2D):
|
35 |
+
_player = player
|
36 |
+
|
37 |
+
|
38 |
+
#-- Methods that need implementing using the "extend script" option in Godot --#
|
39 |
+
func get_obs() -> Dictionary:
|
40 |
+
assert(false, "the get_obs method is not implemented when extending from ai_controller")
|
41 |
+
return {"obs": []}
|
42 |
+
|
43 |
+
|
44 |
+
func get_reward() -> float:
|
45 |
+
assert(false, "the get_reward method is not implemented when extending from ai_controller")
|
46 |
+
return 0.0
|
47 |
+
|
48 |
+
|
49 |
+
func get_action_space() -> Dictionary:
|
50 |
+
assert(
|
51 |
+
false,
|
52 |
+
"the get get_action_space method is not implemented when extending from ai_controller"
|
53 |
+
)
|
54 |
+
return {
|
55 |
+
"example_actions_continous": {"size": 2, "action_type": "continuous"},
|
56 |
+
"example_actions_discrete": {"size": 2, "action_type": "discrete"},
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
func set_action(action) -> void:
|
61 |
+
assert(false, "the get set_action method is not implemented when extending from ai_controller")
|
62 |
+
|
63 |
+
|
64 |
+
#-----------------------------------------------------------------------------#
|
65 |
+
|
66 |
+
|
67 |
+
#-- Methods that sometimes need implementing using the "extend script" option in Godot --#
|
68 |
+
# Only needed if you are recording expert demos with this AIController
|
69 |
+
func get_action() -> Array:
|
70 |
+
assert(false, "the get set_action method is not implemented in extended AIController but demo_recorder is used")
|
71 |
+
return []
|
72 |
+
|
73 |
+
# -----------------------------------------------------------------------------#
|
74 |
+
|
75 |
+
func _physics_process(delta):
|
76 |
+
n_steps += 1
|
77 |
+
if n_steps > reset_after:
|
78 |
+
needs_reset = true
|
79 |
+
|
80 |
+
|
81 |
+
func get_obs_space():
|
82 |
+
# may need overriding if the obs space is complex
|
83 |
+
var obs = get_obs()
|
84 |
+
return {
|
85 |
+
"obs": {"size": [len(obs["obs"])], "space": "box"},
|
86 |
+
}
|
87 |
+
|
88 |
+
|
89 |
+
func reset():
|
90 |
+
n_steps = 0
|
91 |
+
needs_reset = false
|
92 |
+
|
93 |
+
|
94 |
+
func reset_if_done():
|
95 |
+
if done:
|
96 |
+
reset()
|
97 |
+
|
98 |
+
|
99 |
+
func set_heuristic(h):
|
100 |
+
# sets the heuristic from "human" or "model" nothing to change here
|
101 |
+
heuristic = h
|
102 |
+
|
103 |
+
|
104 |
+
func get_done():
|
105 |
+
return done
|
106 |
+
|
107 |
+
|
108 |
+
func set_done_false():
|
109 |
+
done = false
|
110 |
+
|
111 |
+
|
112 |
+
func zero_reward():
|
113 |
+
reward = 0.0
|
addons/godot_rl_agents/controller/ai_controller_3d.gd
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name AIController3D
|
3 |
+
|
4 |
+
enum ControlModes { INHERIT_FROM_SYNC, HUMAN, TRAINING, ONNX_INFERENCE, RECORD_EXPERT_DEMOS }
|
5 |
+
@export var control_mode: ControlModes = ControlModes.INHERIT_FROM_SYNC
|
6 |
+
@export var onnx_model_path := ""
|
7 |
+
@export var reset_after := 1000
|
8 |
+
|
9 |
+
@export_group("Record expert demos mode options")
|
10 |
+
## Path where the demos will be saved. The file can later be used for imitation learning.
|
11 |
+
@export var expert_demo_save_path: String
|
12 |
+
## The action that erases the last recorded episode from the currently recorded data.
|
13 |
+
@export var remove_last_episode_key: InputEvent
|
14 |
+
## Action will be repeated for n frames. Will introduce control lag if larger than 1.
|
15 |
+
## Can be used to ensure that action_repeat on inference and training matches
|
16 |
+
## the recorded demonstrations.
|
17 |
+
@export var action_repeat: int = 1
|
18 |
+
|
19 |
+
var onnx_model: ONNXModel
|
20 |
+
|
21 |
+
var heuristic := "human"
|
22 |
+
var done := false
|
23 |
+
var reward := 0.0
|
24 |
+
var n_steps := 0
|
25 |
+
var needs_reset := false
|
26 |
+
|
27 |
+
var _player: Node3D
|
28 |
+
|
29 |
+
|
30 |
+
func _ready():
|
31 |
+
add_to_group("AGENT")
|
32 |
+
|
33 |
+
|
34 |
+
func init(player: Node3D):
|
35 |
+
_player = player
|
36 |
+
|
37 |
+
|
38 |
+
#-- Methods that need implementing using the "extend script" option in Godot --#
|
39 |
+
func get_obs() -> Dictionary:
|
40 |
+
assert(false, "the get_obs method is not implemented when extending from ai_controller")
|
41 |
+
return {"obs": []}
|
42 |
+
|
43 |
+
|
44 |
+
func get_reward() -> float:
|
45 |
+
assert(false, "the get_reward method is not implemented when extending from ai_controller")
|
46 |
+
return 0.0
|
47 |
+
|
48 |
+
|
49 |
+
func get_action_space() -> Dictionary:
|
50 |
+
assert(
|
51 |
+
false,
|
52 |
+
"the get get_action_space method is not implemented when extending from ai_controller"
|
53 |
+
)
|
54 |
+
return {
|
55 |
+
"example_actions_continous": {"size": 2, "action_type": "continuous"},
|
56 |
+
"example_actions_discrete": {"size": 2, "action_type": "discrete"},
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
func set_action(action) -> void:
|
61 |
+
assert(false, "the get set_action method is not implemented when extending from ai_controller")
|
62 |
+
|
63 |
+
|
64 |
+
#-----------------------------------------------------------------------------#
|
65 |
+
|
66 |
+
|
67 |
+
#-- Methods that sometimes need implementing using the "extend script" option in Godot --#
|
68 |
+
# Only needed if you are recording expert demos with this AIController
|
69 |
+
func get_action() -> Array:
|
70 |
+
assert(false, "the get set_action method is not implemented in extended AIController but demo_recorder is used")
|
71 |
+
return []
|
72 |
+
|
73 |
+
# -----------------------------------------------------------------------------#
|
74 |
+
|
75 |
+
|
76 |
+
func _physics_process(delta):
|
77 |
+
n_steps += 1
|
78 |
+
if n_steps > reset_after:
|
79 |
+
needs_reset = true
|
80 |
+
|
81 |
+
|
82 |
+
func get_obs_space():
|
83 |
+
# may need overriding if the obs space is complex
|
84 |
+
var obs = get_obs()
|
85 |
+
return {
|
86 |
+
"obs": {"size": [len(obs["obs"])], "space": "box"},
|
87 |
+
}
|
88 |
+
|
89 |
+
|
90 |
+
func reset():
|
91 |
+
n_steps = 0
|
92 |
+
needs_reset = false
|
93 |
+
|
94 |
+
|
95 |
+
func reset_if_done():
|
96 |
+
if done:
|
97 |
+
reset()
|
98 |
+
|
99 |
+
|
100 |
+
func set_heuristic(h):
|
101 |
+
# sets the heuristic from "human" or "model" nothing to change here
|
102 |
+
heuristic = h
|
103 |
+
|
104 |
+
|
105 |
+
func get_done():
|
106 |
+
return done
|
107 |
+
|
108 |
+
|
109 |
+
func set_done_false():
|
110 |
+
done = false
|
111 |
+
|
112 |
+
|
113 |
+
func zero_reward():
|
114 |
+
reward = 0.0
|
addons/godot_rl_agents/godot_rl_agents.gd
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends EditorPlugin
|
3 |
+
|
4 |
+
|
5 |
+
func _enter_tree():
|
6 |
+
# Initialization of the plugin goes here.
|
7 |
+
# Add the new type with a name, a parent type, a script and an icon.
|
8 |
+
add_custom_type("Sync", "Node", preload("sync.gd"), preload("icon.png"))
|
9 |
+
#add_custom_type("RaycastSensor2D2", "Node", preload("raycast_sensor_2d.gd"), preload("icon.png"))
|
10 |
+
|
11 |
+
|
12 |
+
func _exit_tree():
|
13 |
+
# Clean-up of the plugin goes here.
|
14 |
+
# Always remember to remove it from the engine when deactivated.
|
15 |
+
remove_custom_type("Sync")
|
16 |
+
#remove_custom_type("RaycastSensor2D2")
|
addons/godot_rl_agents/icon.png
ADDED
Git LFS Details
|
addons/godot_rl_agents/onnx/csharp/ONNXInference.cs
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using Microsoft.ML.OnnxRuntime;
|
3 |
+
using Microsoft.ML.OnnxRuntime.Tensors;
|
4 |
+
using System.Collections.Generic;
|
5 |
+
using System.Linq;
|
6 |
+
|
7 |
+
namespace GodotONNX
|
8 |
+
{
|
9 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/ONNXInference/*'/>
|
10 |
+
public partial class ONNXInference : GodotObject
|
11 |
+
{
|
12 |
+
|
13 |
+
private InferenceSession session;
|
14 |
+
/// <summary>
|
15 |
+
/// Path to the ONNX model. Use Initialize to change it.
|
16 |
+
/// </summary>
|
17 |
+
private string modelPath;
|
18 |
+
private int batchSize;
|
19 |
+
|
20 |
+
private SessionOptions SessionOpt;
|
21 |
+
|
22 |
+
//init function
|
23 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Initialize/*'/>
|
24 |
+
public void Initialize(string Path, int BatchSize)
|
25 |
+
{
|
26 |
+
modelPath = Path;
|
27 |
+
batchSize = BatchSize;
|
28 |
+
SessionOpt = SessionConfigurator.MakeConfiguredSessionOptions();
|
29 |
+
session = LoadModel(modelPath);
|
30 |
+
|
31 |
+
}
|
32 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Run/*'/>
|
33 |
+
public Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> RunInference(Godot.Collections.Array<float> obs, int state_ins)
|
34 |
+
{
|
35 |
+
//Current model: Any (Godot Rl Agents)
|
36 |
+
//Expects a tensor of shape [batch_size, input_size] type float named obs and a tensor of shape [batch_size] type float named state_ins
|
37 |
+
|
38 |
+
//Fill the input tensors
|
39 |
+
// create span from inputSize
|
40 |
+
var span = new float[obs.Count]; //There's probably a better way to do this
|
41 |
+
for (int i = 0; i < obs.Count; i++)
|
42 |
+
{
|
43 |
+
span[i] = obs[i];
|
44 |
+
}
|
45 |
+
|
46 |
+
IReadOnlyCollection<NamedOnnxValue> inputs = new List<NamedOnnxValue>
|
47 |
+
{
|
48 |
+
NamedOnnxValue.CreateFromTensor("obs", new DenseTensor<float>(span, new int[] { batchSize, obs.Count })),
|
49 |
+
NamedOnnxValue.CreateFromTensor("state_ins", new DenseTensor<float>(new float[] { state_ins }, new int[] { batchSize }))
|
50 |
+
};
|
51 |
+
IReadOnlyCollection<string> outputNames = new List<string> { "output", "state_outs" }; //ONNX is sensible to these names, as well as the input names
|
52 |
+
|
53 |
+
IDisposableReadOnlyCollection<DisposableNamedOnnxValue> results;
|
54 |
+
//We do not use "using" here so we get a better exception explaination later
|
55 |
+
try
|
56 |
+
{
|
57 |
+
results = session.Run(inputs, outputNames);
|
58 |
+
}
|
59 |
+
catch (OnnxRuntimeException e)
|
60 |
+
{
|
61 |
+
//This error usually means that the model is not compatible with the input, beacause of the input shape (size)
|
62 |
+
GD.Print("Error at inference: ", e);
|
63 |
+
return null;
|
64 |
+
}
|
65 |
+
//Can't convert IEnumerable<float> to Variant, so we have to convert it to an array or something
|
66 |
+
Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> output = new Godot.Collections.Dictionary<string, Godot.Collections.Array<float>>();
|
67 |
+
DisposableNamedOnnxValue output1 = results.First();
|
68 |
+
DisposableNamedOnnxValue output2 = results.Last();
|
69 |
+
Godot.Collections.Array<float> output1Array = new Godot.Collections.Array<float>();
|
70 |
+
Godot.Collections.Array<float> output2Array = new Godot.Collections.Array<float>();
|
71 |
+
|
72 |
+
foreach (float f in output1.AsEnumerable<float>())
|
73 |
+
{
|
74 |
+
output1Array.Add(f);
|
75 |
+
}
|
76 |
+
|
77 |
+
foreach (float f in output2.AsEnumerable<float>())
|
78 |
+
{
|
79 |
+
output2Array.Add(f);
|
80 |
+
}
|
81 |
+
|
82 |
+
output.Add(output1.Name, output1Array);
|
83 |
+
output.Add(output2.Name, output2Array);
|
84 |
+
|
85 |
+
//Output is a dictionary of arrays, ex: { "output" : [0.1, 0.2, 0.3, 0.4, ...], "state_outs" : [0.5, ...]}
|
86 |
+
results.Dispose();
|
87 |
+
return output;
|
88 |
+
}
|
89 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Load/*'/>
|
90 |
+
public InferenceSession LoadModel(string Path)
|
91 |
+
{
|
92 |
+
using Godot.FileAccess file = FileAccess.Open(Path, Godot.FileAccess.ModeFlags.Read);
|
93 |
+
byte[] model = file.GetBuffer((int)file.GetLength());
|
94 |
+
//file.Close(); file.Dispose(); //Close the file, then dispose the reference.
|
95 |
+
return new InferenceSession(model, SessionOpt); //Load the model
|
96 |
+
}
|
97 |
+
public void FreeDisposables()
|
98 |
+
{
|
99 |
+
session.Dispose();
|
100 |
+
SessionOpt.Dispose();
|
101 |
+
}
|
102 |
+
}
|
103 |
+
}
|
addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using Microsoft.ML.OnnxRuntime;
|
3 |
+
|
4 |
+
namespace GodotONNX
|
5 |
+
{
|
6 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SessionConfigurator/*'/>
|
7 |
+
|
8 |
+
public static class SessionConfigurator
|
9 |
+
{
|
10 |
+
public enum ComputeName
|
11 |
+
{
|
12 |
+
CUDA,
|
13 |
+
ROCm,
|
14 |
+
DirectML,
|
15 |
+
CoreML,
|
16 |
+
CPU
|
17 |
+
}
|
18 |
+
|
19 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/GetSessionOptions/*'/>
|
20 |
+
public static SessionOptions MakeConfiguredSessionOptions()
|
21 |
+
{
|
22 |
+
SessionOptions sessionOptions = new();
|
23 |
+
SetOptions(sessionOptions);
|
24 |
+
return sessionOptions;
|
25 |
+
}
|
26 |
+
|
27 |
+
private static void SetOptions(SessionOptions sessionOptions)
|
28 |
+
{
|
29 |
+
sessionOptions.LogSeverityLevel = OrtLoggingLevel.ORT_LOGGING_LEVEL_WARNING;
|
30 |
+
ApplySystemSpecificOptions(sessionOptions);
|
31 |
+
}
|
32 |
+
|
33 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SystemCheck/*'/>
|
34 |
+
static public void ApplySystemSpecificOptions(SessionOptions sessionOptions)
|
35 |
+
{
|
36 |
+
//Most code for this function is verbose only, the only reason it exists is to track
|
37 |
+
//implementation progress of the different compute APIs.
|
38 |
+
|
39 |
+
//December 2022: CUDA is not working.
|
40 |
+
|
41 |
+
string OSName = OS.GetName(); //Get OS Name
|
42 |
+
|
43 |
+
//ComputeName ComputeAPI = ComputeCheck(); //Get Compute API
|
44 |
+
// //TODO: Get CPU architecture
|
45 |
+
|
46 |
+
//Linux can use OpenVINO (C#) on x64 and ROCm on x86 (GDNative/C++)
|
47 |
+
//Windows can use OpenVINO (C#) on x64
|
48 |
+
//TODO: try TensorRT instead of CUDA
|
49 |
+
//TODO: Use OpenVINO for Intel Graphics
|
50 |
+
|
51 |
+
// Temporarily using CPU on all platforms to avoid errors detected with DML
|
52 |
+
ComputeName ComputeAPI = ComputeName.CPU;
|
53 |
+
|
54 |
+
//match OS and Compute API
|
55 |
+
GD.Print($"OS: {OSName} Compute API: {ComputeAPI}");
|
56 |
+
|
57 |
+
// CPU is set by default without appending necessary
|
58 |
+
// sessionOptions.AppendExecutionProvider_CPU(0);
|
59 |
+
|
60 |
+
/*
|
61 |
+
switch (OSName)
|
62 |
+
{
|
63 |
+
case "Windows": //Can use CUDA, DirectML
|
64 |
+
if (ComputeAPI is ComputeName.CUDA)
|
65 |
+
{
|
66 |
+
//CUDA
|
67 |
+
//sessionOptions.AppendExecutionProvider_CUDA(0);
|
68 |
+
//sessionOptions.AppendExecutionProvider_DML(0);
|
69 |
+
}
|
70 |
+
else if (ComputeAPI is ComputeName.DirectML)
|
71 |
+
{
|
72 |
+
//DirectML
|
73 |
+
//sessionOptions.AppendExecutionProvider_DML(0);
|
74 |
+
}
|
75 |
+
break;
|
76 |
+
case "X11": //Can use CUDA, ROCm
|
77 |
+
if (ComputeAPI is ComputeName.CUDA)
|
78 |
+
{
|
79 |
+
//CUDA
|
80 |
+
//sessionOptions.AppendExecutionProvider_CUDA(0);
|
81 |
+
}
|
82 |
+
if (ComputeAPI is ComputeName.ROCm)
|
83 |
+
{
|
84 |
+
//ROCm, only works on x86
|
85 |
+
//Research indicates that this has to be compiled as a GDNative plugin
|
86 |
+
//GD.Print("ROCm not supported yet, using CPU.");
|
87 |
+
//sessionOptions.AppendExecutionProvider_CPU(0);
|
88 |
+
}
|
89 |
+
break;
|
90 |
+
case "macOS": //Can use CoreML
|
91 |
+
if (ComputeAPI is ComputeName.CoreML)
|
92 |
+
{ //CoreML
|
93 |
+
//TODO: Needs testing
|
94 |
+
//sessionOptions.AppendExecutionProvider_CoreML(0);
|
95 |
+
//CoreML on ARM64, out of the box, on x64 needs .tar file from GitHub
|
96 |
+
}
|
97 |
+
break;
|
98 |
+
default:
|
99 |
+
GD.Print("OS not Supported.");
|
100 |
+
break;
|
101 |
+
}
|
102 |
+
*/
|
103 |
+
}
|
104 |
+
|
105 |
+
|
106 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/ComputeCheck/*'/>
|
107 |
+
public static ComputeName ComputeCheck()
|
108 |
+
{
|
109 |
+
string adapterName = Godot.RenderingServer.GetVideoAdapterName();
|
110 |
+
//string adapterVendor = Godot.RenderingServer.GetVideoAdapterVendor();
|
111 |
+
adapterName = adapterName.ToUpper(new System.Globalization.CultureInfo(""));
|
112 |
+
//TODO: GPU vendors for MacOS, what do they even use these days?
|
113 |
+
|
114 |
+
if (adapterName.Contains("INTEL"))
|
115 |
+
{
|
116 |
+
return ComputeName.DirectML;
|
117 |
+
}
|
118 |
+
if (adapterName.Contains("AMD") || adapterName.Contains("RADEON"))
|
119 |
+
{
|
120 |
+
return ComputeName.DirectML;
|
121 |
+
}
|
122 |
+
if (adapterName.Contains("NVIDIA"))
|
123 |
+
{
|
124 |
+
return ComputeName.CUDA;
|
125 |
+
}
|
126 |
+
|
127 |
+
GD.Print("Graphics Card not recognized."); //Should use CPU
|
128 |
+
return ComputeName.CPU;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="ONNXInference">
|
3 |
+
<ONNXInference>
|
4 |
+
<summary>
|
5 |
+
The main <c>ONNXInference</c> Class that handles the inference process.
|
6 |
+
</summary>
|
7 |
+
</ONNXInference>
|
8 |
+
<Initialize>
|
9 |
+
<summary>
|
10 |
+
Starts the inference process.
|
11 |
+
</summary>
|
12 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
13 |
+
<param name="BatchSize">How many observations will the model recieve.</param>
|
14 |
+
</Initialize>
|
15 |
+
<Run>
|
16 |
+
<summary>
|
17 |
+
Runs the given input through the model and returns the output.
|
18 |
+
</summary>
|
19 |
+
<param name="obs">Dictionary containing all observations.</param>
|
20 |
+
<param name="state_ins">How many different agents are creating these observations.</param>
|
21 |
+
<returns>A Dictionary of arrays, containing instructions based on the observations.</returns>
|
22 |
+
</Run>
|
23 |
+
<Load>
|
24 |
+
<summary>
|
25 |
+
Loads the given model into the inference process, using the best Execution provider available.
|
26 |
+
</summary>
|
27 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
28 |
+
<returns>InferenceSession ready to run.</returns>
|
29 |
+
</Load>
|
30 |
+
</members>
|
31 |
+
</docs>
|
addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="SessionConfigurator">
|
3 |
+
<SessionConfigurator>
|
4 |
+
<summary>
|
5 |
+
The main <c>SessionConfigurator</c> Class that handles the execution options and providers for the inference process.
|
6 |
+
</summary>
|
7 |
+
</SessionConfigurator>
|
8 |
+
<GetSessionOptions>
|
9 |
+
<summary>
|
10 |
+
Creates a SessionOptions with all available execution providers.
|
11 |
+
</summary>
|
12 |
+
<returns>SessionOptions with all available execution providers.</returns>
|
13 |
+
</GetSessionOptions>
|
14 |
+
<SystemCheck>
|
15 |
+
<summary>
|
16 |
+
Appends any execution provider available in the current system.
|
17 |
+
</summary>
|
18 |
+
<remarks>
|
19 |
+
This function is mainly verbose for tracking implementation progress of different compute APIs.
|
20 |
+
</remarks>
|
21 |
+
</SystemCheck>
|
22 |
+
<ComputeCheck>
|
23 |
+
<summary>
|
24 |
+
Checks for available GPUs.
|
25 |
+
</summary>
|
26 |
+
<returns>An integer identifier for each compute platform.</returns>
|
27 |
+
</ComputeCheck>
|
28 |
+
</members>
|
29 |
+
</docs>
|
addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Resource
|
2 |
+
class_name ONNXModel
|
3 |
+
var inferencer_script = load("res://addons/godot_rl_agents/onnx/csharp/ONNXInference.cs")
|
4 |
+
|
5 |
+
var inferencer = null
|
6 |
+
|
7 |
+
|
8 |
+
# Must provide the path to the model and the batch size
|
9 |
+
func _init(model_path, batch_size):
|
10 |
+
inferencer = inferencer_script.new()
|
11 |
+
inferencer.Initialize(model_path, batch_size)
|
12 |
+
|
13 |
+
|
14 |
+
# This function is the one that will be called from the game,
|
15 |
+
# requires the observation as an array and the state_ins as an int
|
16 |
+
# returns an Array containing the action the model takes.
|
17 |
+
func run_inference(obs: Array, state_ins: int) -> Dictionary:
|
18 |
+
if inferencer == null:
|
19 |
+
printerr("Inferencer not initialized")
|
20 |
+
return {}
|
21 |
+
return inferencer.RunInference(obs, state_ins)
|
22 |
+
|
23 |
+
|
24 |
+
func _notification(what):
|
25 |
+
if what == NOTIFICATION_PREDELETE:
|
26 |
+
inferencer.FreeDisposables()
|
27 |
+
inferencer.free()
|
addons/godot_rl_agents/plugin.cfg
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[plugin]
|
2 |
+
|
3 |
+
name="GodotRLAgents"
|
4 |
+
description="Custom nodes for the godot rl agents toolkit "
|
5 |
+
author="Edward Beeching"
|
6 |
+
version="0.1"
|
7 |
+
script="godot_rl_agents.gd"
|
addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=5 format=3 uid="uid://ddeq7mn1ealyc"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
+
|
5 |
+
[sub_resource type="GDScript" id="2"]
|
6 |
+
script/source = "extends Node2D
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
func _physics_process(delta: float) -> void:
|
11 |
+
print(\"step start\")
|
12 |
+
|
13 |
+
"
|
14 |
+
|
15 |
+
[sub_resource type="GDScript" id="1"]
|
16 |
+
script/source = "extends RayCast2D
|
17 |
+
|
18 |
+
var steps = 1
|
19 |
+
|
20 |
+
func _physics_process(delta: float) -> void:
|
21 |
+
print(\"processing raycast\")
|
22 |
+
steps += 1
|
23 |
+
if steps % 2:
|
24 |
+
force_raycast_update()
|
25 |
+
|
26 |
+
print(is_colliding())
|
27 |
+
"
|
28 |
+
|
29 |
+
[sub_resource type="CircleShape2D" id="3"]
|
30 |
+
|
31 |
+
[node name="ExampleRaycastSensor2D" type="Node2D"]
|
32 |
+
script = SubResource("2")
|
33 |
+
|
34 |
+
[node name="ExampleAgent" type="Node2D" parent="."]
|
35 |
+
position = Vector2(573, 314)
|
36 |
+
rotation = 0.286234
|
37 |
+
|
38 |
+
[node name="RaycastSensor2D" type="Node2D" parent="ExampleAgent"]
|
39 |
+
script = ExtResource("1")
|
40 |
+
|
41 |
+
[node name="TestRayCast2D" type="RayCast2D" parent="."]
|
42 |
+
script = SubResource("1")
|
43 |
+
|
44 |
+
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
45 |
+
position = Vector2(1, 52)
|
46 |
+
|
47 |
+
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
48 |
+
shape = SubResource("3")
|
addons/godot_rl_agents/sensors/sensors_2d/GridSensor2D.gd
ADDED
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor2D
|
3 |
+
class_name GridSensor2D
|
4 |
+
|
5 |
+
@export var debug_view := false:
|
6 |
+
get:
|
7 |
+
return debug_view
|
8 |
+
set(value):
|
9 |
+
debug_view = value
|
10 |
+
_update()
|
11 |
+
|
12 |
+
@export_flags_2d_physics var detection_mask := 0:
|
13 |
+
get:
|
14 |
+
return detection_mask
|
15 |
+
set(value):
|
16 |
+
detection_mask = value
|
17 |
+
_update()
|
18 |
+
|
19 |
+
@export var collide_with_areas := false:
|
20 |
+
get:
|
21 |
+
return collide_with_areas
|
22 |
+
set(value):
|
23 |
+
collide_with_areas = value
|
24 |
+
_update()
|
25 |
+
|
26 |
+
@export var collide_with_bodies := true:
|
27 |
+
get:
|
28 |
+
return collide_with_bodies
|
29 |
+
set(value):
|
30 |
+
collide_with_bodies = value
|
31 |
+
_update()
|
32 |
+
|
33 |
+
@export_range(1, 200, 0.1) var cell_width := 20.0:
|
34 |
+
get:
|
35 |
+
return cell_width
|
36 |
+
set(value):
|
37 |
+
cell_width = value
|
38 |
+
_update()
|
39 |
+
|
40 |
+
@export_range(1, 200, 0.1) var cell_height := 20.0:
|
41 |
+
get:
|
42 |
+
return cell_height
|
43 |
+
set(value):
|
44 |
+
cell_height = value
|
45 |
+
_update()
|
46 |
+
|
47 |
+
@export_range(1, 21, 2, "or_greater") var grid_size_x := 3:
|
48 |
+
get:
|
49 |
+
return grid_size_x
|
50 |
+
set(value):
|
51 |
+
grid_size_x = value
|
52 |
+
_update()
|
53 |
+
|
54 |
+
@export_range(1, 21, 2, "or_greater") var grid_size_y := 3:
|
55 |
+
get:
|
56 |
+
return grid_size_y
|
57 |
+
set(value):
|
58 |
+
grid_size_y = value
|
59 |
+
_update()
|
60 |
+
|
61 |
+
var _obs_buffer: PackedFloat64Array
|
62 |
+
var _rectangle_shape: RectangleShape2D
|
63 |
+
var _collision_mapping: Dictionary
|
64 |
+
var _n_layers_per_cell: int
|
65 |
+
|
66 |
+
var _highlighted_cell_color: Color
|
67 |
+
var _standard_cell_color: Color
|
68 |
+
|
69 |
+
|
70 |
+
func get_observation():
|
71 |
+
return _obs_buffer
|
72 |
+
|
73 |
+
|
74 |
+
func _update():
|
75 |
+
if Engine.is_editor_hint():
|
76 |
+
if is_node_ready():
|
77 |
+
_spawn_nodes()
|
78 |
+
|
79 |
+
|
80 |
+
func _ready() -> void:
|
81 |
+
_set_colors()
|
82 |
+
|
83 |
+
if Engine.is_editor_hint():
|
84 |
+
if get_child_count() == 0:
|
85 |
+
_spawn_nodes()
|
86 |
+
else:
|
87 |
+
_spawn_nodes()
|
88 |
+
|
89 |
+
|
90 |
+
func _set_colors() -> void:
|
91 |
+
_standard_cell_color = Color(100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0)
|
92 |
+
_highlighted_cell_color = Color(255.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0)
|
93 |
+
|
94 |
+
|
95 |
+
func _get_collision_mapping() -> Dictionary:
|
96 |
+
# defines which layer is mapped to which cell obs index
|
97 |
+
var total_bits = 0
|
98 |
+
var collision_mapping = {}
|
99 |
+
for i in 32:
|
100 |
+
var bit_mask = 2 ** i
|
101 |
+
if (detection_mask & bit_mask) > 0:
|
102 |
+
collision_mapping[i] = total_bits
|
103 |
+
total_bits += 1
|
104 |
+
|
105 |
+
return collision_mapping
|
106 |
+
|
107 |
+
|
108 |
+
func _spawn_nodes():
|
109 |
+
for cell in get_children():
|
110 |
+
cell.name = "_%s" % cell.name # Otherwise naming below will fail
|
111 |
+
cell.queue_free()
|
112 |
+
|
113 |
+
_collision_mapping = _get_collision_mapping()
|
114 |
+
#prints("collision_mapping", _collision_mapping, len(_collision_mapping))
|
115 |
+
# allocate memory for the observations
|
116 |
+
_n_layers_per_cell = len(_collision_mapping)
|
117 |
+
_obs_buffer = PackedFloat64Array()
|
118 |
+
_obs_buffer.resize(grid_size_x * grid_size_y * _n_layers_per_cell)
|
119 |
+
_obs_buffer.fill(0)
|
120 |
+
#prints(len(_obs_buffer), _obs_buffer )
|
121 |
+
|
122 |
+
_rectangle_shape = RectangleShape2D.new()
|
123 |
+
_rectangle_shape.set_size(Vector2(cell_width, cell_height))
|
124 |
+
|
125 |
+
var shift := Vector2(
|
126 |
+
-(grid_size_x / 2) * cell_width,
|
127 |
+
-(grid_size_y / 2) * cell_height,
|
128 |
+
)
|
129 |
+
|
130 |
+
for i in grid_size_x:
|
131 |
+
for j in grid_size_y:
|
132 |
+
var cell_position = Vector2(i * cell_width, j * cell_height) + shift
|
133 |
+
_create_cell(i, j, cell_position)
|
134 |
+
|
135 |
+
|
136 |
+
func _create_cell(i: int, j: int, position: Vector2):
|
137 |
+
var cell := Area2D.new()
|
138 |
+
cell.position = position
|
139 |
+
cell.name = "GridCell %s %s" % [i, j]
|
140 |
+
cell.modulate = _standard_cell_color
|
141 |
+
|
142 |
+
if collide_with_areas:
|
143 |
+
cell.area_entered.connect(_on_cell_area_entered.bind(i, j))
|
144 |
+
cell.area_exited.connect(_on_cell_area_exited.bind(i, j))
|
145 |
+
|
146 |
+
if collide_with_bodies:
|
147 |
+
cell.body_entered.connect(_on_cell_body_entered.bind(i, j))
|
148 |
+
cell.body_exited.connect(_on_cell_body_exited.bind(i, j))
|
149 |
+
|
150 |
+
cell.collision_layer = 0
|
151 |
+
cell.collision_mask = detection_mask
|
152 |
+
cell.monitorable = true
|
153 |
+
add_child(cell)
|
154 |
+
cell.set_owner(get_tree().edited_scene_root)
|
155 |
+
|
156 |
+
var col_shape := CollisionShape2D.new()
|
157 |
+
col_shape.shape = _rectangle_shape
|
158 |
+
col_shape.name = "CollisionShape2D"
|
159 |
+
cell.add_child(col_shape)
|
160 |
+
col_shape.set_owner(get_tree().edited_scene_root)
|
161 |
+
|
162 |
+
if debug_view:
|
163 |
+
var quad = MeshInstance2D.new()
|
164 |
+
quad.name = "MeshInstance2D"
|
165 |
+
var quad_mesh = QuadMesh.new()
|
166 |
+
|
167 |
+
quad_mesh.set_size(Vector2(cell_width, cell_height))
|
168 |
+
|
169 |
+
quad.mesh = quad_mesh
|
170 |
+
cell.add_child(quad)
|
171 |
+
quad.set_owner(get_tree().edited_scene_root)
|
172 |
+
|
173 |
+
|
174 |
+
func _update_obs(cell_i: int, cell_j: int, collision_layer: int, entered: bool):
|
175 |
+
for key in _collision_mapping:
|
176 |
+
var bit_mask = 2 ** key
|
177 |
+
if (collision_layer & bit_mask) > 0:
|
178 |
+
var collison_map_index = _collision_mapping[key]
|
179 |
+
|
180 |
+
var obs_index = (
|
181 |
+
(cell_i * grid_size_x * _n_layers_per_cell)
|
182 |
+
+ (cell_j * _n_layers_per_cell)
|
183 |
+
+ collison_map_index
|
184 |
+
)
|
185 |
+
#prints(obs_index, cell_i, cell_j)
|
186 |
+
if entered:
|
187 |
+
_obs_buffer[obs_index] += 1
|
188 |
+
else:
|
189 |
+
_obs_buffer[obs_index] -= 1
|
190 |
+
|
191 |
+
|
192 |
+
func _toggle_cell(cell_i: int, cell_j: int):
|
193 |
+
var cell = get_node_or_null("GridCell %s %s" % [cell_i, cell_j])
|
194 |
+
|
195 |
+
if cell == null:
|
196 |
+
print("cell not found, returning")
|
197 |
+
|
198 |
+
var n_hits = 0
|
199 |
+
var start_index = (cell_i * grid_size_x * _n_layers_per_cell) + (cell_j * _n_layers_per_cell)
|
200 |
+
for i in _n_layers_per_cell:
|
201 |
+
n_hits += _obs_buffer[start_index + i]
|
202 |
+
|
203 |
+
if n_hits > 0:
|
204 |
+
cell.modulate = _highlighted_cell_color
|
205 |
+
else:
|
206 |
+
cell.modulate = _standard_cell_color
|
207 |
+
|
208 |
+
|
209 |
+
func _on_cell_area_entered(area: Area2D, cell_i: int, cell_j: int):
|
210 |
+
#prints("_on_cell_area_entered", cell_i, cell_j)
|
211 |
+
_update_obs(cell_i, cell_j, area.collision_layer, true)
|
212 |
+
if debug_view:
|
213 |
+
_toggle_cell(cell_i, cell_j)
|
214 |
+
#print(_obs_buffer)
|
215 |
+
|
216 |
+
|
217 |
+
func _on_cell_area_exited(area: Area2D, cell_i: int, cell_j: int):
|
218 |
+
#prints("_on_cell_area_exited", cell_i, cell_j)
|
219 |
+
_update_obs(cell_i, cell_j, area.collision_layer, false)
|
220 |
+
if debug_view:
|
221 |
+
_toggle_cell(cell_i, cell_j)
|
222 |
+
|
223 |
+
|
224 |
+
func _on_cell_body_entered(body: Node2D, cell_i: int, cell_j: int):
|
225 |
+
#prints("_on_cell_body_entered", cell_i, cell_j)
|
226 |
+
_update_obs(cell_i, cell_j, body.collision_layer, true)
|
227 |
+
if debug_view:
|
228 |
+
_toggle_cell(cell_i, cell_j)
|
229 |
+
|
230 |
+
|
231 |
+
func _on_cell_body_exited(body: Node2D, cell_i: int, cell_j: int):
|
232 |
+
#prints("_on_cell_body_exited", cell_i, cell_j)
|
233 |
+
_update_obs(cell_i, cell_j, body.collision_layer, false)
|
234 |
+
if debug_view:
|
235 |
+
_toggle_cell(cell_i, cell_j)
|
addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node2D
|
2 |
+
class_name ISensor2D
|
3 |
+
|
4 |
+
var _obs: Array = []
|
5 |
+
var _active := false
|
6 |
+
|
7 |
+
|
8 |
+
func get_observation():
|
9 |
+
pass
|
10 |
+
|
11 |
+
|
12 |
+
func activate():
|
13 |
+
_active = true
|
14 |
+
|
15 |
+
|
16 |
+
func deactivate():
|
17 |
+
_active = false
|
18 |
+
|
19 |
+
|
20 |
+
func _update_observation():
|
21 |
+
pass
|
22 |
+
|
23 |
+
|
24 |
+
func reset():
|
25 |
+
pass
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor2D
|
3 |
+
class_name RaycastSensor2D
|
4 |
+
|
5 |
+
@export_flags_2d_physics var collision_mask := 1:
|
6 |
+
get:
|
7 |
+
return collision_mask
|
8 |
+
set(value):
|
9 |
+
collision_mask = value
|
10 |
+
_update()
|
11 |
+
|
12 |
+
@export var collide_with_areas := false:
|
13 |
+
get:
|
14 |
+
return collide_with_areas
|
15 |
+
set(value):
|
16 |
+
collide_with_areas = value
|
17 |
+
_update()
|
18 |
+
|
19 |
+
@export var collide_with_bodies := true:
|
20 |
+
get:
|
21 |
+
return collide_with_bodies
|
22 |
+
set(value):
|
23 |
+
collide_with_bodies = value
|
24 |
+
_update()
|
25 |
+
|
26 |
+
@export var n_rays := 16.0:
|
27 |
+
get:
|
28 |
+
return n_rays
|
29 |
+
set(value):
|
30 |
+
n_rays = value
|
31 |
+
_update()
|
32 |
+
|
33 |
+
@export_range(5, 3000, 5.0) var ray_length := 200:
|
34 |
+
get:
|
35 |
+
return ray_length
|
36 |
+
set(value):
|
37 |
+
ray_length = value
|
38 |
+
_update()
|
39 |
+
@export_range(5, 360, 5.0) var cone_width := 360.0:
|
40 |
+
get:
|
41 |
+
return cone_width
|
42 |
+
set(value):
|
43 |
+
cone_width = value
|
44 |
+
_update()
|
45 |
+
|
46 |
+
@export var debug_draw := true:
|
47 |
+
get:
|
48 |
+
return debug_draw
|
49 |
+
set(value):
|
50 |
+
debug_draw = value
|
51 |
+
_update()
|
52 |
+
|
53 |
+
var _angles = []
|
54 |
+
var rays := []
|
55 |
+
|
56 |
+
|
57 |
+
func _update():
|
58 |
+
if Engine.is_editor_hint():
|
59 |
+
if debug_draw:
|
60 |
+
_spawn_nodes()
|
61 |
+
else:
|
62 |
+
for ray in get_children():
|
63 |
+
if ray is RayCast2D:
|
64 |
+
remove_child(ray)
|
65 |
+
|
66 |
+
|
67 |
+
func _ready() -> void:
|
68 |
+
_spawn_nodes()
|
69 |
+
|
70 |
+
|
71 |
+
func _spawn_nodes():
|
72 |
+
for ray in rays:
|
73 |
+
ray.queue_free()
|
74 |
+
rays = []
|
75 |
+
|
76 |
+
_angles = []
|
77 |
+
var step = cone_width / (n_rays)
|
78 |
+
var start = step / 2 - cone_width / 2
|
79 |
+
|
80 |
+
for i in n_rays:
|
81 |
+
var angle = start + i * step
|
82 |
+
var ray = RayCast2D.new()
|
83 |
+
ray.set_target_position(
|
84 |
+
Vector2(ray_length * cos(deg_to_rad(angle)), ray_length * sin(deg_to_rad(angle)))
|
85 |
+
)
|
86 |
+
ray.set_name("node_" + str(i))
|
87 |
+
ray.enabled = false
|
88 |
+
ray.collide_with_areas = collide_with_areas
|
89 |
+
ray.collide_with_bodies = collide_with_bodies
|
90 |
+
ray.collision_mask = collision_mask
|
91 |
+
add_child(ray)
|
92 |
+
rays.append(ray)
|
93 |
+
|
94 |
+
_angles.append(start + i * step)
|
95 |
+
|
96 |
+
|
97 |
+
func get_observation() -> Array:
|
98 |
+
return self.calculate_raycasts()
|
99 |
+
|
100 |
+
|
101 |
+
func calculate_raycasts() -> Array:
|
102 |
+
var result = []
|
103 |
+
for ray in rays:
|
104 |
+
ray.enabled = true
|
105 |
+
ray.force_raycast_update()
|
106 |
+
var distance = _get_raycast_distance(ray)
|
107 |
+
result.append(distance)
|
108 |
+
ray.enabled = false
|
109 |
+
return result
|
110 |
+
|
111 |
+
|
112 |
+
func _get_raycast_distance(ray: RayCast2D) -> float:
|
113 |
+
if !ray.is_colliding():
|
114 |
+
return 0.0
|
115 |
+
|
116 |
+
var distance = (global_position - ray.get_collision_point()).length()
|
117 |
+
distance = clamp(distance, 0.0, ray_length)
|
118 |
+
return (ray_length - distance) / ray_length
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://drvfihk5esgmv"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
+
|
5 |
+
[node name="RaycastSensor2D" type="Node2D"]
|
6 |
+
script = ExtResource("1")
|
7 |
+
n_rays = 17.0
|
addons/godot_rl_agents/sensors/sensors_3d/ExampleRaycastSensor3D.tscn
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene format=3 uid="uid://biu787qh4woik"]
|
2 |
+
|
3 |
+
[node name="ExampleRaycastSensor3D" type="Node3D"]
|
4 |
+
|
5 |
+
[node name="Camera3D" type="Camera3D" parent="."]
|
6 |
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.804183, 0, 2.70146)
|
addons/godot_rl_agents/sensors/sensors_3d/GridSensor3D.gd
ADDED
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor3D
|
3 |
+
class_name GridSensor3D
|
4 |
+
|
5 |
+
@export var debug_view := false:
|
6 |
+
get:
|
7 |
+
return debug_view
|
8 |
+
set(value):
|
9 |
+
debug_view = value
|
10 |
+
_update()
|
11 |
+
|
12 |
+
@export_flags_3d_physics var detection_mask := 0:
|
13 |
+
get:
|
14 |
+
return detection_mask
|
15 |
+
set(value):
|
16 |
+
detection_mask = value
|
17 |
+
_update()
|
18 |
+
|
19 |
+
@export var collide_with_areas := false:
|
20 |
+
get:
|
21 |
+
return collide_with_areas
|
22 |
+
set(value):
|
23 |
+
collide_with_areas = value
|
24 |
+
_update()
|
25 |
+
|
26 |
+
@export var collide_with_bodies := false:
|
27 |
+
# NOTE! The sensor will not detect StaticBody3D, add an area to static bodies to detect them
|
28 |
+
get:
|
29 |
+
return collide_with_bodies
|
30 |
+
set(value):
|
31 |
+
collide_with_bodies = value
|
32 |
+
_update()
|
33 |
+
|
34 |
+
@export_range(0.1, 2, 0.1) var cell_width := 1.0:
|
35 |
+
get:
|
36 |
+
return cell_width
|
37 |
+
set(value):
|
38 |
+
cell_width = value
|
39 |
+
_update()
|
40 |
+
|
41 |
+
@export_range(0.1, 2, 0.1) var cell_height := 1.0:
|
42 |
+
get:
|
43 |
+
return cell_height
|
44 |
+
set(value):
|
45 |
+
cell_height = value
|
46 |
+
_update()
|
47 |
+
|
48 |
+
@export_range(1, 21, 2, "or_greater") var grid_size_x := 3:
|
49 |
+
get:
|
50 |
+
return grid_size_x
|
51 |
+
set(value):
|
52 |
+
grid_size_x = value
|
53 |
+
_update()
|
54 |
+
|
55 |
+
@export_range(1, 21, 2, "or_greater") var grid_size_z := 3:
|
56 |
+
get:
|
57 |
+
return grid_size_z
|
58 |
+
set(value):
|
59 |
+
grid_size_z = value
|
60 |
+
_update()
|
61 |
+
|
62 |
+
var _obs_buffer: PackedFloat64Array
|
63 |
+
var _box_shape: BoxShape3D
|
64 |
+
var _collision_mapping: Dictionary
|
65 |
+
var _n_layers_per_cell: int
|
66 |
+
|
67 |
+
var _highlighted_box_material: StandardMaterial3D
|
68 |
+
var _standard_box_material: StandardMaterial3D
|
69 |
+
|
70 |
+
|
71 |
+
func get_observation():
|
72 |
+
return _obs_buffer
|
73 |
+
|
74 |
+
|
75 |
+
func reset():
|
76 |
+
_obs_buffer.fill(0)
|
77 |
+
|
78 |
+
|
79 |
+
func _update():
|
80 |
+
if Engine.is_editor_hint():
|
81 |
+
if is_node_ready():
|
82 |
+
_spawn_nodes()
|
83 |
+
|
84 |
+
|
85 |
+
func _ready() -> void:
|
86 |
+
_make_materials()
|
87 |
+
|
88 |
+
if Engine.is_editor_hint():
|
89 |
+
if get_child_count() == 0:
|
90 |
+
_spawn_nodes()
|
91 |
+
else:
|
92 |
+
_spawn_nodes()
|
93 |
+
|
94 |
+
|
95 |
+
func _make_materials() -> void:
|
96 |
+
if _highlighted_box_material != null and _standard_box_material != null:
|
97 |
+
return
|
98 |
+
|
99 |
+
_standard_box_material = StandardMaterial3D.new()
|
100 |
+
_standard_box_material.set_transparency(1) # ALPHA
|
101 |
+
_standard_box_material.albedo_color = Color(
|
102 |
+
100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0
|
103 |
+
)
|
104 |
+
|
105 |
+
_highlighted_box_material = StandardMaterial3D.new()
|
106 |
+
_highlighted_box_material.set_transparency(1) # ALPHA
|
107 |
+
_highlighted_box_material.albedo_color = Color(
|
108 |
+
255.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0, 100.0 / 255.0
|
109 |
+
)
|
110 |
+
|
111 |
+
|
112 |
+
func _get_collision_mapping() -> Dictionary:
|
113 |
+
# defines which layer is mapped to which cell obs index
|
114 |
+
var total_bits = 0
|
115 |
+
var collision_mapping = {}
|
116 |
+
for i in 32:
|
117 |
+
var bit_mask = 2 ** i
|
118 |
+
if (detection_mask & bit_mask) > 0:
|
119 |
+
collision_mapping[i] = total_bits
|
120 |
+
total_bits += 1
|
121 |
+
|
122 |
+
return collision_mapping
|
123 |
+
|
124 |
+
|
125 |
+
func _spawn_nodes():
|
126 |
+
for cell in get_children():
|
127 |
+
cell.name = "_%s" % cell.name # Otherwise naming below will fail
|
128 |
+
cell.queue_free()
|
129 |
+
|
130 |
+
_collision_mapping = _get_collision_mapping()
|
131 |
+
#prints("collision_mapping", _collision_mapping, len(_collision_mapping))
|
132 |
+
# allocate memory for the observations
|
133 |
+
_n_layers_per_cell = len(_collision_mapping)
|
134 |
+
_obs_buffer = PackedFloat64Array()
|
135 |
+
_obs_buffer.resize(grid_size_x * grid_size_z * _n_layers_per_cell)
|
136 |
+
_obs_buffer.fill(0)
|
137 |
+
#prints(len(_obs_buffer), _obs_buffer )
|
138 |
+
|
139 |
+
_box_shape = BoxShape3D.new()
|
140 |
+
_box_shape.set_size(Vector3(cell_width, cell_height, cell_width))
|
141 |
+
|
142 |
+
var shift := Vector3(
|
143 |
+
-(grid_size_x / 2) * cell_width,
|
144 |
+
0,
|
145 |
+
-(grid_size_z / 2) * cell_width,
|
146 |
+
)
|
147 |
+
|
148 |
+
for i in grid_size_x:
|
149 |
+
for j in grid_size_z:
|
150 |
+
var cell_position = Vector3(i * cell_width, 0.0, j * cell_width) + shift
|
151 |
+
_create_cell(i, j, cell_position)
|
152 |
+
|
153 |
+
|
154 |
+
func _create_cell(i: int, j: int, position: Vector3):
|
155 |
+
var cell := Area3D.new()
|
156 |
+
cell.position = position
|
157 |
+
cell.name = "GridCell %s %s" % [i, j]
|
158 |
+
|
159 |
+
if collide_with_areas:
|
160 |
+
cell.area_entered.connect(_on_cell_area_entered.bind(i, j))
|
161 |
+
cell.area_exited.connect(_on_cell_area_exited.bind(i, j))
|
162 |
+
|
163 |
+
if collide_with_bodies:
|
164 |
+
cell.body_entered.connect(_on_cell_body_entered.bind(i, j))
|
165 |
+
cell.body_exited.connect(_on_cell_body_exited.bind(i, j))
|
166 |
+
|
167 |
+
# cell.body_shape_entered.connect(_on_cell_body_shape_entered.bind(i, j))
|
168 |
+
# cell.body_shape_exited.connect(_on_cell_body_shape_exited.bind(i, j))
|
169 |
+
|
170 |
+
cell.collision_layer = 0
|
171 |
+
cell.collision_mask = detection_mask
|
172 |
+
cell.monitorable = true
|
173 |
+
cell.input_ray_pickable = false
|
174 |
+
add_child(cell)
|
175 |
+
cell.set_owner(get_tree().edited_scene_root)
|
176 |
+
|
177 |
+
var col_shape := CollisionShape3D.new()
|
178 |
+
col_shape.shape = _box_shape
|
179 |
+
col_shape.name = "CollisionShape3D"
|
180 |
+
cell.add_child(col_shape)
|
181 |
+
col_shape.set_owner(get_tree().edited_scene_root)
|
182 |
+
|
183 |
+
if debug_view:
|
184 |
+
var box = MeshInstance3D.new()
|
185 |
+
box.name = "MeshInstance3D"
|
186 |
+
var box_mesh = BoxMesh.new()
|
187 |
+
|
188 |
+
box_mesh.set_size(Vector3(cell_width, cell_height, cell_width))
|
189 |
+
box_mesh.material = _standard_box_material
|
190 |
+
|
191 |
+
box.mesh = box_mesh
|
192 |
+
cell.add_child(box)
|
193 |
+
box.set_owner(get_tree().edited_scene_root)
|
194 |
+
|
195 |
+
|
196 |
+
func _update_obs(cell_i: int, cell_j: int, collision_layer: int, entered: bool):
|
197 |
+
for key in _collision_mapping:
|
198 |
+
var bit_mask = 2 ** key
|
199 |
+
if (collision_layer & bit_mask) > 0:
|
200 |
+
var collison_map_index = _collision_mapping[key]
|
201 |
+
|
202 |
+
var obs_index = (
|
203 |
+
(cell_i * grid_size_x * _n_layers_per_cell)
|
204 |
+
+ (cell_j * _n_layers_per_cell)
|
205 |
+
+ collison_map_index
|
206 |
+
)
|
207 |
+
#prints(obs_index, cell_i, cell_j)
|
208 |
+
if entered:
|
209 |
+
_obs_buffer[obs_index] += 1
|
210 |
+
else:
|
211 |
+
_obs_buffer[obs_index] -= 1
|
212 |
+
|
213 |
+
|
214 |
+
func _toggle_cell(cell_i: int, cell_j: int):
|
215 |
+
var cell = get_node_or_null("GridCell %s %s" % [cell_i, cell_j])
|
216 |
+
|
217 |
+
if cell == null:
|
218 |
+
print("cell not found, returning")
|
219 |
+
|
220 |
+
var n_hits = 0
|
221 |
+
var start_index = (cell_i * grid_size_x * _n_layers_per_cell) + (cell_j * _n_layers_per_cell)
|
222 |
+
for i in _n_layers_per_cell:
|
223 |
+
n_hits += _obs_buffer[start_index + i]
|
224 |
+
|
225 |
+
var cell_mesh = cell.get_node_or_null("MeshInstance3D")
|
226 |
+
if n_hits > 0:
|
227 |
+
cell_mesh.mesh.material = _highlighted_box_material
|
228 |
+
else:
|
229 |
+
cell_mesh.mesh.material = _standard_box_material
|
230 |
+
|
231 |
+
|
232 |
+
func _on_cell_area_entered(area: Area3D, cell_i: int, cell_j: int):
|
233 |
+
#prints("_on_cell_area_entered", cell_i, cell_j)
|
234 |
+
_update_obs(cell_i, cell_j, area.collision_layer, true)
|
235 |
+
if debug_view:
|
236 |
+
_toggle_cell(cell_i, cell_j)
|
237 |
+
#print(_obs_buffer)
|
238 |
+
|
239 |
+
|
240 |
+
func _on_cell_area_exited(area: Area3D, cell_i: int, cell_j: int):
|
241 |
+
#prints("_on_cell_area_exited", cell_i, cell_j)
|
242 |
+
_update_obs(cell_i, cell_j, area.collision_layer, false)
|
243 |
+
if debug_view:
|
244 |
+
_toggle_cell(cell_i, cell_j)
|
245 |
+
|
246 |
+
|
247 |
+
func _on_cell_body_entered(body: Node3D, cell_i: int, cell_j: int):
|
248 |
+
#prints("_on_cell_body_entered", cell_i, cell_j)
|
249 |
+
_update_obs(cell_i, cell_j, body.collision_layer, true)
|
250 |
+
if debug_view:
|
251 |
+
_toggle_cell(cell_i, cell_j)
|
252 |
+
|
253 |
+
|
254 |
+
func _on_cell_body_exited(body: Node3D, cell_i: int, cell_j: int):
|
255 |
+
#prints("_on_cell_body_exited", cell_i, cell_j)
|
256 |
+
_update_obs(cell_i, cell_j, body.collision_layer, false)
|
257 |
+
if debug_view:
|
258 |
+
_toggle_cell(cell_i, cell_j)
|
addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name ISensor3D
|
3 |
+
|
4 |
+
var _obs: Array = []
|
5 |
+
var _active := false
|
6 |
+
|
7 |
+
|
8 |
+
func get_observation():
|
9 |
+
pass
|
10 |
+
|
11 |
+
|
12 |
+
func activate():
|
13 |
+
_active = true
|
14 |
+
|
15 |
+
|
16 |
+
func deactivate():
|
17 |
+
_active = false
|
18 |
+
|
19 |
+
|
20 |
+
func _update_observation():
|
21 |
+
pass
|
22 |
+
|
23 |
+
|
24 |
+
func reset():
|
25 |
+
pass
|
addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node3D
|
2 |
+
class_name RGBCameraSensor3D
|
3 |
+
var camera_pixels = null
|
4 |
+
|
5 |
+
@onready var camera_texture := $Control/TextureRect/CameraTexture as Sprite2D
|
6 |
+
@onready var sub_viewport := $SubViewport as SubViewport
|
7 |
+
|
8 |
+
|
9 |
+
func get_camera_pixel_encoding():
|
10 |
+
return camera_texture.get_texture().get_image().get_data().hex_encode()
|
11 |
+
|
12 |
+
|
13 |
+
func get_camera_shape() -> Array:
|
14 |
+
assert(
|
15 |
+
sub_viewport.size.x >= 36 and sub_viewport.size.y >= 36,
|
16 |
+
"SubViewport size must be 36x36 or larger."
|
17 |
+
)
|
18 |
+
if sub_viewport.transparent_bg:
|
19 |
+
return [4, sub_viewport.size.y, sub_viewport.size.x]
|
20 |
+
else:
|
21 |
+
return [3, sub_viewport.size.y, sub_viewport.size.x]
|
addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.tscn
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=3 format=3 uid="uid://baaywi3arsl2m"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd" id="1"]
|
4 |
+
|
5 |
+
[sub_resource type="ViewportTexture" id="1"]
|
6 |
+
viewport_path = NodePath("SubViewport")
|
7 |
+
|
8 |
+
[node name="RGBCameraSensor3D" type="Node3D"]
|
9 |
+
script = ExtResource("1")
|
10 |
+
|
11 |
+
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="."]
|
12 |
+
remote_path = NodePath("../SubViewport/Camera3D")
|
13 |
+
|
14 |
+
[node name="SubViewport" type="SubViewport" parent="."]
|
15 |
+
size = Vector2i(32, 32)
|
16 |
+
render_target_update_mode = 3
|
17 |
+
|
18 |
+
[node name="Camera3D" type="Camera3D" parent="SubViewport"]
|
19 |
+
near = 0.5
|
20 |
+
|
21 |
+
[node name="Control" type="Control" parent="."]
|
22 |
+
layout_mode = 3
|
23 |
+
anchors_preset = 15
|
24 |
+
anchor_right = 1.0
|
25 |
+
anchor_bottom = 1.0
|
26 |
+
grow_horizontal = 2
|
27 |
+
grow_vertical = 2
|
28 |
+
|
29 |
+
[node name="TextureRect" type="ColorRect" parent="Control"]
|
30 |
+
layout_mode = 0
|
31 |
+
offset_left = 1096.0
|
32 |
+
offset_top = 534.0
|
33 |
+
offset_right = 1114.0
|
34 |
+
offset_bottom = 552.0
|
35 |
+
scale = Vector2(10, 10)
|
36 |
+
color = Color(0.00784314, 0.00784314, 0.00784314, 1)
|
37 |
+
|
38 |
+
[node name="CameraTexture" type="Sprite2D" parent="Control/TextureRect"]
|
39 |
+
texture = SubResource("1")
|
40 |
+
offset = Vector2(9, 9)
|
41 |
+
flip_v = true
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd
ADDED
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@tool
|
2 |
+
extends ISensor3D
|
3 |
+
class_name RayCastSensor3D
|
4 |
+
@export_flags_3d_physics var collision_mask = 1:
|
5 |
+
get:
|
6 |
+
return collision_mask
|
7 |
+
set(value):
|
8 |
+
collision_mask = value
|
9 |
+
_update()
|
10 |
+
@export_flags_3d_physics var boolean_class_mask = 1:
|
11 |
+
get:
|
12 |
+
return boolean_class_mask
|
13 |
+
set(value):
|
14 |
+
boolean_class_mask = value
|
15 |
+
_update()
|
16 |
+
|
17 |
+
@export var n_rays_width := 6.0:
|
18 |
+
get:
|
19 |
+
return n_rays_width
|
20 |
+
set(value):
|
21 |
+
n_rays_width = value
|
22 |
+
_update()
|
23 |
+
|
24 |
+
@export var n_rays_height := 6.0:
|
25 |
+
get:
|
26 |
+
return n_rays_height
|
27 |
+
set(value):
|
28 |
+
n_rays_height = value
|
29 |
+
_update()
|
30 |
+
|
31 |
+
@export var ray_length := 10.0:
|
32 |
+
get:
|
33 |
+
return ray_length
|
34 |
+
set(value):
|
35 |
+
ray_length = value
|
36 |
+
_update()
|
37 |
+
|
38 |
+
@export var cone_width := 60.0:
|
39 |
+
get:
|
40 |
+
return cone_width
|
41 |
+
set(value):
|
42 |
+
cone_width = value
|
43 |
+
_update()
|
44 |
+
|
45 |
+
@export var cone_height := 60.0:
|
46 |
+
get:
|
47 |
+
return cone_height
|
48 |
+
set(value):
|
49 |
+
cone_height = value
|
50 |
+
_update()
|
51 |
+
|
52 |
+
@export var collide_with_areas := false:
|
53 |
+
get:
|
54 |
+
return collide_with_areas
|
55 |
+
set(value):
|
56 |
+
collide_with_areas = value
|
57 |
+
_update()
|
58 |
+
|
59 |
+
@export var collide_with_bodies := true:
|
60 |
+
get:
|
61 |
+
return collide_with_bodies
|
62 |
+
set(value):
|
63 |
+
collide_with_bodies = value
|
64 |
+
_update()
|
65 |
+
|
66 |
+
@export var class_sensor := false
|
67 |
+
|
68 |
+
var rays := []
|
69 |
+
var geo = null
|
70 |
+
|
71 |
+
|
72 |
+
func _update():
|
73 |
+
if Engine.is_editor_hint():
|
74 |
+
if is_node_ready():
|
75 |
+
_spawn_nodes()
|
76 |
+
|
77 |
+
|
78 |
+
func _ready() -> void:
|
79 |
+
if Engine.is_editor_hint():
|
80 |
+
if get_child_count() == 0:
|
81 |
+
_spawn_nodes()
|
82 |
+
else:
|
83 |
+
_spawn_nodes()
|
84 |
+
|
85 |
+
|
86 |
+
func _spawn_nodes():
|
87 |
+
print("spawning nodes")
|
88 |
+
for ray in get_children():
|
89 |
+
ray.queue_free()
|
90 |
+
if geo:
|
91 |
+
geo.clear()
|
92 |
+
#$Lines.remove_points()
|
93 |
+
rays = []
|
94 |
+
|
95 |
+
var horizontal_step = cone_width / (n_rays_width)
|
96 |
+
var vertical_step = cone_height / (n_rays_height)
|
97 |
+
|
98 |
+
var horizontal_start = horizontal_step / 2 - cone_width / 2
|
99 |
+
var vertical_start = vertical_step / 2 - cone_height / 2
|
100 |
+
|
101 |
+
var points = []
|
102 |
+
|
103 |
+
for i in n_rays_width:
|
104 |
+
for j in n_rays_height:
|
105 |
+
var angle_w = horizontal_start + i * horizontal_step
|
106 |
+
var angle_h = vertical_start + j * vertical_step
|
107 |
+
#angle_h = 0.0
|
108 |
+
var ray = RayCast3D.new()
|
109 |
+
var cast_to = to_spherical_coords(ray_length, angle_w, angle_h)
|
110 |
+
ray.set_target_position(cast_to)
|
111 |
+
|
112 |
+
points.append(cast_to)
|
113 |
+
|
114 |
+
ray.set_name("node_" + str(i) + " " + str(j))
|
115 |
+
ray.enabled = true
|
116 |
+
ray.collide_with_bodies = collide_with_bodies
|
117 |
+
ray.collide_with_areas = collide_with_areas
|
118 |
+
ray.collision_mask = collision_mask
|
119 |
+
add_child(ray)
|
120 |
+
ray.set_owner(get_tree().edited_scene_root)
|
121 |
+
rays.append(ray)
|
122 |
+
ray.force_raycast_update()
|
123 |
+
|
124 |
+
|
125 |
+
# if Engine.editor_hint:
|
126 |
+
# _create_debug_lines(points)
|
127 |
+
|
128 |
+
|
129 |
+
func _create_debug_lines(points):
|
130 |
+
if not geo:
|
131 |
+
geo = ImmediateMesh.new()
|
132 |
+
add_child(geo)
|
133 |
+
|
134 |
+
geo.clear()
|
135 |
+
geo.begin(Mesh.PRIMITIVE_LINES)
|
136 |
+
for point in points:
|
137 |
+
geo.set_color(Color.AQUA)
|
138 |
+
geo.add_vertex(Vector3.ZERO)
|
139 |
+
geo.add_vertex(point)
|
140 |
+
geo.end()
|
141 |
+
|
142 |
+
|
143 |
+
func display():
|
144 |
+
if geo:
|
145 |
+
geo.display()
|
146 |
+
|
147 |
+
|
148 |
+
func to_spherical_coords(r, inc, azimuth) -> Vector3:
|
149 |
+
return Vector3(
|
150 |
+
r * sin(deg_to_rad(inc)) * cos(deg_to_rad(azimuth)),
|
151 |
+
r * sin(deg_to_rad(azimuth)),
|
152 |
+
r * cos(deg_to_rad(inc)) * cos(deg_to_rad(azimuth))
|
153 |
+
)
|
154 |
+
|
155 |
+
|
156 |
+
func get_observation() -> Array:
|
157 |
+
return self.calculate_raycasts()
|
158 |
+
|
159 |
+
|
160 |
+
func calculate_raycasts() -> Array:
|
161 |
+
var result = []
|
162 |
+
for ray in rays:
|
163 |
+
ray.set_enabled(true)
|
164 |
+
ray.force_raycast_update()
|
165 |
+
var distance = _get_raycast_distance(ray)
|
166 |
+
|
167 |
+
result.append(distance)
|
168 |
+
if class_sensor:
|
169 |
+
var hit_class: float = 0
|
170 |
+
if ray.get_collider():
|
171 |
+
var hit_collision_layer = ray.get_collider().collision_layer
|
172 |
+
hit_collision_layer = hit_collision_layer & collision_mask
|
173 |
+
hit_class = (hit_collision_layer & boolean_class_mask) > 0
|
174 |
+
result.append(float(hit_class))
|
175 |
+
ray.set_enabled(false)
|
176 |
+
return result
|
177 |
+
|
178 |
+
|
179 |
+
func _get_raycast_distance(ray: RayCast3D) -> float:
|
180 |
+
if !ray.is_colliding():
|
181 |
+
return 0.0
|
182 |
+
|
183 |
+
var distance = (global_transform.origin - ray.get_collision_point()).length()
|
184 |
+
distance = clamp(distance, 0.0, ray_length)
|
185 |
+
return (ray_length - distance) / ray_length
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://b803cbh1fmy66"]
|
2 |
+
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd" id="1"]
|
4 |
+
|
5 |
+
[node name="RaycastSensor3D" type="Node3D"]
|
6 |
+
script = ExtResource("1")
|
7 |
+
n_rays_width = 4.0
|
8 |
+
n_rays_height = 2.0
|
9 |
+
ray_length = 11.0
|
10 |
+
|
11 |
+
[node name="node_1 0" type="RayCast3D" parent="."]
|
12 |
+
target_position = Vector3(-1.38686, -2.84701, 10.5343)
|
13 |
+
|
14 |
+
[node name="node_1 1" type="RayCast3D" parent="."]
|
15 |
+
target_position = Vector3(-1.38686, 2.84701, 10.5343)
|
16 |
+
|
17 |
+
[node name="node_2 0" type="RayCast3D" parent="."]
|
18 |
+
target_position = Vector3(1.38686, -2.84701, 10.5343)
|
19 |
+
|
20 |
+
[node name="node_2 1" type="RayCast3D" parent="."]
|
21 |
+
target_position = Vector3(1.38686, 2.84701, 10.5343)
|
22 |
+
|
23 |
+
[node name="node_3 0" type="RayCast3D" parent="."]
|
24 |
+
target_position = Vector3(4.06608, -2.84701, 9.81639)
|
25 |
+
|
26 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node
|
2 |
+
|
3 |
+
# --fixed-fps 2000 --disable-render-loop
|
4 |
+
|
5 |
+
enum ControlModes { HUMAN, TRAINING, ONNX_INFERENCE }
|
6 |
+
@export var control_mode: ControlModes = ControlModes.TRAINING
|
7 |
+
@export_range(1, 10, 1, "or_greater") var action_repeat := 8
|
8 |
+
@export_range(0, 10, 0.1, "or_greater") var speed_up := 1.0
|
9 |
+
@export var onnx_model_path := ""
|
10 |
+
|
11 |
+
# Onnx model stored for each requested path
|
12 |
+
var onnx_models: Dictionary
|
13 |
+
|
14 |
+
@onready var start_time = Time.get_ticks_msec()
|
15 |
+
|
16 |
+
const MAJOR_VERSION := "0"
|
17 |
+
const MINOR_VERSION := "7"
|
18 |
+
const DEFAULT_PORT := "11008"
|
19 |
+
const DEFAULT_SEED := "1"
|
20 |
+
var stream: StreamPeerTCP = null
|
21 |
+
var connected = false
|
22 |
+
var message_center
|
23 |
+
var should_connect = true
|
24 |
+
|
25 |
+
var all_agents: Array
|
26 |
+
var agents_training: Array
|
27 |
+
var agents_inference: Array
|
28 |
+
var agents_heuristic: Array
|
29 |
+
|
30 |
+
## For recording expert demos
|
31 |
+
var agent_demo_record: Node
|
32 |
+
## Stores recorded trajectories
|
33 |
+
var demo_trajectories: Array
|
34 |
+
## A trajectory includes obs: Array, acts: Array, terminal (set in Python env instead)
|
35 |
+
var current_demo_trajectory: Array
|
36 |
+
|
37 |
+
var need_to_send_obs = false
|
38 |
+
var args = null
|
39 |
+
var initialized = false
|
40 |
+
var just_reset = false
|
41 |
+
var onnx_model = null
|
42 |
+
var n_action_steps = 0
|
43 |
+
|
44 |
+
var _action_space: Dictionary
|
45 |
+
var _action_space_inference: Array[Dictionary] = []
|
46 |
+
var _obs_space: Dictionary
|
47 |
+
|
48 |
+
|
49 |
+
# Called when the node enters the scene tree for the first time.
|
50 |
+
func _ready():
|
51 |
+
await get_tree().root.ready
|
52 |
+
get_tree().set_pause(true)
|
53 |
+
_initialize()
|
54 |
+
await get_tree().create_timer(1.0).timeout
|
55 |
+
get_tree().set_pause(false)
|
56 |
+
|
57 |
+
|
58 |
+
func _initialize():
|
59 |
+
_get_agents()
|
60 |
+
args = _get_args()
|
61 |
+
Engine.physics_ticks_per_second = _get_speedup() * 60 # Replace with function body.
|
62 |
+
Engine.time_scale = _get_speedup() * 1.0
|
63 |
+
prints(
|
64 |
+
"physics ticks",
|
65 |
+
Engine.physics_ticks_per_second,
|
66 |
+
Engine.time_scale,
|
67 |
+
_get_speedup(),
|
68 |
+
speed_up
|
69 |
+
)
|
70 |
+
|
71 |
+
_set_heuristic("human", all_agents)
|
72 |
+
|
73 |
+
_initialize_training_agents()
|
74 |
+
_initialize_inference_agents()
|
75 |
+
_initialize_demo_recording()
|
76 |
+
|
77 |
+
_set_seed()
|
78 |
+
_set_action_repeat()
|
79 |
+
initialized = true
|
80 |
+
|
81 |
+
|
82 |
+
func _initialize_training_agents():
|
83 |
+
if agents_training.size() > 0:
|
84 |
+
_obs_space = agents_training[0].get_obs_space()
|
85 |
+
_action_space = agents_training[0].get_action_space()
|
86 |
+
connected = connect_to_server()
|
87 |
+
if connected:
|
88 |
+
_set_heuristic("model", agents_training)
|
89 |
+
_handshake()
|
90 |
+
_send_env_info()
|
91 |
+
else:
|
92 |
+
push_warning(
|
93 |
+
"Couldn't connect to Python server, using human controls instead. ",
|
94 |
+
"Did you start the training server using e.g. `gdrl` from the console?"
|
95 |
+
)
|
96 |
+
|
97 |
+
|
98 |
+
func _initialize_inference_agents():
|
99 |
+
if agents_inference.size() > 0:
|
100 |
+
if control_mode == ControlModes.ONNX_INFERENCE:
|
101 |
+
assert(
|
102 |
+
FileAccess.file_exists(onnx_model_path),
|
103 |
+
"Onnx Model Path set on Sync node does not exist: %s" % onnx_model_path
|
104 |
+
)
|
105 |
+
onnx_models[onnx_model_path] = ONNXModel.new(onnx_model_path, 1)
|
106 |
+
|
107 |
+
for agent in agents_inference:
|
108 |
+
_action_space_inference.append(agent.get_action_space())
|
109 |
+
|
110 |
+
var agent_onnx_model: ONNXModel
|
111 |
+
if agent.onnx_model_path.is_empty():
|
112 |
+
assert(
|
113 |
+
onnx_models.has(onnx_model_path),
|
114 |
+
(
|
115 |
+
"Node %s has no onnx model path set " % agent.get_path()
|
116 |
+
+ "and sync node's control mode is not set to OnnxInference. "
|
117 |
+
+ "Either add the path to the AIController, "
|
118 |
+
+ "or if you want to use the path set on sync node instead, "
|
119 |
+
+ "set control mode to OnnxInference."
|
120 |
+
)
|
121 |
+
)
|
122 |
+
prints(
|
123 |
+
"Info: AIController %s" % agent.get_path(),
|
124 |
+
"has no onnx model path set.",
|
125 |
+
"Using path set on the sync node instead."
|
126 |
+
)
|
127 |
+
agent_onnx_model = onnx_models[onnx_model_path]
|
128 |
+
else:
|
129 |
+
if not onnx_models.has(agent.onnx_model_path):
|
130 |
+
assert(
|
131 |
+
FileAccess.file_exists(agent.onnx_model_path),
|
132 |
+
(
|
133 |
+
"Onnx Model Path set on %s node does not exist: %s"
|
134 |
+
% [agent.get_path(), agent.onnx_model_path]
|
135 |
+
)
|
136 |
+
)
|
137 |
+
onnx_models[agent.onnx_model_path] = ONNXModel.new(agent.onnx_model_path, 1)
|
138 |
+
agent_onnx_model = onnx_models[agent.onnx_model_path]
|
139 |
+
|
140 |
+
agent.onnx_model = agent_onnx_model
|
141 |
+
_set_heuristic("model", agents_inference)
|
142 |
+
|
143 |
+
|
144 |
+
func _initialize_demo_recording():
|
145 |
+
if agent_demo_record:
|
146 |
+
InputMap.add_action("RemoveLastDemoEpisode")
|
147 |
+
InputMap.action_add_event(
|
148 |
+
"RemoveLastDemoEpisode", agent_demo_record.remove_last_episode_key
|
149 |
+
)
|
150 |
+
current_demo_trajectory.resize(2)
|
151 |
+
current_demo_trajectory[0] = []
|
152 |
+
current_demo_trajectory[1] = []
|
153 |
+
agent_demo_record.heuristic = "demo_record"
|
154 |
+
|
155 |
+
|
156 |
+
func _physics_process(_delta):
|
157 |
+
# two modes, human control, agent control
|
158 |
+
# pause tree, send obs, get actions, set actions, unpause tree
|
159 |
+
|
160 |
+
_demo_record_process()
|
161 |
+
|
162 |
+
if n_action_steps % action_repeat != 0:
|
163 |
+
n_action_steps += 1
|
164 |
+
return
|
165 |
+
|
166 |
+
n_action_steps += 1
|
167 |
+
|
168 |
+
_training_process()
|
169 |
+
_inference_process()
|
170 |
+
_heuristic_process()
|
171 |
+
|
172 |
+
|
173 |
+
func _training_process():
|
174 |
+
if connected:
|
175 |
+
get_tree().set_pause(true)
|
176 |
+
|
177 |
+
if just_reset:
|
178 |
+
just_reset = false
|
179 |
+
var obs = _get_obs_from_agents(agents_training)
|
180 |
+
|
181 |
+
var reply = {"type": "reset", "obs": obs}
|
182 |
+
_send_dict_as_json_message(reply)
|
183 |
+
# this should go straight to getting the action and setting it checked the agent, no need to perform one phyics tick
|
184 |
+
get_tree().set_pause(false)
|
185 |
+
return
|
186 |
+
|
187 |
+
if need_to_send_obs:
|
188 |
+
need_to_send_obs = false
|
189 |
+
var reward = _get_reward_from_agents()
|
190 |
+
var done = _get_done_from_agents()
|
191 |
+
#_reset_agents_if_done() # this ensures the new observation is from the next env instance : NEEDS REFACTOR
|
192 |
+
|
193 |
+
var obs = _get_obs_from_agents(agents_training)
|
194 |
+
|
195 |
+
var reply = {"type": "step", "obs": obs, "reward": reward, "done": done}
|
196 |
+
_send_dict_as_json_message(reply)
|
197 |
+
|
198 |
+
var handled = handle_message()
|
199 |
+
|
200 |
+
|
201 |
+
func _inference_process():
|
202 |
+
if agents_inference.size() > 0:
|
203 |
+
var obs: Array = _get_obs_from_agents(agents_inference)
|
204 |
+
var actions = []
|
205 |
+
|
206 |
+
for agent_id in range(0, agents_inference.size()):
|
207 |
+
var action = agents_inference[agent_id].onnx_model.run_inference(
|
208 |
+
obs[agent_id]["obs"], 1.0
|
209 |
+
)
|
210 |
+
action["output"] = clamp_array(action["output"], -1.0, 1.0)
|
211 |
+
var action_dict = _extract_action_dict(
|
212 |
+
action["output"], _action_space_inference[agent_id]
|
213 |
+
)
|
214 |
+
actions.append(action_dict)
|
215 |
+
|
216 |
+
_set_agent_actions(actions, agents_inference)
|
217 |
+
_reset_agents_if_done(agents_inference)
|
218 |
+
get_tree().set_pause(false)
|
219 |
+
|
220 |
+
|
221 |
+
func _demo_record_process():
|
222 |
+
if not agent_demo_record:
|
223 |
+
return
|
224 |
+
|
225 |
+
if Input.is_action_just_pressed("RemoveLastDemoEpisode"):
|
226 |
+
print("[Sync script][Demo recorder] Removing last recorded episode.")
|
227 |
+
demo_trajectories.remove_at(demo_trajectories.size() - 1)
|
228 |
+
print("Remaining episode count: %d" % demo_trajectories.size())
|
229 |
+
|
230 |
+
if n_action_steps % agent_demo_record.action_repeat != 0:
|
231 |
+
return
|
232 |
+
|
233 |
+
var obs_dict: Dictionary = agent_demo_record.get_obs()
|
234 |
+
|
235 |
+
# Get the current obs from the agent
|
236 |
+
assert(
|
237 |
+
obs_dict.has("obs"),
|
238 |
+
"Demo recorder needs an 'obs' key in get_obs() returned dictionary to record obs from."
|
239 |
+
)
|
240 |
+
current_demo_trajectory[0].append(obs_dict.obs)
|
241 |
+
|
242 |
+
# Get the action applied for the current obs from the agent
|
243 |
+
agent_demo_record.set_action()
|
244 |
+
var acts = agent_demo_record.get_action()
|
245 |
+
|
246 |
+
var terminal = agent_demo_record.get_done()
|
247 |
+
# Record actions only for non-terminal states
|
248 |
+
if terminal:
|
249 |
+
agent_demo_record.set_done_false()
|
250 |
+
else:
|
251 |
+
current_demo_trajectory[1].append(acts)
|
252 |
+
|
253 |
+
if terminal:
|
254 |
+
#current_demo_trajectory[2].append(true)
|
255 |
+
demo_trajectories.append(current_demo_trajectory.duplicate(true))
|
256 |
+
print("[Sync script][Demo recorder] Recorded episode count: %d" % demo_trajectories.size())
|
257 |
+
current_demo_trajectory[0].clear()
|
258 |
+
current_demo_trajectory[1].clear()
|
259 |
+
|
260 |
+
|
261 |
+
func _heuristic_process():
|
262 |
+
for agent in agents_heuristic:
|
263 |
+
_reset_agents_if_done(agents_heuristic)
|
264 |
+
|
265 |
+
|
266 |
+
func _extract_action_dict(action_array: Array, action_space: Dictionary):
|
267 |
+
var index = 0
|
268 |
+
var result = {}
|
269 |
+
for key in action_space.keys():
|
270 |
+
var size = action_space[key]["size"]
|
271 |
+
if action_space[key]["action_type"] == "discrete":
|
272 |
+
result[key] = round(action_array[index])
|
273 |
+
else:
|
274 |
+
result[key] = action_array.slice(index, index + size)
|
275 |
+
index += size
|
276 |
+
|
277 |
+
return result
|
278 |
+
|
279 |
+
|
280 |
+
## For AIControllers that inherit mode from sync, sets the correct mode.
|
281 |
+
func _set_agent_mode(agent: Node):
|
282 |
+
var agent_inherits_mode: bool = agent.control_mode == agent.ControlModes.INHERIT_FROM_SYNC
|
283 |
+
|
284 |
+
if agent_inherits_mode:
|
285 |
+
match control_mode:
|
286 |
+
ControlModes.HUMAN:
|
287 |
+
agent.control_mode = agent.ControlModes.HUMAN
|
288 |
+
ControlModes.TRAINING:
|
289 |
+
agent.control_mode = agent.ControlModes.TRAINING
|
290 |
+
ControlModes.ONNX_INFERENCE:
|
291 |
+
agent.control_mode = agent.ControlModes.ONNX_INFERENCE
|
292 |
+
|
293 |
+
|
294 |
+
func _get_agents():
|
295 |
+
all_agents = get_tree().get_nodes_in_group("AGENT")
|
296 |
+
for agent in all_agents:
|
297 |
+
_set_agent_mode(agent)
|
298 |
+
|
299 |
+
if agent.control_mode == agent.ControlModes.TRAINING:
|
300 |
+
agents_training.append(agent)
|
301 |
+
elif agent.control_mode == agent.ControlModes.ONNX_INFERENCE:
|
302 |
+
agents_inference.append(agent)
|
303 |
+
elif agent.control_mode == agent.ControlModes.HUMAN:
|
304 |
+
agents_heuristic.append(agent)
|
305 |
+
elif agent.control_mode == agent.ControlModes.RECORD_EXPERT_DEMOS:
|
306 |
+
assert(
|
307 |
+
not agent_demo_record,
|
308 |
+
"Currently only a single AIController can be used for recording expert demos."
|
309 |
+
)
|
310 |
+
agent_demo_record = agent
|
311 |
+
|
312 |
+
|
313 |
+
func _set_heuristic(heuristic, agents: Array):
|
314 |
+
for agent in agents:
|
315 |
+
agent.set_heuristic(heuristic)
|
316 |
+
|
317 |
+
|
318 |
+
func _handshake():
|
319 |
+
print("performing handshake")
|
320 |
+
|
321 |
+
var json_dict = _get_dict_json_message()
|
322 |
+
assert(json_dict["type"] == "handshake")
|
323 |
+
var major_version = json_dict["major_version"]
|
324 |
+
var minor_version = json_dict["minor_version"]
|
325 |
+
if major_version != MAJOR_VERSION:
|
326 |
+
print("WARNING: major verison mismatch ", major_version, " ", MAJOR_VERSION)
|
327 |
+
if minor_version != MINOR_VERSION:
|
328 |
+
print("WARNING: minor verison mismatch ", minor_version, " ", MINOR_VERSION)
|
329 |
+
|
330 |
+
print("handshake complete")
|
331 |
+
|
332 |
+
|
333 |
+
func _get_dict_json_message():
|
334 |
+
# returns a dictionary from of the most recent message
|
335 |
+
# this is not waiting
|
336 |
+
while stream.get_available_bytes() == 0:
|
337 |
+
stream.poll()
|
338 |
+
if stream.get_status() != 2:
|
339 |
+
print("server disconnected status, closing")
|
340 |
+
get_tree().quit()
|
341 |
+
return null
|
342 |
+
|
343 |
+
OS.delay_usec(10)
|
344 |
+
|
345 |
+
var message = stream.get_string()
|
346 |
+
var json_data = JSON.parse_string(message)
|
347 |
+
|
348 |
+
return json_data
|
349 |
+
|
350 |
+
|
351 |
+
func _send_dict_as_json_message(dict):
|
352 |
+
stream.put_string(JSON.stringify(dict, "", false))
|
353 |
+
|
354 |
+
|
355 |
+
func _send_env_info():
|
356 |
+
var json_dict = _get_dict_json_message()
|
357 |
+
assert(json_dict["type"] == "env_info")
|
358 |
+
|
359 |
+
var message = {
|
360 |
+
"type": "env_info",
|
361 |
+
"observation_space": _obs_space,
|
362 |
+
"action_space": _action_space,
|
363 |
+
"n_agents": len(agents_training)
|
364 |
+
}
|
365 |
+
_send_dict_as_json_message(message)
|
366 |
+
|
367 |
+
|
368 |
+
func connect_to_server():
|
369 |
+
print("Waiting for one second to allow server to start")
|
370 |
+
OS.delay_msec(1000)
|
371 |
+
print("trying to connect to server")
|
372 |
+
stream = StreamPeerTCP.new()
|
373 |
+
|
374 |
+
# "localhost" was not working on windows VM, had to use the IP
|
375 |
+
var ip = "127.0.0.1"
|
376 |
+
var port = _get_port()
|
377 |
+
var connect = stream.connect_to_host(ip, port)
|
378 |
+
stream.set_no_delay(true) # TODO check if this improves performance or not
|
379 |
+
stream.poll()
|
380 |
+
# Fetch the status until it is either connected (2) or failed to connect (3)
|
381 |
+
while stream.get_status() < 2:
|
382 |
+
stream.poll()
|
383 |
+
return stream.get_status() == 2
|
384 |
+
|
385 |
+
|
386 |
+
func _get_args():
|
387 |
+
print("getting command line arguments")
|
388 |
+
var arguments = {}
|
389 |
+
for argument in OS.get_cmdline_args():
|
390 |
+
print(argument)
|
391 |
+
if argument.find("=") > -1:
|
392 |
+
var key_value = argument.split("=")
|
393 |
+
arguments[key_value[0].lstrip("--")] = key_value[1]
|
394 |
+
else:
|
395 |
+
# Options without an argument will be present in the dictionary,
|
396 |
+
# with the value set to an empty string.
|
397 |
+
arguments[argument.lstrip("--")] = ""
|
398 |
+
|
399 |
+
return arguments
|
400 |
+
|
401 |
+
|
402 |
+
func _get_speedup():
|
403 |
+
print(args)
|
404 |
+
return args.get("speedup", str(speed_up)).to_float()
|
405 |
+
|
406 |
+
|
407 |
+
func _get_port():
|
408 |
+
return args.get("port", DEFAULT_PORT).to_int()
|
409 |
+
|
410 |
+
|
411 |
+
func _set_seed():
|
412 |
+
var _seed = args.get("env_seed", DEFAULT_SEED).to_int()
|
413 |
+
seed(_seed)
|
414 |
+
|
415 |
+
|
416 |
+
func _set_action_repeat():
|
417 |
+
action_repeat = args.get("action_repeat", str(action_repeat)).to_int()
|
418 |
+
|
419 |
+
|
420 |
+
func disconnect_from_server():
|
421 |
+
stream.disconnect_from_host()
|
422 |
+
|
423 |
+
|
424 |
+
func handle_message() -> bool:
|
425 |
+
# get json message: reset, step, close
|
426 |
+
var message = _get_dict_json_message()
|
427 |
+
if message["type"] == "close":
|
428 |
+
print("received close message, closing game")
|
429 |
+
get_tree().quit()
|
430 |
+
get_tree().set_pause(false)
|
431 |
+
return true
|
432 |
+
|
433 |
+
if message["type"] == "reset":
|
434 |
+
print("resetting all agents")
|
435 |
+
_reset_agents()
|
436 |
+
just_reset = true
|
437 |
+
get_tree().set_pause(false)
|
438 |
+
#print("resetting forcing draw")
|
439 |
+
# RenderingServer.force_draw()
|
440 |
+
# var obs = _get_obs_from_agents()
|
441 |
+
# print("obs ", obs)
|
442 |
+
# var reply = {
|
443 |
+
# "type": "reset",
|
444 |
+
# "obs": obs
|
445 |
+
# }
|
446 |
+
# _send_dict_as_json_message(reply)
|
447 |
+
return true
|
448 |
+
|
449 |
+
if message["type"] == "call":
|
450 |
+
var method = message["method"]
|
451 |
+
var returns = _call_method_on_agents(method)
|
452 |
+
var reply = {"type": "call", "returns": returns}
|
453 |
+
print("calling method from Python")
|
454 |
+
_send_dict_as_json_message(reply)
|
455 |
+
return handle_message()
|
456 |
+
|
457 |
+
if message["type"] == "action":
|
458 |
+
var action = message["action"]
|
459 |
+
_set_agent_actions(action, agents_training)
|
460 |
+
need_to_send_obs = true
|
461 |
+
get_tree().set_pause(false)
|
462 |
+
return true
|
463 |
+
|
464 |
+
print("message was not handled")
|
465 |
+
return false
|
466 |
+
|
467 |
+
|
468 |
+
func _call_method_on_agents(method):
|
469 |
+
var returns = []
|
470 |
+
for agent in all_agents:
|
471 |
+
returns.append(agent.call(method))
|
472 |
+
|
473 |
+
return returns
|
474 |
+
|
475 |
+
|
476 |
+
func _reset_agents_if_done(agents = all_agents):
|
477 |
+
for agent in agents:
|
478 |
+
if agent.get_done():
|
479 |
+
agent.set_done_false()
|
480 |
+
|
481 |
+
|
482 |
+
func _reset_agents(agents = all_agents):
|
483 |
+
for agent in agents:
|
484 |
+
agent.needs_reset = true
|
485 |
+
#agent.reset()
|
486 |
+
|
487 |
+
|
488 |
+
func _get_obs_from_agents(agents: Array = all_agents):
|
489 |
+
var obs = []
|
490 |
+
for agent in agents:
|
491 |
+
obs.append(agent.get_obs())
|
492 |
+
return obs
|
493 |
+
|
494 |
+
|
495 |
+
func _get_reward_from_agents(agents: Array = agents_training):
|
496 |
+
var rewards = []
|
497 |
+
for agent in agents:
|
498 |
+
rewards.append(agent.get_reward())
|
499 |
+
agent.zero_reward()
|
500 |
+
return rewards
|
501 |
+
|
502 |
+
|
503 |
+
func _get_done_from_agents(agents: Array = agents_training):
|
504 |
+
var dones = []
|
505 |
+
for agent in agents:
|
506 |
+
var done = agent.get_done()
|
507 |
+
if done:
|
508 |
+
agent.set_done_false()
|
509 |
+
dones.append(done)
|
510 |
+
return dones
|
511 |
+
|
512 |
+
|
513 |
+
func _set_agent_actions(actions, agents: Array = all_agents):
|
514 |
+
for i in range(len(actions)):
|
515 |
+
agents[i].set_action(actions[i])
|
516 |
+
|
517 |
+
|
518 |
+
func clamp_array(arr: Array, min: float, max: float):
|
519 |
+
var output: Array = []
|
520 |
+
for a in arr:
|
521 |
+
output.append(clamp(a, min, max))
|
522 |
+
return output
|
523 |
+
|
524 |
+
|
525 |
+
## Save recorded export demos on window exit (Close window instead of "Stop" button in Godot Editor)
|
526 |
+
func _notification(what):
|
527 |
+
if not agent_demo_record:
|
528 |
+
return
|
529 |
+
|
530 |
+
if what == NOTIFICATION_PREDELETE:
|
531 |
+
var json_string = JSON.stringify(demo_trajectories, "", false)
|
532 |
+
var file = FileAccess.open(agent_demo_record.expert_demo_save_path, FileAccess.WRITE)
|
533 |
+
|
534 |
+
if not file:
|
535 |
+
var error: Error = FileAccess.get_open_error()
|
536 |
+
assert(not error, "There was an error opening the file: %d" % error)
|
537 |
+
|
538 |
+
file.store_line(json_string)
|
539 |
+
var error = file.get_error()
|
540 |
+
assert(not error, "There was an error after trying to write to the file: %d" % error)
|
alps_field_2k.hdr
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90ef5a4e0c46d0177a06406b59142a6bb426176a85c195fa23d2e443383a9e12
|
3 |
+
size 6531494
|
cartoon_plane/Body.material
ADDED
Binary file (1.82 kB). View file
|
|
cartoon_plane/Cube_1_3__0.material
ADDED
Binary file (1.79 kB). View file
|
|
cartoon_plane/Glass.material
ADDED
Binary file (1.81 kB). View file
|
|
cartoon_plane/material.material
ADDED
Binary file (1.81 kB). View file
|
|
cartoon_plane/material_3.material
ADDED
Binary file (1.82 kB). View file
|
|
cartoon_plane/scene.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69acdd991464940059d06172ab3c298f11b312f5d924bef1ba3f8b4a35ba2032
|
3 |
+
size 216896
|
cartoon_plane/scene.gltf
ADDED
@@ -0,0 +1,3208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"accessors": [
|
3 |
+
{
|
4 |
+
"bufferView": 2,
|
5 |
+
"componentType": 5126,
|
6 |
+
"count": 163,
|
7 |
+
"max": [
|
8 |
+
12.949999809265137,
|
9 |
+
12.070835113525391,
|
10 |
+
16.631193161010742
|
11 |
+
],
|
12 |
+
"min": [
|
13 |
+
-10.476770401000977,
|
14 |
+
-12.561528205871582,
|
15 |
+
-10.497358322143555
|
16 |
+
],
|
17 |
+
"type": "VEC3"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"bufferView": 2,
|
21 |
+
"byteOffset": 1956,
|
22 |
+
"componentType": 5126,
|
23 |
+
"count": 163,
|
24 |
+
"max": [
|
25 |
+
0.7753106951713562,
|
26 |
+
0.91143244504928589,
|
27 |
+
0.28564080595970154
|
28 |
+
],
|
29 |
+
"min": [
|
30 |
+
-0.95833677053451538,
|
31 |
+
-0.91143244504928589,
|
32 |
+
-1
|
33 |
+
],
|
34 |
+
"type": "VEC3"
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"bufferView": 3,
|
38 |
+
"componentType": 5126,
|
39 |
+
"count": 163,
|
40 |
+
"max": [
|
41 |
+
0.95105659961700439,
|
42 |
+
0.8090171217918396,
|
43 |
+
2.4478199023292291e-08,
|
44 |
+
1
|
45 |
+
],
|
46 |
+
"min": [
|
47 |
+
-1,
|
48 |
+
-1,
|
49 |
+
-2.7669146973607894e-08,
|
50 |
+
1
|
51 |
+
],
|
52 |
+
"type": "VEC4"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"bufferView": 1,
|
56 |
+
"componentType": 5126,
|
57 |
+
"count": 163,
|
58 |
+
"max": [
|
59 |
+
1,
|
60 |
+
1
|
61 |
+
],
|
62 |
+
"min": [
|
63 |
+
0,
|
64 |
+
0
|
65 |
+
],
|
66 |
+
"type": "VEC2"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"bufferView": 0,
|
70 |
+
"componentType": 5125,
|
71 |
+
"count": 435,
|
72 |
+
"max": [
|
73 |
+
162
|
74 |
+
],
|
75 |
+
"min": [
|
76 |
+
0
|
77 |
+
],
|
78 |
+
"type": "SCALAR"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"bufferView": 2,
|
82 |
+
"byteOffset": 3912,
|
83 |
+
"componentType": 5126,
|
84 |
+
"count": 168,
|
85 |
+
"max": [
|
86 |
+
69.045951843261719,
|
87 |
+
115.68470764160156,
|
88 |
+
1.6864264011383057
|
89 |
+
],
|
90 |
+
"min": [
|
91 |
+
-131.32583618164062,
|
92 |
+
-115.68470764160156,
|
93 |
+
-3.4447975158691406
|
94 |
+
],
|
95 |
+
"type": "VEC3"
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"bufferView": 2,
|
99 |
+
"byteOffset": 5928,
|
100 |
+
"componentType": 5126,
|
101 |
+
"count": 168,
|
102 |
+
"max": [
|
103 |
+
1,
|
104 |
+
0.99593973159790039,
|
105 |
+
0.99936956167221069
|
106 |
+
],
|
107 |
+
"min": [
|
108 |
+
-1,
|
109 |
+
-0.99593973159790039,
|
110 |
+
-0.99936956167221069
|
111 |
+
],
|
112 |
+
"type": "VEC3"
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"bufferView": 3,
|
116 |
+
"byteOffset": 2608,
|
117 |
+
"componentType": 5126,
|
118 |
+
"count": 168,
|
119 |
+
"max": [
|
120 |
+
0.99999493360519409,
|
121 |
+
0.92716342210769653,
|
122 |
+
0.99593979120254517,
|
123 |
+
1
|
124 |
+
],
|
125 |
+
"min": [
|
126 |
+
-0.99999487400054932,
|
127 |
+
-0.92672520875930786,
|
128 |
+
-1,
|
129 |
+
-1
|
130 |
+
],
|
131 |
+
"type": "VEC4"
|
132 |
+
},
|
133 |
+
{
|
134 |
+
"bufferView": 1,
|
135 |
+
"byteOffset": 1304,
|
136 |
+
"componentType": 5126,
|
137 |
+
"count": 168,
|
138 |
+
"max": [
|
139 |
+
1,
|
140 |
+
1
|
141 |
+
],
|
142 |
+
"min": [
|
143 |
+
0,
|
144 |
+
0
|
145 |
+
],
|
146 |
+
"type": "VEC2"
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"bufferView": 0,
|
150 |
+
"byteOffset": 1740,
|
151 |
+
"componentType": 5125,
|
152 |
+
"count": 252,
|
153 |
+
"max": [
|
154 |
+
167
|
155 |
+
],
|
156 |
+
"min": [
|
157 |
+
0
|
158 |
+
],
|
159 |
+
"type": "SCALAR"
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"bufferView": 2,
|
163 |
+
"byteOffset": 7944,
|
164 |
+
"componentType": 5126,
|
165 |
+
"count": 74,
|
166 |
+
"max": [
|
167 |
+
-0.37032601237297058,
|
168 |
+
4.978886604309082,
|
169 |
+
-2.5330522060394287
|
170 |
+
],
|
171 |
+
"min": [
|
172 |
+
-2.423985481262207,
|
173 |
+
-16.757600784301758,
|
174 |
+
-4.5867118835449219
|
175 |
+
],
|
176 |
+
"type": "VEC3"
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"bufferView": 2,
|
180 |
+
"byteOffset": 8832,
|
181 |
+
"componentType": 5126,
|
182 |
+
"count": 74,
|
183 |
+
"max": [
|
184 |
+
0.96592593193054199,
|
185 |
+
1,
|
186 |
+
0.96592593193054199
|
187 |
+
],
|
188 |
+
"min": [
|
189 |
+
-0.96592593193054199,
|
190 |
+
-1,
|
191 |
+
-0.96592593193054199
|
192 |
+
],
|
193 |
+
"type": "VEC3"
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"bufferView": 3,
|
197 |
+
"byteOffset": 5296,
|
198 |
+
"componentType": 5126,
|
199 |
+
"count": 74,
|
200 |
+
"max": [
|
201 |
+
1,
|
202 |
+
4.1499621418179872e-24,
|
203 |
+
0.96592593193054199,
|
204 |
+
1
|
205 |
+
],
|
206 |
+
"min": [
|
207 |
+
-1,
|
208 |
+
-9.3374238909908813e-24,
|
209 |
+
-0.96592587232589722,
|
210 |
+
1
|
211 |
+
],
|
212 |
+
"type": "VEC4"
|
213 |
+
},
|
214 |
+
{
|
215 |
+
"bufferView": 1,
|
216 |
+
"byteOffset": 2648,
|
217 |
+
"componentType": 5126,
|
218 |
+
"count": 74,
|
219 |
+
"max": [
|
220 |
+
1,
|
221 |
+
1
|
222 |
+
],
|
223 |
+
"min": [
|
224 |
+
0,
|
225 |
+
0
|
226 |
+
],
|
227 |
+
"type": "VEC2"
|
228 |
+
},
|
229 |
+
{
|
230 |
+
"bufferView": 0,
|
231 |
+
"byteOffset": 2748,
|
232 |
+
"componentType": 5125,
|
233 |
+
"count": 144,
|
234 |
+
"max": [
|
235 |
+
73
|
236 |
+
],
|
237 |
+
"min": [
|
238 |
+
0
|
239 |
+
],
|
240 |
+
"type": "SCALAR"
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"bufferView": 2,
|
244 |
+
"byteOffset": 9720,
|
245 |
+
"componentType": 5126,
|
246 |
+
"count": 168,
|
247 |
+
"max": [
|
248 |
+
-103.08991241455078,
|
249 |
+
-37.86639404296875,
|
250 |
+
-0.033820558339357376
|
251 |
+
],
|
252 |
+
"min": [
|
253 |
+
-124.04102325439453,
|
254 |
+
-92.227767944335938,
|
255 |
+
-2.9683210849761963
|
256 |
+
],
|
257 |
+
"type": "VEC3"
|
258 |
+
},
|
259 |
+
{
|
260 |
+
"bufferView": 2,
|
261 |
+
"byteOffset": 11736,
|
262 |
+
"componentType": 5126,
|
263 |
+
"count": 168,
|
264 |
+
"max": [
|
265 |
+
1,
|
266 |
+
1,
|
267 |
+
1
|
268 |
+
],
|
269 |
+
"min": [
|
270 |
+
-1,
|
271 |
+
-1,
|
272 |
+
-1
|
273 |
+
],
|
274 |
+
"type": "VEC3"
|
275 |
+
},
|
276 |
+
{
|
277 |
+
"bufferView": 3,
|
278 |
+
"byteOffset": 6480,
|
279 |
+
"componentType": 5126,
|
280 |
+
"count": 168,
|
281 |
+
"max": [
|
282 |
+
1,
|
283 |
+
0.99937671422958374,
|
284 |
+
1,
|
285 |
+
1
|
286 |
+
],
|
287 |
+
"min": [
|
288 |
+
-1,
|
289 |
+
-0.99937677383422852,
|
290 |
+
-1,
|
291 |
+
1
|
292 |
+
],
|
293 |
+
"type": "VEC4"
|
294 |
+
},
|
295 |
+
{
|
296 |
+
"bufferView": 1,
|
297 |
+
"byteOffset": 3240,
|
298 |
+
"componentType": 5126,
|
299 |
+
"count": 168,
|
300 |
+
"max": [
|
301 |
+
1,
|
302 |
+
1
|
303 |
+
],
|
304 |
+
"min": [
|
305 |
+
0,
|
306 |
+
0
|
307 |
+
],
|
308 |
+
"type": "VEC2"
|
309 |
+
},
|
310 |
+
{
|
311 |
+
"bufferView": 0,
|
312 |
+
"byteOffset": 3324,
|
313 |
+
"componentType": 5125,
|
314 |
+
"count": 252,
|
315 |
+
"max": [
|
316 |
+
167
|
317 |
+
],
|
318 |
+
"min": [
|
319 |
+
0
|
320 |
+
],
|
321 |
+
"type": "SCALAR"
|
322 |
+
},
|
323 |
+
{
|
324 |
+
"bufferView": 2,
|
325 |
+
"byteOffset": 13752,
|
326 |
+
"componentType": 5126,
|
327 |
+
"count": 386,
|
328 |
+
"max": [
|
329 |
+
10.651838302612305,
|
330 |
+
7.7758417129516602,
|
331 |
+
10.651838302612305
|
332 |
+
],
|
333 |
+
"min": [
|
334 |
+
-10.651838302612305,
|
335 |
+
-7.7758417129516602,
|
336 |
+
-10.651838302612305
|
337 |
+
],
|
338 |
+
"type": "VEC3"
|
339 |
+
},
|
340 |
+
{
|
341 |
+
"bufferView": 2,
|
342 |
+
"byteOffset": 18384,
|
343 |
+
"componentType": 5126,
|
344 |
+
"count": 386,
|
345 |
+
"max": [
|
346 |
+
0.96592593193054199,
|
347 |
+
1,
|
348 |
+
0.96592593193054199
|
349 |
+
],
|
350 |
+
"min": [
|
351 |
+
-0.96592593193054199,
|
352 |
+
-1,
|
353 |
+
-0.96592593193054199
|
354 |
+
],
|
355 |
+
"type": "VEC3"
|
356 |
+
},
|
357 |
+
{
|
358 |
+
"bufferView": 3,
|
359 |
+
"byteOffset": 9168,
|
360 |
+
"componentType": 5126,
|
361 |
+
"count": 386,
|
362 |
+
"max": [
|
363 |
+
1,
|
364 |
+
3.6031600814112608e-08,
|
365 |
+
1,
|
366 |
+
1
|
367 |
+
],
|
368 |
+
"min": [
|
369 |
+
-1,
|
370 |
+
-4.9005969060544885e-08,
|
371 |
+
-0.96592593193054199,
|
372 |
+
1
|
373 |
+
],
|
374 |
+
"type": "VEC4"
|
375 |
+
},
|
376 |
+
{
|
377 |
+
"bufferView": 1,
|
378 |
+
"byteOffset": 4584,
|
379 |
+
"componentType": 5126,
|
380 |
+
"count": 386,
|
381 |
+
"max": [
|
382 |
+
1,
|
383 |
+
1
|
384 |
+
],
|
385 |
+
"min": [
|
386 |
+
0,
|
387 |
+
0
|
388 |
+
],
|
389 |
+
"type": "VEC2"
|
390 |
+
},
|
391 |
+
{
|
392 |
+
"bufferView": 0,
|
393 |
+
"byteOffset": 4332,
|
394 |
+
"componentType": 5125,
|
395 |
+
"count": 576,
|
396 |
+
"max": [
|
397 |
+
385
|
398 |
+
],
|
399 |
+
"min": [
|
400 |
+
0
|
401 |
+
],
|
402 |
+
"type": "SCALAR"
|
403 |
+
},
|
404 |
+
{
|
405 |
+
"bufferView": 2,
|
406 |
+
"byteOffset": 23016,
|
407 |
+
"componentType": 5126,
|
408 |
+
"count": 74,
|
409 |
+
"max": [
|
410 |
+
-0.69157510995864868,
|
411 |
+
9.2979526519775391,
|
412 |
+
-4.7304153442382812
|
413 |
+
],
|
414 |
+
"min": [
|
415 |
+
-4.526735782623291,
|
416 |
+
-31.294424057006836,
|
417 |
+
-8.5655755996704102
|
418 |
+
],
|
419 |
+
"type": "VEC3"
|
420 |
+
},
|
421 |
+
{
|
422 |
+
"bufferView": 2,
|
423 |
+
"byteOffset": 23904,
|
424 |
+
"componentType": 5126,
|
425 |
+
"count": 74,
|
426 |
+
"max": [
|
427 |
+
0.96592593193054199,
|
428 |
+
1,
|
429 |
+
0.96592593193054199
|
430 |
+
],
|
431 |
+
"min": [
|
432 |
+
-0.96592593193054199,
|
433 |
+
-1,
|
434 |
+
-0.96592593193054199
|
435 |
+
],
|
436 |
+
"type": "VEC3"
|
437 |
+
},
|
438 |
+
{
|
439 |
+
"bufferView": 3,
|
440 |
+
"byteOffset": 15344,
|
441 |
+
"componentType": 5126,
|
442 |
+
"count": 74,
|
443 |
+
"max": [
|
444 |
+
1,
|
445 |
+
6.6666974310416953e-24,
|
446 |
+
0.96592593193054199,
|
447 |
+
1
|
448 |
+
],
|
449 |
+
"min": [
|
450 |
+
-1,
|
451 |
+
-3.4205967316382915e-24,
|
452 |
+
-0.96592587232589722,
|
453 |
+
1
|
454 |
+
],
|
455 |
+
"type": "VEC4"
|
456 |
+
},
|
457 |
+
{
|
458 |
+
"bufferView": 1,
|
459 |
+
"byteOffset": 7672,
|
460 |
+
"componentType": 5126,
|
461 |
+
"count": 74,
|
462 |
+
"max": [
|
463 |
+
1,
|
464 |
+
1
|
465 |
+
],
|
466 |
+
"min": [
|
467 |
+
0,
|
468 |
+
0
|
469 |
+
],
|
470 |
+
"type": "VEC2"
|
471 |
+
},
|
472 |
+
{
|
473 |
+
"bufferView": 0,
|
474 |
+
"byteOffset": 6636,
|
475 |
+
"componentType": 5125,
|
476 |
+
"count": 144,
|
477 |
+
"max": [
|
478 |
+
73
|
479 |
+
],
|
480 |
+
"min": [
|
481 |
+
0
|
482 |
+
],
|
483 |
+
"type": "SCALAR"
|
484 |
+
},
|
485 |
+
{
|
486 |
+
"bufferView": 2,
|
487 |
+
"byteOffset": 24792,
|
488 |
+
"componentType": 5126,
|
489 |
+
"count": 158,
|
490 |
+
"max": [
|
491 |
+
-192.51797485351562,
|
492 |
+
-70.714591979980469,
|
493 |
+
-0.063159093260765076
|
494 |
+
],
|
495 |
+
"min": [
|
496 |
+
-231.6436767578125,
|
497 |
+
-172.23316955566406,
|
498 |
+
-5.5432696342468262
|
499 |
+
],
|
500 |
+
"type": "VEC3"
|
501 |
+
},
|
502 |
+
{
|
503 |
+
"bufferView": 2,
|
504 |
+
"byteOffset": 26688,
|
505 |
+
"componentType": 5126,
|
506 |
+
"count": 158,
|
507 |
+
"max": [
|
508 |
+
1,
|
509 |
+
1,
|
510 |
+
1
|
511 |
+
],
|
512 |
+
"min": [
|
513 |
+
-1,
|
514 |
+
-1,
|
515 |
+
-1
|
516 |
+
],
|
517 |
+
"type": "VEC3"
|
518 |
+
},
|
519 |
+
{
|
520 |
+
"bufferView": 3,
|
521 |
+
"byteOffset": 16528,
|
522 |
+
"componentType": 5126,
|
523 |
+
"count": 158,
|
524 |
+
"max": [
|
525 |
+
1,
|
526 |
+
0.99937677383422852,
|
527 |
+
1,
|
528 |
+
1
|
529 |
+
],
|
530 |
+
"min": [
|
531 |
+
-1,
|
532 |
+
-0.99937683343887329,
|
533 |
+
-1,
|
534 |
+
1
|
535 |
+
],
|
536 |
+
"type": "VEC4"
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"bufferView": 1,
|
540 |
+
"byteOffset": 8264,
|
541 |
+
"componentType": 5126,
|
542 |
+
"count": 158,
|
543 |
+
"max": [
|
544 |
+
1,
|
545 |
+
1
|
546 |
+
],
|
547 |
+
"min": [
|
548 |
+
0,
|
549 |
+
0
|
550 |
+
],
|
551 |
+
"type": "VEC2"
|
552 |
+
},
|
553 |
+
{
|
554 |
+
"bufferView": 0,
|
555 |
+
"byteOffset": 7212,
|
556 |
+
"componentType": 5125,
|
557 |
+
"count": 252,
|
558 |
+
"max": [
|
559 |
+
157
|
560 |
+
],
|
561 |
+
"min": [
|
562 |
+
0
|
563 |
+
],
|
564 |
+
"type": "SCALAR"
|
565 |
+
},
|
566 |
+
{
|
567 |
+
"bufferView": 2,
|
568 |
+
"byteOffset": 28584,
|
569 |
+
"componentType": 5126,
|
570 |
+
"count": 386,
|
571 |
+
"max": [
|
572 |
+
19.892055511474609,
|
573 |
+
14.521201133728027,
|
574 |
+
19.892055511474609
|
575 |
+
],
|
576 |
+
"min": [
|
577 |
+
-19.892055511474609,
|
578 |
+
-14.521201133728027,
|
579 |
+
-19.892055511474609
|
580 |
+
],
|
581 |
+
"type": "VEC3"
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"bufferView": 2,
|
585 |
+
"byteOffset": 33216,
|
586 |
+
"componentType": 5126,
|
587 |
+
"count": 386,
|
588 |
+
"max": [
|
589 |
+
0.96592593193054199,
|
590 |
+
1,
|
591 |
+
0.96592593193054199
|
592 |
+
],
|
593 |
+
"min": [
|
594 |
+
-0.96592593193054199,
|
595 |
+
-1,
|
596 |
+
-0.96592593193054199
|
597 |
+
],
|
598 |
+
"type": "VEC3"
|
599 |
+
},
|
600 |
+
{
|
601 |
+
"bufferView": 3,
|
602 |
+
"byteOffset": 19056,
|
603 |
+
"componentType": 5126,
|
604 |
+
"count": 386,
|
605 |
+
"max": [
|
606 |
+
1,
|
607 |
+
4.1396436500917844e-08,
|
608 |
+
1,
|
609 |
+
1
|
610 |
+
],
|
611 |
+
"min": [
|
612 |
+
-1,
|
613 |
+
-7.2341222789873427e-08,
|
614 |
+
-0.96592593193054199,
|
615 |
+
1
|
616 |
+
],
|
617 |
+
"type": "VEC4"
|
618 |
+
},
|
619 |
+
{
|
620 |
+
"bufferView": 1,
|
621 |
+
"byteOffset": 9528,
|
622 |
+
"componentType": 5126,
|
623 |
+
"count": 386,
|
624 |
+
"max": [
|
625 |
+
1,
|
626 |
+
1
|
627 |
+
],
|
628 |
+
"min": [
|
629 |
+
0,
|
630 |
+
0
|
631 |
+
],
|
632 |
+
"type": "VEC2"
|
633 |
+
},
|
634 |
+
{
|
635 |
+
"bufferView": 0,
|
636 |
+
"byteOffset": 8220,
|
637 |
+
"componentType": 5125,
|
638 |
+
"count": 576,
|
639 |
+
"max": [
|
640 |
+
385
|
641 |
+
],
|
642 |
+
"min": [
|
643 |
+
0
|
644 |
+
],
|
645 |
+
"type": "SCALAR"
|
646 |
+
},
|
647 |
+
{
|
648 |
+
"bufferView": 2,
|
649 |
+
"byteOffset": 37848,
|
650 |
+
"componentType": 5126,
|
651 |
+
"count": 74,
|
652 |
+
"max": [
|
653 |
+
-0.69157510995864868,
|
654 |
+
9.2979526519775391,
|
655 |
+
-4.7304153442382812
|
656 |
+
],
|
657 |
+
"min": [
|
658 |
+
-4.526735782623291,
|
659 |
+
-31.294424057006836,
|
660 |
+
-8.5655755996704102
|
661 |
+
],
|
662 |
+
"type": "VEC3"
|
663 |
+
},
|
664 |
+
{
|
665 |
+
"bufferView": 2,
|
666 |
+
"byteOffset": 38736,
|
667 |
+
"componentType": 5126,
|
668 |
+
"count": 74,
|
669 |
+
"max": [
|
670 |
+
0.96592593193054199,
|
671 |
+
1,
|
672 |
+
0.96592593193054199
|
673 |
+
],
|
674 |
+
"min": [
|
675 |
+
-0.96592593193054199,
|
676 |
+
-1,
|
677 |
+
-0.96592593193054199
|
678 |
+
],
|
679 |
+
"type": "VEC3"
|
680 |
+
},
|
681 |
+
{
|
682 |
+
"bufferView": 3,
|
683 |
+
"byteOffset": 25232,
|
684 |
+
"componentType": 5126,
|
685 |
+
"count": 74,
|
686 |
+
"max": [
|
687 |
+
1,
|
688 |
+
6.6666974310416953e-24,
|
689 |
+
0.96592593193054199,
|
690 |
+
1
|
691 |
+
],
|
692 |
+
"min": [
|
693 |
+
-1,
|
694 |
+
-3.4205967316382915e-24,
|
695 |
+
-0.96592587232589722,
|
696 |
+
1
|
697 |
+
],
|
698 |
+
"type": "VEC4"
|
699 |
+
},
|
700 |
+
{
|
701 |
+
"bufferView": 1,
|
702 |
+
"byteOffset": 12616,
|
703 |
+
"componentType": 5126,
|
704 |
+
"count": 74,
|
705 |
+
"max": [
|
706 |
+
1,
|
707 |
+
1
|
708 |
+
],
|
709 |
+
"min": [
|
710 |
+
0,
|
711 |
+
0
|
712 |
+
],
|
713 |
+
"type": "VEC2"
|
714 |
+
},
|
715 |
+
{
|
716 |
+
"bufferView": 0,
|
717 |
+
"byteOffset": 10524,
|
718 |
+
"componentType": 5125,
|
719 |
+
"count": 144,
|
720 |
+
"max": [
|
721 |
+
73
|
722 |
+
],
|
723 |
+
"min": [
|
724 |
+
0
|
725 |
+
],
|
726 |
+
"type": "SCALAR"
|
727 |
+
},
|
728 |
+
{
|
729 |
+
"bufferView": 2,
|
730 |
+
"byteOffset": 39624,
|
731 |
+
"componentType": 5126,
|
732 |
+
"count": 158,
|
733 |
+
"max": [
|
734 |
+
-192.51797485351562,
|
735 |
+
-70.714591979980469,
|
736 |
+
-0.063159093260765076
|
737 |
+
],
|
738 |
+
"min": [
|
739 |
+
-231.6436767578125,
|
740 |
+
-172.23316955566406,
|
741 |
+
-5.5432696342468262
|
742 |
+
],
|
743 |
+
"type": "VEC3"
|
744 |
+
},
|
745 |
+
{
|
746 |
+
"bufferView": 2,
|
747 |
+
"byteOffset": 41520,
|
748 |
+
"componentType": 5126,
|
749 |
+
"count": 158,
|
750 |
+
"max": [
|
751 |
+
1,
|
752 |
+
1,
|
753 |
+
1
|
754 |
+
],
|
755 |
+
"min": [
|
756 |
+
-1,
|
757 |
+
-1,
|
758 |
+
-1
|
759 |
+
],
|
760 |
+
"type": "VEC3"
|
761 |
+
},
|
762 |
+
{
|
763 |
+
"bufferView": 3,
|
764 |
+
"byteOffset": 26416,
|
765 |
+
"componentType": 5126,
|
766 |
+
"count": 158,
|
767 |
+
"max": [
|
768 |
+
1,
|
769 |
+
0.99937677383422852,
|
770 |
+
1,
|
771 |
+
1
|
772 |
+
],
|
773 |
+
"min": [
|
774 |
+
-1,
|
775 |
+
-0.99937683343887329,
|
776 |
+
-1,
|
777 |
+
1
|
778 |
+
],
|
779 |
+
"type": "VEC4"
|
780 |
+
},
|
781 |
+
{
|
782 |
+
"bufferView": 1,
|
783 |
+
"byteOffset": 13208,
|
784 |
+
"componentType": 5126,
|
785 |
+
"count": 158,
|
786 |
+
"max": [
|
787 |
+
1,
|
788 |
+
1
|
789 |
+
],
|
790 |
+
"min": [
|
791 |
+
0,
|
792 |
+
0
|
793 |
+
],
|
794 |
+
"type": "VEC2"
|
795 |
+
},
|
796 |
+
{
|
797 |
+
"bufferView": 0,
|
798 |
+
"byteOffset": 11100,
|
799 |
+
"componentType": 5125,
|
800 |
+
"count": 252,
|
801 |
+
"max": [
|
802 |
+
157
|
803 |
+
],
|
804 |
+
"min": [
|
805 |
+
0
|
806 |
+
],
|
807 |
+
"type": "SCALAR"
|
808 |
+
},
|
809 |
+
{
|
810 |
+
"bufferView": 2,
|
811 |
+
"byteOffset": 43416,
|
812 |
+
"componentType": 5126,
|
813 |
+
"count": 386,
|
814 |
+
"max": [
|
815 |
+
19.892055511474609,
|
816 |
+
14.521201133728027,
|
817 |
+
19.892055511474609
|
818 |
+
],
|
819 |
+
"min": [
|
820 |
+
-19.892055511474609,
|
821 |
+
-14.521201133728027,
|
822 |
+
-19.892055511474609
|
823 |
+
],
|
824 |
+
"type": "VEC3"
|
825 |
+
},
|
826 |
+
{
|
827 |
+
"bufferView": 2,
|
828 |
+
"byteOffset": 48048,
|
829 |
+
"componentType": 5126,
|
830 |
+
"count": 386,
|
831 |
+
"max": [
|
832 |
+
0.96592593193054199,
|
833 |
+
1,
|
834 |
+
0.96592593193054199
|
835 |
+
],
|
836 |
+
"min": [
|
837 |
+
-0.96592593193054199,
|
838 |
+
-1,
|
839 |
+
-0.96592593193054199
|
840 |
+
],
|
841 |
+
"type": "VEC3"
|
842 |
+
},
|
843 |
+
{
|
844 |
+
"bufferView": 3,
|
845 |
+
"byteOffset": 28944,
|
846 |
+
"componentType": 5126,
|
847 |
+
"count": 386,
|
848 |
+
"max": [
|
849 |
+
1,
|
850 |
+
4.1396436500917844e-08,
|
851 |
+
1,
|
852 |
+
1
|
853 |
+
],
|
854 |
+
"min": [
|
855 |
+
-1,
|
856 |
+
-7.2341222789873427e-08,
|
857 |
+
-0.96592593193054199,
|
858 |
+
1
|
859 |
+
],
|
860 |
+
"type": "VEC4"
|
861 |
+
},
|
862 |
+
{
|
863 |
+
"bufferView": 1,
|
864 |
+
"byteOffset": 14472,
|
865 |
+
"componentType": 5126,
|
866 |
+
"count": 386,
|
867 |
+
"max": [
|
868 |
+
1,
|
869 |
+
1
|
870 |
+
],
|
871 |
+
"min": [
|
872 |
+
0,
|
873 |
+
0
|
874 |
+
],
|
875 |
+
"type": "VEC2"
|
876 |
+
},
|
877 |
+
{
|
878 |
+
"bufferView": 0,
|
879 |
+
"byteOffset": 12108,
|
880 |
+
"componentType": 5125,
|
881 |
+
"count": 576,
|
882 |
+
"max": [
|
883 |
+
385
|
884 |
+
],
|
885 |
+
"min": [
|
886 |
+
0
|
887 |
+
],
|
888 |
+
"type": "SCALAR"
|
889 |
+
},
|
890 |
+
{
|
891 |
+
"bufferView": 2,
|
892 |
+
"byteOffset": 52680,
|
893 |
+
"componentType": 5126,
|
894 |
+
"count": 56,
|
895 |
+
"max": [
|
896 |
+
87.186851501464844,
|
897 |
+
-26.638965606689453,
|
898 |
+
299.34503173828125
|
899 |
+
],
|
900 |
+
"min": [
|
901 |
+
48.678955078125,
|
902 |
+
-30.55317497253418,
|
903 |
+
232.06298828125
|
904 |
+
],
|
905 |
+
"type": "VEC3"
|
906 |
+
},
|
907 |
+
{
|
908 |
+
"bufferView": 2,
|
909 |
+
"byteOffset": 53352,
|
910 |
+
"componentType": 5126,
|
911 |
+
"count": 56,
|
912 |
+
"max": [
|
913 |
+
0.98992806673049927,
|
914 |
+
1,
|
915 |
+
0.98992806673049927
|
916 |
+
],
|
917 |
+
"min": [
|
918 |
+
-0.98992806673049927,
|
919 |
+
-1,
|
920 |
+
-0.98992806673049927
|
921 |
+
],
|
922 |
+
"type": "VEC3"
|
923 |
+
},
|
924 |
+
{
|
925 |
+
"bufferView": 3,
|
926 |
+
"byteOffset": 35120,
|
927 |
+
"componentType": 5126,
|
928 |
+
"count": 56,
|
929 |
+
"max": [
|
930 |
+
0.98992812633514404,
|
931 |
+
0.0073813591152429581,
|
932 |
+
0.98467016220092773,
|
933 |
+
1
|
934 |
+
],
|
935 |
+
"min": [
|
936 |
+
-0.98992806673049927,
|
937 |
+
-0.0089176241308450699,
|
938 |
+
-0.98467016220092773,
|
939 |
+
1
|
940 |
+
],
|
941 |
+
"type": "VEC4"
|
942 |
+
},
|
943 |
+
{
|
944 |
+
"bufferView": 1,
|
945 |
+
"byteOffset": 17560,
|
946 |
+
"componentType": 5126,
|
947 |
+
"count": 56,
|
948 |
+
"max": [
|
949 |
+
1,
|
950 |
+
1
|
951 |
+
],
|
952 |
+
"min": [
|
953 |
+
0,
|
954 |
+
0
|
955 |
+
],
|
956 |
+
"type": "VEC2"
|
957 |
+
},
|
958 |
+
{
|
959 |
+
"bufferView": 0,
|
960 |
+
"byteOffset": 14412,
|
961 |
+
"componentType": 5125,
|
962 |
+
"count": 84,
|
963 |
+
"max": [
|
964 |
+
55
|
965 |
+
],
|
966 |
+
"min": [
|
967 |
+
0
|
968 |
+
],
|
969 |
+
"type": "SCALAR"
|
970 |
+
},
|
971 |
+
{
|
972 |
+
"bufferView": 2,
|
973 |
+
"byteOffset": 54024,
|
974 |
+
"componentType": 5126,
|
975 |
+
"count": 56,
|
976 |
+
"max": [
|
977 |
+
87.186851501464844,
|
978 |
+
-32.165931701660156,
|
979 |
+
299.34503173828125
|
980 |
+
],
|
981 |
+
"min": [
|
982 |
+
48.678955078125,
|
983 |
+
-36.08013916015625,
|
984 |
+
232.06298828125
|
985 |
+
],
|
986 |
+
"type": "VEC3"
|
987 |
+
},
|
988 |
+
{
|
989 |
+
"bufferView": 2,
|
990 |
+
"byteOffset": 54696,
|
991 |
+
"componentType": 5126,
|
992 |
+
"count": 56,
|
993 |
+
"max": [
|
994 |
+
0.98992806673049927,
|
995 |
+
1,
|
996 |
+
0.98992806673049927
|
997 |
+
],
|
998 |
+
"min": [
|
999 |
+
-0.98992806673049927,
|
1000 |
+
-1,
|
1001 |
+
-0.98992806673049927
|
1002 |
+
],
|
1003 |
+
"type": "VEC3"
|
1004 |
+
},
|
1005 |
+
{
|
1006 |
+
"bufferView": 3,
|
1007 |
+
"byteOffset": 36016,
|
1008 |
+
"componentType": 5126,
|
1009 |
+
"count": 56,
|
1010 |
+
"max": [
|
1011 |
+
0.98992812633514404,
|
1012 |
+
0.0073813600465655327,
|
1013 |
+
0.98467016220092773,
|
1014 |
+
1
|
1015 |
+
],
|
1016 |
+
"min": [
|
1017 |
+
-0.98992806673049927,
|
1018 |
+
-0.0089175542816519737,
|
1019 |
+
-0.98467016220092773,
|
1020 |
+
1
|
1021 |
+
],
|
1022 |
+
"type": "VEC4"
|
1023 |
+
},
|
1024 |
+
{
|
1025 |
+
"bufferView": 1,
|
1026 |
+
"byteOffset": 18008,
|
1027 |
+
"componentType": 5126,
|
1028 |
+
"count": 56,
|
1029 |
+
"max": [
|
1030 |
+
1,
|
1031 |
+
1
|
1032 |
+
],
|
1033 |
+
"min": [
|
1034 |
+
0,
|
1035 |
+
0
|
1036 |
+
],
|
1037 |
+
"type": "VEC2"
|
1038 |
+
},
|
1039 |
+
{
|
1040 |
+
"bufferView": 0,
|
1041 |
+
"byteOffset": 14748,
|
1042 |
+
"componentType": 5125,
|
1043 |
+
"count": 84,
|
1044 |
+
"max": [
|
1045 |
+
55
|
1046 |
+
],
|
1047 |
+
"min": [
|
1048 |
+
0
|
1049 |
+
],
|
1050 |
+
"type": "SCALAR"
|
1051 |
+
},
|
1052 |
+
{
|
1053 |
+
"bufferView": 2,
|
1054 |
+
"byteOffset": 55368,
|
1055 |
+
"componentType": 5126,
|
1056 |
+
"count": 56,
|
1057 |
+
"max": [
|
1058 |
+
87.186851501464844,
|
1059 |
+
-37.051544189453125,
|
1060 |
+
299.34503173828125
|
1061 |
+
],
|
1062 |
+
"min": [
|
1063 |
+
48.678955078125,
|
1064 |
+
-40.965751647949219,
|
1065 |
+
232.06298828125
|
1066 |
+
],
|
1067 |
+
"type": "VEC3"
|
1068 |
+
},
|
1069 |
+
{
|
1070 |
+
"bufferView": 2,
|
1071 |
+
"byteOffset": 56040,
|
1072 |
+
"componentType": 5126,
|
1073 |
+
"count": 56,
|
1074 |
+
"max": [
|
1075 |
+
0.98992806673049927,
|
1076 |
+
1,
|
1077 |
+
0.98992806673049927
|
1078 |
+
],
|
1079 |
+
"min": [
|
1080 |
+
-0.98992806673049927,
|
1081 |
+
-1,
|
1082 |
+
-0.98992806673049927
|
1083 |
+
],
|
1084 |
+
"type": "VEC3"
|
1085 |
+
},
|
1086 |
+
{
|
1087 |
+
"bufferView": 3,
|
1088 |
+
"byteOffset": 36912,
|
1089 |
+
"componentType": 5126,
|
1090 |
+
"count": 56,
|
1091 |
+
"max": [
|
1092 |
+
0.98992812633514404,
|
1093 |
+
0.0073827789165079594,
|
1094 |
+
0.98467016220092773,
|
1095 |
+
1
|
1096 |
+
],
|
1097 |
+
"min": [
|
1098 |
+
-0.98992806673049927,
|
1099 |
+
-0.0089190937578678131,
|
1100 |
+
-0.98467016220092773,
|
1101 |
+
1
|
1102 |
+
],
|
1103 |
+
"type": "VEC4"
|
1104 |
+
},
|
1105 |
+
{
|
1106 |
+
"bufferView": 1,
|
1107 |
+
"byteOffset": 18456,
|
1108 |
+
"componentType": 5126,
|
1109 |
+
"count": 56,
|
1110 |
+
"max": [
|
1111 |
+
1,
|
1112 |
+
1
|
1113 |
+
],
|
1114 |
+
"min": [
|
1115 |
+
0,
|
1116 |
+
0
|
1117 |
+
],
|
1118 |
+
"type": "VEC2"
|
1119 |
+
},
|
1120 |
+
{
|
1121 |
+
"bufferView": 0,
|
1122 |
+
"byteOffset": 15084,
|
1123 |
+
"componentType": 5125,
|
1124 |
+
"count": 84,
|
1125 |
+
"max": [
|
1126 |
+
55
|
1127 |
+
],
|
1128 |
+
"min": [
|
1129 |
+
0
|
1130 |
+
],
|
1131 |
+
"type": "SCALAR"
|
1132 |
+
},
|
1133 |
+
{
|
1134 |
+
"bufferView": 2,
|
1135 |
+
"byteOffset": 56712,
|
1136 |
+
"componentType": 5126,
|
1137 |
+
"count": 56,
|
1138 |
+
"max": [
|
1139 |
+
87.186851501464844,
|
1140 |
+
-26.638965606689453,
|
1141 |
+
299.34503173828125
|
1142 |
+
],
|
1143 |
+
"min": [
|
1144 |
+
48.678955078125,
|
1145 |
+
-30.55317497253418,
|
1146 |
+
232.06298828125
|
1147 |
+
],
|
1148 |
+
"type": "VEC3"
|
1149 |
+
},
|
1150 |
+
{
|
1151 |
+
"bufferView": 2,
|
1152 |
+
"byteOffset": 57384,
|
1153 |
+
"componentType": 5126,
|
1154 |
+
"count": 56,
|
1155 |
+
"max": [
|
1156 |
+
0.98992806673049927,
|
1157 |
+
1,
|
1158 |
+
0.98992806673049927
|
1159 |
+
],
|
1160 |
+
"min": [
|
1161 |
+
-0.98992806673049927,
|
1162 |
+
-1,
|
1163 |
+
-0.98992806673049927
|
1164 |
+
],
|
1165 |
+
"type": "VEC3"
|
1166 |
+
},
|
1167 |
+
{
|
1168 |
+
"bufferView": 3,
|
1169 |
+
"byteOffset": 37808,
|
1170 |
+
"componentType": 5126,
|
1171 |
+
"count": 56,
|
1172 |
+
"max": [
|
1173 |
+
0.98992812633514404,
|
1174 |
+
0.0073813591152429581,
|
1175 |
+
0.98467016220092773,
|
1176 |
+
1
|
1177 |
+
],
|
1178 |
+
"min": [
|
1179 |
+
-0.98992806673049927,
|
1180 |
+
-0.0089176241308450699,
|
1181 |
+
-0.98467016220092773,
|
1182 |
+
1
|
1183 |
+
],
|
1184 |
+
"type": "VEC4"
|
1185 |
+
},
|
1186 |
+
{
|
1187 |
+
"bufferView": 1,
|
1188 |
+
"byteOffset": 18904,
|
1189 |
+
"componentType": 5126,
|
1190 |
+
"count": 56,
|
1191 |
+
"max": [
|
1192 |
+
1,
|
1193 |
+
1
|
1194 |
+
],
|
1195 |
+
"min": [
|
1196 |
+
0,
|
1197 |
+
0
|
1198 |
+
],
|
1199 |
+
"type": "VEC2"
|
1200 |
+
},
|
1201 |
+
{
|
1202 |
+
"bufferView": 0,
|
1203 |
+
"byteOffset": 15420,
|
1204 |
+
"componentType": 5125,
|
1205 |
+
"count": 84,
|
1206 |
+
"max": [
|
1207 |
+
55
|
1208 |
+
],
|
1209 |
+
"min": [
|
1210 |
+
0
|
1211 |
+
],
|
1212 |
+
"type": "SCALAR"
|
1213 |
+
},
|
1214 |
+
{
|
1215 |
+
"bufferView": 2,
|
1216 |
+
"byteOffset": 58056,
|
1217 |
+
"componentType": 5126,
|
1218 |
+
"count": 56,
|
1219 |
+
"max": [
|
1220 |
+
87.186851501464844,
|
1221 |
+
-32.165931701660156,
|
1222 |
+
299.34503173828125
|
1223 |
+
],
|
1224 |
+
"min": [
|
1225 |
+
48.678955078125,
|
1226 |
+
-36.08013916015625,
|
1227 |
+
232.06298828125
|
1228 |
+
],
|
1229 |
+
"type": "VEC3"
|
1230 |
+
},
|
1231 |
+
{
|
1232 |
+
"bufferView": 2,
|
1233 |
+
"byteOffset": 58728,
|
1234 |
+
"componentType": 5126,
|
1235 |
+
"count": 56,
|
1236 |
+
"max": [
|
1237 |
+
0.98992806673049927,
|
1238 |
+
1,
|
1239 |
+
0.98992806673049927
|
1240 |
+
],
|
1241 |
+
"min": [
|
1242 |
+
-0.98992806673049927,
|
1243 |
+
-1,
|
1244 |
+
-0.98992806673049927
|
1245 |
+
],
|
1246 |
+
"type": "VEC3"
|
1247 |
+
},
|
1248 |
+
{
|
1249 |
+
"bufferView": 3,
|
1250 |
+
"byteOffset": 38704,
|
1251 |
+
"componentType": 5126,
|
1252 |
+
"count": 56,
|
1253 |
+
"max": [
|
1254 |
+
0.98992812633514404,
|
1255 |
+
0.0073813600465655327,
|
1256 |
+
0.98467016220092773,
|
1257 |
+
1
|
1258 |
+
],
|
1259 |
+
"min": [
|
1260 |
+
-0.98992806673049927,
|
1261 |
+
-0.0089175542816519737,
|
1262 |
+
-0.98467016220092773,
|
1263 |
+
1
|
1264 |
+
],
|
1265 |
+
"type": "VEC4"
|
1266 |
+
},
|
1267 |
+
{
|
1268 |
+
"bufferView": 1,
|
1269 |
+
"byteOffset": 19352,
|
1270 |
+
"componentType": 5126,
|
1271 |
+
"count": 56,
|
1272 |
+
"max": [
|
1273 |
+
1,
|
1274 |
+
1
|
1275 |
+
],
|
1276 |
+
"min": [
|
1277 |
+
0,
|
1278 |
+
0
|
1279 |
+
],
|
1280 |
+
"type": "VEC2"
|
1281 |
+
},
|
1282 |
+
{
|
1283 |
+
"bufferView": 0,
|
1284 |
+
"byteOffset": 15756,
|
1285 |
+
"componentType": 5125,
|
1286 |
+
"count": 84,
|
1287 |
+
"max": [
|
1288 |
+
55
|
1289 |
+
],
|
1290 |
+
"min": [
|
1291 |
+
0
|
1292 |
+
],
|
1293 |
+
"type": "SCALAR"
|
1294 |
+
},
|
1295 |
+
{
|
1296 |
+
"bufferView": 2,
|
1297 |
+
"byteOffset": 59400,
|
1298 |
+
"componentType": 5126,
|
1299 |
+
"count": 56,
|
1300 |
+
"max": [
|
1301 |
+
87.186851501464844,
|
1302 |
+
-37.051544189453125,
|
1303 |
+
299.34503173828125
|
1304 |
+
],
|
1305 |
+
"min": [
|
1306 |
+
48.678955078125,
|
1307 |
+
-40.965751647949219,
|
1308 |
+
232.06298828125
|
1309 |
+
],
|
1310 |
+
"type": "VEC3"
|
1311 |
+
},
|
1312 |
+
{
|
1313 |
+
"bufferView": 2,
|
1314 |
+
"byteOffset": 60072,
|
1315 |
+
"componentType": 5126,
|
1316 |
+
"count": 56,
|
1317 |
+
"max": [
|
1318 |
+
0.98992806673049927,
|
1319 |
+
1,
|
1320 |
+
0.98992806673049927
|
1321 |
+
],
|
1322 |
+
"min": [
|
1323 |
+
-0.98992806673049927,
|
1324 |
+
-1,
|
1325 |
+
-0.98992806673049927
|
1326 |
+
],
|
1327 |
+
"type": "VEC3"
|
1328 |
+
},
|
1329 |
+
{
|
1330 |
+
"bufferView": 3,
|
1331 |
+
"byteOffset": 39600,
|
1332 |
+
"componentType": 5126,
|
1333 |
+
"count": 56,
|
1334 |
+
"max": [
|
1335 |
+
0.98992812633514404,
|
1336 |
+
0.0073827789165079594,
|
1337 |
+
0.98467016220092773,
|
1338 |
+
1
|
1339 |
+
],
|
1340 |
+
"min": [
|
1341 |
+
-0.98992806673049927,
|
1342 |
+
-0.0089190937578678131,
|
1343 |
+
-0.98467016220092773,
|
1344 |
+
1
|
1345 |
+
],
|
1346 |
+
"type": "VEC4"
|
1347 |
+
},
|
1348 |
+
{
|
1349 |
+
"bufferView": 1,
|
1350 |
+
"byteOffset": 19800,
|
1351 |
+
"componentType": 5126,
|
1352 |
+
"count": 56,
|
1353 |
+
"max": [
|
1354 |
+
1,
|
1355 |
+
1
|
1356 |
+
],
|
1357 |
+
"min": [
|
1358 |
+
0,
|
1359 |
+
0
|
1360 |
+
],
|
1361 |
+
"type": "VEC2"
|
1362 |
+
},
|
1363 |
+
{
|
1364 |
+
"bufferView": 0,
|
1365 |
+
"byteOffset": 16092,
|
1366 |
+
"componentType": 5125,
|
1367 |
+
"count": 84,
|
1368 |
+
"max": [
|
1369 |
+
55
|
1370 |
+
],
|
1371 |
+
"min": [
|
1372 |
+
0
|
1373 |
+
],
|
1374 |
+
"type": "SCALAR"
|
1375 |
+
},
|
1376 |
+
{
|
1377 |
+
"bufferView": 2,
|
1378 |
+
"byteOffset": 60744,
|
1379 |
+
"componentType": 5126,
|
1380 |
+
"count": 529,
|
1381 |
+
"max": [
|
1382 |
+
417.94387817382812,
|
1383 |
+
99.216903686523438,
|
1384 |
+
398.960693359375
|
1385 |
+
],
|
1386 |
+
"min": [
|
1387 |
+
-417.86929321289062,
|
1388 |
+
-95.718612670898438,
|
1389 |
+
-393.07296752929688
|
1390 |
+
],
|
1391 |
+
"type": "VEC3"
|
1392 |
+
},
|
1393 |
+
{
|
1394 |
+
"bufferView": 2,
|
1395 |
+
"byteOffset": 67092,
|
1396 |
+
"componentType": 5126,
|
1397 |
+
"count": 529,
|
1398 |
+
"max": [
|
1399 |
+
1,
|
1400 |
+
0.99993491172790527,
|
1401 |
+
0.99861770868301392
|
1402 |
+
],
|
1403 |
+
"min": [
|
1404 |
+
-1,
|
1405 |
+
-0.99995923042297363,
|
1406 |
+
-0.99959629774093628
|
1407 |
+
],
|
1408 |
+
"type": "VEC3"
|
1409 |
+
},
|
1410 |
+
{
|
1411 |
+
"bufferView": 3,
|
1412 |
+
"byteOffset": 40496,
|
1413 |
+
"componentType": 5126,
|
1414 |
+
"count": 529,
|
1415 |
+
"max": [
|
1416 |
+
1,
|
1417 |
+
0.99503612518310547,
|
1418 |
+
0.98400908708572388,
|
1419 |
+
1
|
1420 |
+
],
|
1421 |
+
"min": [
|
1422 |
+
-1,
|
1423 |
+
-0.93140757083892822,
|
1424 |
+
-0.99999719858169556,
|
1425 |
+
-1
|
1426 |
+
],
|
1427 |
+
"type": "VEC4"
|
1428 |
+
},
|
1429 |
+
{
|
1430 |
+
"bufferView": 1,
|
1431 |
+
"byteOffset": 20248,
|
1432 |
+
"componentType": 5126,
|
1433 |
+
"count": 529,
|
1434 |
+
"max": [
|
1435 |
+
1,
|
1436 |
+
1
|
1437 |
+
],
|
1438 |
+
"min": [
|
1439 |
+
0,
|
1440 |
+
0
|
1441 |
+
],
|
1442 |
+
"type": "VEC2"
|
1443 |
+
},
|
1444 |
+
{
|
1445 |
+
"bufferView": 0,
|
1446 |
+
"byteOffset": 16428,
|
1447 |
+
"componentType": 5125,
|
1448 |
+
"count": 972,
|
1449 |
+
"max": [
|
1450 |
+
528
|
1451 |
+
],
|
1452 |
+
"min": [
|
1453 |
+
0
|
1454 |
+
],
|
1455 |
+
"type": "SCALAR"
|
1456 |
+
},
|
1457 |
+
{
|
1458 |
+
"bufferView": 2,
|
1459 |
+
"byteOffset": 73440,
|
1460 |
+
"componentType": 5126,
|
1461 |
+
"count": 244,
|
1462 |
+
"max": [
|
1463 |
+
434.4974365234375,
|
1464 |
+
99.216903686523438,
|
1465 |
+
398.960693359375
|
1466 |
+
],
|
1467 |
+
"min": [
|
1468 |
+
-434.42288208007812,
|
1469 |
+
-112.64717864990234,
|
1470 |
+
-393.07296752929688
|
1471 |
+
],
|
1472 |
+
"type": "VEC3"
|
1473 |
+
},
|
1474 |
+
{
|
1475 |
+
"bufferView": 2,
|
1476 |
+
"byteOffset": 76368,
|
1477 |
+
"componentType": 5126,
|
1478 |
+
"count": 244,
|
1479 |
+
"max": [
|
1480 |
+
0.99999499320983887,
|
1481 |
+
0.99967437982559204,
|
1482 |
+
0.96623903512954712
|
1483 |
+
],
|
1484 |
+
"min": [
|
1485 |
+
-0.99999505281448364,
|
1486 |
+
-0.99965155124664307,
|
1487 |
+
-0.99979156255722046
|
1488 |
+
],
|
1489 |
+
"type": "VEC3"
|
1490 |
+
},
|
1491 |
+
{
|
1492 |
+
"bufferView": 3,
|
1493 |
+
"byteOffset": 48960,
|
1494 |
+
"componentType": 5126,
|
1495 |
+
"count": 244,
|
1496 |
+
"max": [
|
1497 |
+
1,
|
1498 |
+
0.99794167280197144,
|
1499 |
+
0.95789152383804321,
|
1500 |
+
1
|
1501 |
+
],
|
1502 |
+
"min": [
|
1503 |
+
-1,
|
1504 |
+
-0.99984729290008545,
|
1505 |
+
-0.9979901909828186,
|
1506 |
+
-1
|
1507 |
+
],
|
1508 |
+
"type": "VEC4"
|
1509 |
+
},
|
1510 |
+
{
|
1511 |
+
"bufferView": 1,
|
1512 |
+
"byteOffset": 24480,
|
1513 |
+
"componentType": 5126,
|
1514 |
+
"count": 244,
|
1515 |
+
"max": [
|
1516 |
+
1,
|
1517 |
+
1
|
1518 |
+
],
|
1519 |
+
"min": [
|
1520 |
+
0,
|
1521 |
+
0
|
1522 |
+
],
|
1523 |
+
"type": "VEC2"
|
1524 |
+
},
|
1525 |
+
{
|
1526 |
+
"bufferView": 0,
|
1527 |
+
"byteOffset": 20316,
|
1528 |
+
"componentType": 5125,
|
1529 |
+
"count": 420,
|
1530 |
+
"max": [
|
1531 |
+
243
|
1532 |
+
],
|
1533 |
+
"min": [
|
1534 |
+
0
|
1535 |
+
],
|
1536 |
+
"type": "SCALAR"
|
1537 |
+
},
|
1538 |
+
{
|
1539 |
+
"bufferView": 2,
|
1540 |
+
"byteOffset": 79296,
|
1541 |
+
"componentType": 5126,
|
1542 |
+
"count": 16,
|
1543 |
+
"max": [
|
1544 |
+
72.184349060058594,
|
1545 |
+
87.669517517089844,
|
1546 |
+
225.43736267089844
|
1547 |
+
],
|
1548 |
+
"min": [
|
1549 |
+
-72.109786987304688,
|
1550 |
+
-11.801899909973145,
|
1551 |
+
6.5268120765686035
|
1552 |
+
],
|
1553 |
+
"type": "VEC3"
|
1554 |
+
},
|
1555 |
+
{
|
1556 |
+
"bufferView": 2,
|
1557 |
+
"byteOffset": 79488,
|
1558 |
+
"componentType": 5126,
|
1559 |
+
"count": 16,
|
1560 |
+
"max": [
|
1561 |
+
0.94465756416320801,
|
1562 |
+
0.99961799383163452,
|
1563 |
+
0.87517642974853516
|
1564 |
+
],
|
1565 |
+
"min": [
|
1566 |
+
-0.99990540742874146,
|
1567 |
+
-0.95777672529220581,
|
1568 |
+
-0.59132260084152222
|
1569 |
+
],
|
1570 |
+
"type": "VEC3"
|
1571 |
+
},
|
1572 |
+
{
|
1573 |
+
"bufferView": 3,
|
1574 |
+
"byteOffset": 52864,
|
1575 |
+
"componentType": 5126,
|
1576 |
+
"count": 16,
|
1577 |
+
"max": [
|
1578 |
+
0.99952733516693115,
|
1579 |
+
0.39090055227279663,
|
1580 |
+
0.018440555781126022,
|
1581 |
+
1
|
1582 |
+
],
|
1583 |
+
"min": [
|
1584 |
+
-0.99994564056396484,
|
1585 |
+
-0.1586826890707016,
|
1586 |
+
-0.99664419889450073,
|
1587 |
+
-1
|
1588 |
+
],
|
1589 |
+
"type": "VEC4"
|
1590 |
+
},
|
1591 |
+
{
|
1592 |
+
"bufferView": 1,
|
1593 |
+
"byteOffset": 26432,
|
1594 |
+
"componentType": 5126,
|
1595 |
+
"count": 16,
|
1596 |
+
"max": [
|
1597 |
+
0.97632133960723877,
|
1598 |
+
0.98159992694854736
|
1599 |
+
],
|
1600 |
+
"min": [
|
1601 |
+
0.013218616135418415,
|
1602 |
+
0.5194861888885498
|
1603 |
+
],
|
1604 |
+
"type": "VEC2"
|
1605 |
+
},
|
1606 |
+
{
|
1607 |
+
"bufferView": 0,
|
1608 |
+
"byteOffset": 21996,
|
1609 |
+
"componentType": 5125,
|
1610 |
+
"count": 24,
|
1611 |
+
"max": [
|
1612 |
+
15
|
1613 |
+
],
|
1614 |
+
"min": [
|
1615 |
+
0
|
1616 |
+
],
|
1617 |
+
"type": "SCALAR"
|
1618 |
+
},
|
1619 |
+
{
|
1620 |
+
"bufferView": 2,
|
1621 |
+
"byteOffset": 79680,
|
1622 |
+
"componentType": 5126,
|
1623 |
+
"count": 120,
|
1624 |
+
"max": [
|
1625 |
+
359.43194580078125,
|
1626 |
+
-52.727996826171875,
|
1627 |
+
234.7813720703125
|
1628 |
+
],
|
1629 |
+
"min": [
|
1630 |
+
-359.35739135742188,
|
1631 |
+
-85.97186279296875,
|
1632 |
+
4.0965709686279297
|
1633 |
+
],
|
1634 |
+
"type": "VEC3"
|
1635 |
+
},
|
1636 |
+
{
|
1637 |
+
"bufferView": 2,
|
1638 |
+
"byteOffset": 81120,
|
1639 |
+
"componentType": 5126,
|
1640 |
+
"count": 120,
|
1641 |
+
"max": [
|
1642 |
+
0.98549240827560425,
|
1643 |
+
0.99958568811416626,
|
1644 |
+
0.99996495246887207
|
1645 |
+
],
|
1646 |
+
"min": [
|
1647 |
+
-0.92871010303497314,
|
1648 |
+
-0.99781399965286255,
|
1649 |
+
-0.99984771013259888
|
1650 |
+
],
|
1651 |
+
"type": "VEC3"
|
1652 |
+
},
|
1653 |
+
{
|
1654 |
+
"bufferView": 3,
|
1655 |
+
"byteOffset": 53120,
|
1656 |
+
"componentType": 5126,
|
1657 |
+
"count": 120,
|
1658 |
+
"max": [
|
1659 |
+
1,
|
1660 |
+
0.061126749962568283,
|
1661 |
+
0.99963241815567017,
|
1662 |
+
1
|
1663 |
+
],
|
1664 |
+
"min": [
|
1665 |
+
-0.99977493286132812,
|
1666 |
+
-0.99864476919174194,
|
1667 |
+
-0.97820085287094116,
|
1668 |
+
-1
|
1669 |
+
],
|
1670 |
+
"type": "VEC4"
|
1671 |
+
},
|
1672 |
+
{
|
1673 |
+
"bufferView": 1,
|
1674 |
+
"byteOffset": 26560,
|
1675 |
+
"componentType": 5126,
|
1676 |
+
"count": 120,
|
1677 |
+
"max": [
|
1678 |
+
1,
|
1679 |
+
1
|
1680 |
+
],
|
1681 |
+
"min": [
|
1682 |
+
0,
|
1683 |
+
0
|
1684 |
+
],
|
1685 |
+
"type": "VEC2"
|
1686 |
+
},
|
1687 |
+
{
|
1688 |
+
"bufferView": 0,
|
1689 |
+
"byteOffset": 22092,
|
1690 |
+
"componentType": 5125,
|
1691 |
+
"count": 180,
|
1692 |
+
"max": [
|
1693 |
+
119
|
1694 |
+
],
|
1695 |
+
"min": [
|
1696 |
+
0
|
1697 |
+
],
|
1698 |
+
"type": "SCALAR"
|
1699 |
+
},
|
1700 |
+
{
|
1701 |
+
"bufferView": 2,
|
1702 |
+
"byteOffset": 82560,
|
1703 |
+
"componentType": 5126,
|
1704 |
+
"count": 275,
|
1705 |
+
"max": [
|
1706 |
+
0.050080213695764542,
|
1707 |
+
99.216903686523438,
|
1708 |
+
398.960693359375
|
1709 |
+
],
|
1710 |
+
"min": [
|
1711 |
+
-417.86929321289062,
|
1712 |
+
-95.718612670898438,
|
1713 |
+
-393.07296752929688
|
1714 |
+
],
|
1715 |
+
"type": "VEC3"
|
1716 |
+
},
|
1717 |
+
{
|
1718 |
+
"bufferView": 2,
|
1719 |
+
"byteOffset": 85860,
|
1720 |
+
"componentType": 5126,
|
1721 |
+
"count": 275,
|
1722 |
+
"max": [
|
1723 |
+
1,
|
1724 |
+
0.99992120265960693,
|
1725 |
+
0.99861770868301392
|
1726 |
+
],
|
1727 |
+
"min": [
|
1728 |
+
-1,
|
1729 |
+
-0.99995225667953491,
|
1730 |
+
-0.99959629774093628
|
1731 |
+
],
|
1732 |
+
"type": "VEC3"
|
1733 |
+
},
|
1734 |
+
{
|
1735 |
+
"bufferView": 3,
|
1736 |
+
"byteOffset": 55040,
|
1737 |
+
"componentType": 5126,
|
1738 |
+
"count": 275,
|
1739 |
+
"max": [
|
1740 |
+
1,
|
1741 |
+
0.99503612518310547,
|
1742 |
+
0.9840090274810791,
|
1743 |
+
1
|
1744 |
+
],
|
1745 |
+
"min": [
|
1746 |
+
-1,
|
1747 |
+
-0.93140757083892822,
|
1748 |
+
-0.99999719858169556,
|
1749 |
+
-1
|
1750 |
+
],
|
1751 |
+
"type": "VEC4"
|
1752 |
+
},
|
1753 |
+
{
|
1754 |
+
"bufferView": 1,
|
1755 |
+
"byteOffset": 27520,
|
1756 |
+
"componentType": 5126,
|
1757 |
+
"count": 275,
|
1758 |
+
"max": [
|
1759 |
+
1,
|
1760 |
+
1
|
1761 |
+
],
|
1762 |
+
"min": [
|
1763 |
+
0,
|
1764 |
+
0
|
1765 |
+
],
|
1766 |
+
"type": "VEC2"
|
1767 |
+
},
|
1768 |
+
{
|
1769 |
+
"bufferView": 0,
|
1770 |
+
"byteOffset": 22812,
|
1771 |
+
"componentType": 5125,
|
1772 |
+
"count": 486,
|
1773 |
+
"max": [
|
1774 |
+
274
|
1775 |
+
],
|
1776 |
+
"min": [
|
1777 |
+
0
|
1778 |
+
],
|
1779 |
+
"type": "SCALAR"
|
1780 |
+
},
|
1781 |
+
{
|
1782 |
+
"bufferView": 2,
|
1783 |
+
"byteOffset": 89160,
|
1784 |
+
"componentType": 5126,
|
1785 |
+
"count": 121,
|
1786 |
+
"max": [
|
1787 |
+
0.031271640211343765,
|
1788 |
+
99.216903686523438,
|
1789 |
+
398.960693359375
|
1790 |
+
],
|
1791 |
+
"min": [
|
1792 |
+
-434.42288208007812,
|
1793 |
+
-112.64717864990234,
|
1794 |
+
-393.07296752929688
|
1795 |
+
],
|
1796 |
+
"type": "VEC3"
|
1797 |
+
},
|
1798 |
+
{
|
1799 |
+
"bufferView": 2,
|
1800 |
+
"byteOffset": 90612,
|
1801 |
+
"componentType": 5126,
|
1802 |
+
"count": 121,
|
1803 |
+
"max": [
|
1804 |
+
0.18651074171066284,
|
1805 |
+
0.99967437982559204,
|
1806 |
+
0.96623897552490234
|
1807 |
+
],
|
1808 |
+
"min": [
|
1809 |
+
-0.99999505281448364,
|
1810 |
+
-0.99965155124664307,
|
1811 |
+
-0.99979156255722046
|
1812 |
+
],
|
1813 |
+
"type": "VEC3"
|
1814 |
+
},
|
1815 |
+
{
|
1816 |
+
"bufferView": 3,
|
1817 |
+
"byteOffset": 59440,
|
1818 |
+
"componentType": 5126,
|
1819 |
+
"count": 121,
|
1820 |
+
"max": [
|
1821 |
+
1,
|
1822 |
+
0.99720406532287598,
|
1823 |
+
0.95789152383804321,
|
1824 |
+
1
|
1825 |
+
],
|
1826 |
+
"min": [
|
1827 |
+
-0.99976450204849243,
|
1828 |
+
-0.99984729290008545,
|
1829 |
+
-0.99799007177352905,
|
1830 |
+
-1
|
1831 |
+
],
|
1832 |
+
"type": "VEC4"
|
1833 |
+
},
|
1834 |
+
{
|
1835 |
+
"bufferView": 1,
|
1836 |
+
"byteOffset": 29720,
|
1837 |
+
"componentType": 5126,
|
1838 |
+
"count": 121,
|
1839 |
+
"max": [
|
1840 |
+
1,
|
1841 |
+
1
|
1842 |
+
],
|
1843 |
+
"min": [
|
1844 |
+
0,
|
1845 |
+
0
|
1846 |
+
],
|
1847 |
+
"type": "VEC2"
|
1848 |
+
},
|
1849 |
+
{
|
1850 |
+
"bufferView": 0,
|
1851 |
+
"byteOffset": 24756,
|
1852 |
+
"componentType": 5125,
|
1853 |
+
"count": 210,
|
1854 |
+
"max": [
|
1855 |
+
120
|
1856 |
+
],
|
1857 |
+
"min": [
|
1858 |
+
0
|
1859 |
+
],
|
1860 |
+
"type": "SCALAR"
|
1861 |
+
},
|
1862 |
+
{
|
1863 |
+
"bufferView": 2,
|
1864 |
+
"byteOffset": 92064,
|
1865 |
+
"componentType": 5126,
|
1866 |
+
"count": 8,
|
1867 |
+
"max": [
|
1868 |
+
-4.3827910423278809,
|
1869 |
+
87.669517517089844,
|
1870 |
+
225.43736267089844
|
1871 |
+
],
|
1872 |
+
"min": [
|
1873 |
+
-72.109786987304688,
|
1874 |
+
-11.801899909973145,
|
1875 |
+
6.5268120765686035
|
1876 |
+
],
|
1877 |
+
"type": "VEC3"
|
1878 |
+
},
|
1879 |
+
{
|
1880 |
+
"bufferView": 2,
|
1881 |
+
"byteOffset": 92160,
|
1882 |
+
"componentType": 5126,
|
1883 |
+
"count": 8,
|
1884 |
+
"max": [
|
1885 |
+
0,
|
1886 |
+
0.45346537232398987,
|
1887 |
+
0.89127397537231445
|
1888 |
+
],
|
1889 |
+
"min": [
|
1890 |
+
-0.97785824537277222,
|
1891 |
+
0.1951594352722168,
|
1892 |
+
-0.075538128614425659
|
1893 |
+
],
|
1894 |
+
"type": "VEC3"
|
1895 |
+
},
|
1896 |
+
{
|
1897 |
+
"bufferView": 3,
|
1898 |
+
"byteOffset": 61376,
|
1899 |
+
"componentType": 5126,
|
1900 |
+
"count": 8,
|
1901 |
+
"max": [
|
1902 |
+
0.058859270066022873,
|
1903 |
+
0,
|
1904 |
+
0,
|
1905 |
+
-1
|
1906 |
+
],
|
1907 |
+
"min": [
|
1908 |
+
-1,
|
1909 |
+
-0.15251168608665466,
|
1910 |
+
-0.99502462148666382,
|
1911 |
+
-1
|
1912 |
+
],
|
1913 |
+
"type": "VEC4"
|
1914 |
+
},
|
1915 |
+
{
|
1916 |
+
"bufferView": 1,
|
1917 |
+
"byteOffset": 30688,
|
1918 |
+
"componentType": 5126,
|
1919 |
+
"count": 8,
|
1920 |
+
"max": [
|
1921 |
+
0.97632133960723877,
|
1922 |
+
0.98159992694854736
|
1923 |
+
],
|
1924 |
+
"min": [
|
1925 |
+
0.013218616135418415,
|
1926 |
+
0.5194861888885498
|
1927 |
+
],
|
1928 |
+
"type": "VEC2"
|
1929 |
+
},
|
1930 |
+
{
|
1931 |
+
"bufferView": 0,
|
1932 |
+
"byteOffset": 25596,
|
1933 |
+
"componentType": 5125,
|
1934 |
+
"count": 12,
|
1935 |
+
"max": [
|
1936 |
+
7
|
1937 |
+
],
|
1938 |
+
"min": [
|
1939 |
+
0
|
1940 |
+
],
|
1941 |
+
"type": "SCALAR"
|
1942 |
+
},
|
1943 |
+
{
|
1944 |
+
"bufferView": 2,
|
1945 |
+
"byteOffset": 92256,
|
1946 |
+
"componentType": 5126,
|
1947 |
+
"count": 60,
|
1948 |
+
"max": [
|
1949 |
+
-63.003810882568359,
|
1950 |
+
-52.727996826171875,
|
1951 |
+
234.7813720703125
|
1952 |
+
],
|
1953 |
+
"min": [
|
1954 |
+
-359.35739135742188,
|
1955 |
+
-85.97186279296875,
|
1956 |
+
4.0965709686279297
|
1957 |
+
],
|
1958 |
+
"type": "VEC3"
|
1959 |
+
},
|
1960 |
+
{
|
1961 |
+
"bufferView": 2,
|
1962 |
+
"byteOffset": 92976,
|
1963 |
+
"componentType": 5126,
|
1964 |
+
"count": 60,
|
1965 |
+
"max": [
|
1966 |
+
0.99946296215057373,
|
1967 |
+
0.99798387289047241,
|
1968 |
+
0.9749215841293335
|
1969 |
+
],
|
1970 |
+
"min": [
|
1971 |
+
-0.99926775693893433,
|
1972 |
+
-0.96400362253189087,
|
1973 |
+
-0.99917972087860107
|
1974 |
+
],
|
1975 |
+
"type": "VEC3"
|
1976 |
+
},
|
1977 |
+
{
|
1978 |
+
"bufferView": 3,
|
1979 |
+
"byteOffset": 61504,
|
1980 |
+
"componentType": 5126,
|
1981 |
+
"count": 60,
|
1982 |
+
"max": [
|
1983 |
+
0.99996131658554077,
|
1984 |
+
0.24199792742729187,
|
1985 |
+
0.97319614887237549,
|
1986 |
+
1
|
1987 |
+
],
|
1988 |
+
"min": [
|
1989 |
+
-0.96364772319793701,
|
1990 |
+
-0.99789917469024658,
|
1991 |
+
-0.97976201772689819,
|
1992 |
+
-1
|
1993 |
+
],
|
1994 |
+
"type": "VEC4"
|
1995 |
+
},
|
1996 |
+
{
|
1997 |
+
"bufferView": 1,
|
1998 |
+
"byteOffset": 30752,
|
1999 |
+
"componentType": 5126,
|
2000 |
+
"count": 60,
|
2001 |
+
"max": [
|
2002 |
+
1,
|
2003 |
+
1
|
2004 |
+
],
|
2005 |
+
"min": [
|
2006 |
+
0,
|
2007 |
+
0
|
2008 |
+
],
|
2009 |
+
"type": "VEC2"
|
2010 |
+
},
|
2011 |
+
{
|
2012 |
+
"bufferView": 0,
|
2013 |
+
"byteOffset": 25644,
|
2014 |
+
"componentType": 5125,
|
2015 |
+
"count": 90,
|
2016 |
+
"max": [
|
2017 |
+
59
|
2018 |
+
],
|
2019 |
+
"min": [
|
2020 |
+
0
|
2021 |
+
],
|
2022 |
+
"type": "SCALAR"
|
2023 |
+
},
|
2024 |
+
{
|
2025 |
+
"bufferView": 4,
|
2026 |
+
"componentType": 5126,
|
2027 |
+
"count": 175,
|
2028 |
+
"max": [
|
2029 |
+
3
|
2030 |
+
],
|
2031 |
+
"min": [
|
2032 |
+
0
|
2033 |
+
],
|
2034 |
+
"type": "SCALAR"
|
2035 |
+
},
|
2036 |
+
{
|
2037 |
+
"bufferView": 5,
|
2038 |
+
"componentType": 5126,
|
2039 |
+
"count": 175,
|
2040 |
+
"max": [
|
2041 |
+
0,
|
2042 |
+
0,
|
2043 |
+
0.99452191591262817,
|
2044 |
+
1
|
2045 |
+
],
|
2046 |
+
"min": [
|
2047 |
+
0,
|
2048 |
+
0,
|
2049 |
+
-0.86602538824081421,
|
2050 |
+
-0.5
|
2051 |
+
],
|
2052 |
+
"type": "VEC4"
|
2053 |
+
}
|
2054 |
+
],
|
2055 |
+
"animations": [
|
2056 |
+
{
|
2057 |
+
"channels": [
|
2058 |
+
{
|
2059 |
+
"sampler": 0,
|
2060 |
+
"target": {
|
2061 |
+
"node": 5,
|
2062 |
+
"path": "rotation"
|
2063 |
+
}
|
2064 |
+
}
|
2065 |
+
],
|
2066 |
+
"name": "Main",
|
2067 |
+
"samplers": [
|
2068 |
+
{
|
2069 |
+
"input": 125,
|
2070 |
+
"interpolation": "LINEAR",
|
2071 |
+
"output": 126
|
2072 |
+
}
|
2073 |
+
]
|
2074 |
+
}
|
2075 |
+
],
|
2076 |
+
"asset": {
|
2077 |
+
"extras": {
|
2078 |
+
"author": "antonmoek (https://sketchfab.com/antonmoek)",
|
2079 |
+
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
|
2080 |
+
"source": "https://sketchfab.com/models/f312ec9f87794bdd83630a3bc694d8ea",
|
2081 |
+
"title": "Cartoon Plane"
|
2082 |
+
},
|
2083 |
+
"generator": "Sketchfab-3.34.6",
|
2084 |
+
"version": "2.0"
|
2085 |
+
},
|
2086 |
+
"bufferViews": [
|
2087 |
+
{
|
2088 |
+
"buffer": 0,
|
2089 |
+
"byteLength": 26004,
|
2090 |
+
"byteOffset": 0,
|
2091 |
+
"name": "floatBufferViews",
|
2092 |
+
"target": 34963
|
2093 |
+
},
|
2094 |
+
{
|
2095 |
+
"buffer": 0,
|
2096 |
+
"byteLength": 31232,
|
2097 |
+
"byteOffset": 26004,
|
2098 |
+
"byteStride": 8,
|
2099 |
+
"name": "floatBufferViews",
|
2100 |
+
"target": 34962
|
2101 |
+
},
|
2102 |
+
{
|
2103 |
+
"buffer": 0,
|
2104 |
+
"byteLength": 93696,
|
2105 |
+
"byteOffset": 57236,
|
2106 |
+
"byteStride": 12,
|
2107 |
+
"name": "floatBufferViews",
|
2108 |
+
"target": 34962
|
2109 |
+
},
|
2110 |
+
{
|
2111 |
+
"buffer": 0,
|
2112 |
+
"byteLength": 62464,
|
2113 |
+
"byteOffset": 150932,
|
2114 |
+
"byteStride": 16,
|
2115 |
+
"name": "floatBufferViews",
|
2116 |
+
"target": 34962
|
2117 |
+
},
|
2118 |
+
{
|
2119 |
+
"buffer": 0,
|
2120 |
+
"byteLength": 700,
|
2121 |
+
"byteOffset": 213396,
|
2122 |
+
"name": "floatBufferViews"
|
2123 |
+
},
|
2124 |
+
{
|
2125 |
+
"buffer": 0,
|
2126 |
+
"byteLength": 2800,
|
2127 |
+
"byteOffset": 214096,
|
2128 |
+
"byteStride": 16,
|
2129 |
+
"name": "floatBufferViews"
|
2130 |
+
}
|
2131 |
+
],
|
2132 |
+
"buffers": [
|
2133 |
+
{
|
2134 |
+
"byteLength": 216896,
|
2135 |
+
"uri": "scene.bin"
|
2136 |
+
}
|
2137 |
+
],
|
2138 |
+
"materials": [
|
2139 |
+
{
|
2140 |
+
"doubleSided": true,
|
2141 |
+
"emissiveFactor": [
|
2142 |
+
0,
|
2143 |
+
0,
|
2144 |
+
0
|
2145 |
+
],
|
2146 |
+
"name": "Cube_1_3__0",
|
2147 |
+
"pbrMetallicRoughness": {
|
2148 |
+
"baseColorFactor": [
|
2149 |
+
1,
|
2150 |
+
1,
|
2151 |
+
1,
|
2152 |
+
1
|
2153 |
+
],
|
2154 |
+
"metallicFactor": 0,
|
2155 |
+
"roughnessFactor": 0.59999999999999998
|
2156 |
+
}
|
2157 |
+
},
|
2158 |
+
{
|
2159 |
+
"doubleSided": true,
|
2160 |
+
"emissiveFactor": [
|
2161 |
+
0,
|
2162 |
+
0,
|
2163 |
+
0
|
2164 |
+
],
|
2165 |
+
"name": "material",
|
2166 |
+
"pbrMetallicRoughness": {
|
2167 |
+
"baseColorFactor": [
|
2168 |
+
1,
|
2169 |
+
0.0096157397000000006,
|
2170 |
+
0.1496889756,
|
2171 |
+
1
|
2172 |
+
],
|
2173 |
+
"metallicFactor": 0,
|
2174 |
+
"roughnessFactor": 0.59999999999999998
|
2175 |
+
}
|
2176 |
+
},
|
2177 |
+
{
|
2178 |
+
"doubleSided": true,
|
2179 |
+
"emissiveFactor": [
|
2180 |
+
0,
|
2181 |
+
0,
|
2182 |
+
0
|
2183 |
+
],
|
2184 |
+
"name": "Body",
|
2185 |
+
"pbrMetallicRoughness": {
|
2186 |
+
"baseColorFactor": [
|
2187 |
+
1,
|
2188 |
+
0.86990751550000001,
|
2189 |
+
0.81930244399999996,
|
2190 |
+
1
|
2191 |
+
],
|
2192 |
+
"metallicFactor": 0.40000000000000002,
|
2193 |
+
"roughnessFactor": 0.59999999999999998
|
2194 |
+
}
|
2195 |
+
},
|
2196 |
+
{
|
2197 |
+
"doubleSided": true,
|
2198 |
+
"emissiveFactor": [
|
2199 |
+
0,
|
2200 |
+
0,
|
2201 |
+
0
|
2202 |
+
],
|
2203 |
+
"name": "material_3",
|
2204 |
+
"pbrMetallicRoughness": {
|
2205 |
+
"baseColorFactor": [
|
2206 |
+
0.0094488200000000001,
|
2207 |
+
0.0275591,
|
2208 |
+
0.10000000000000001,
|
2209 |
+
1
|
2210 |
+
],
|
2211 |
+
"metallicFactor": 0,
|
2212 |
+
"roughnessFactor": 0.59999999999999998
|
2213 |
+
}
|
2214 |
+
},
|
2215 |
+
{
|
2216 |
+
"doubleSided": true,
|
2217 |
+
"emissiveFactor": [
|
2218 |
+
0,
|
2219 |
+
0,
|
2220 |
+
0
|
2221 |
+
],
|
2222 |
+
"name": "Glass",
|
2223 |
+
"pbrMetallicRoughness": {
|
2224 |
+
"baseColorFactor": [
|
2225 |
+
0.021520143799999999,
|
2226 |
+
0.0201165003,
|
2227 |
+
0.034218421399999997,
|
2228 |
+
1
|
2229 |
+
],
|
2230 |
+
"metallicFactor": 0,
|
2231 |
+
"roughnessFactor": 0.53000000000000003
|
2232 |
+
}
|
2233 |
+
}
|
2234 |
+
],
|
2235 |
+
"meshes": [
|
2236 |
+
{
|
2237 |
+
"name": "Propeller_1_Red_0",
|
2238 |
+
"primitives": [
|
2239 |
+
{
|
2240 |
+
"attributes": {
|
2241 |
+
"NORMAL": 1,
|
2242 |
+
"POSITION": 0,
|
2243 |
+
"TANGENT": 2,
|
2244 |
+
"TEXCOORD_0": 3
|
2245 |
+
},
|
2246 |
+
"indices": 4,
|
2247 |
+
"material": 1,
|
2248 |
+
"mode": 4
|
2249 |
+
}
|
2250 |
+
]
|
2251 |
+
},
|
2252 |
+
{
|
2253 |
+
"name": "Propeller_1_Body_0",
|
2254 |
+
"primitives": [
|
2255 |
+
{
|
2256 |
+
"attributes": {
|
2257 |
+
"NORMAL": 6,
|
2258 |
+
"POSITION": 5,
|
2259 |
+
"TANGENT": 7,
|
2260 |
+
"TEXCOORD_0": 8
|
2261 |
+
},
|
2262 |
+
"indices": 9,
|
2263 |
+
"material": 2,
|
2264 |
+
"mode": 4
|
2265 |
+
}
|
2266 |
+
]
|
2267 |
+
},
|
2268 |
+
{
|
2269 |
+
"name": "Cylinder_1_Body_0",
|
2270 |
+
"primitives": [
|
2271 |
+
{
|
2272 |
+
"attributes": {
|
2273 |
+
"NORMAL": 11,
|
2274 |
+
"POSITION": 10,
|
2275 |
+
"TANGENT": 12,
|
2276 |
+
"TEXCOORD_0": 13
|
2277 |
+
},
|
2278 |
+
"indices": 14,
|
2279 |
+
"material": 2,
|
2280 |
+
"mode": 4
|
2281 |
+
}
|
2282 |
+
]
|
2283 |
+
},
|
2284 |
+
{
|
2285 |
+
"name": "WheelCarcas_Body_0",
|
2286 |
+
"primitives": [
|
2287 |
+
{
|
2288 |
+
"attributes": {
|
2289 |
+
"NORMAL": 16,
|
2290 |
+
"POSITION": 15,
|
2291 |
+
"TANGENT": 17,
|
2292 |
+
"TEXCOORD_0": 18
|
2293 |
+
},
|
2294 |
+
"indices": 19,
|
2295 |
+
"material": 2,
|
2296 |
+
"mode": 4
|
2297 |
+
}
|
2298 |
+
]
|
2299 |
+
},
|
2300 |
+
{
|
2301 |
+
"name": "Wheel_Gum_0",
|
2302 |
+
"primitives": [
|
2303 |
+
{
|
2304 |
+
"attributes": {
|
2305 |
+
"NORMAL": 21,
|
2306 |
+
"POSITION": 20,
|
2307 |
+
"TANGENT": 22,
|
2308 |
+
"TEXCOORD_0": 23
|
2309 |
+
},
|
2310 |
+
"indices": 24,
|
2311 |
+
"material": 3,
|
2312 |
+
"mode": 4
|
2313 |
+
}
|
2314 |
+
]
|
2315 |
+
},
|
2316 |
+
{
|
2317 |
+
"name": "Cylinder_1_2_Body_0",
|
2318 |
+
"primitives": [
|
2319 |
+
{
|
2320 |
+
"attributes": {
|
2321 |
+
"NORMAL": 26,
|
2322 |
+
"POSITION": 25,
|
2323 |
+
"TANGENT": 27,
|
2324 |
+
"TEXCOORD_0": 28
|
2325 |
+
},
|
2326 |
+
"indices": 29,
|
2327 |
+
"material": 2,
|
2328 |
+
"mode": 4
|
2329 |
+
}
|
2330 |
+
]
|
2331 |
+
},
|
2332 |
+
{
|
2333 |
+
"name": "WheelCarcas_2_Body_0",
|
2334 |
+
"primitives": [
|
2335 |
+
{
|
2336 |
+
"attributes": {
|
2337 |
+
"NORMAL": 31,
|
2338 |
+
"POSITION": 30,
|
2339 |
+
"TANGENT": 32,
|
2340 |
+
"TEXCOORD_0": 33
|
2341 |
+
},
|
2342 |
+
"indices": 34,
|
2343 |
+
"material": 2,
|
2344 |
+
"mode": 4
|
2345 |
+
}
|
2346 |
+
]
|
2347 |
+
},
|
2348 |
+
{
|
2349 |
+
"name": "Wheel_2_Gum_0",
|
2350 |
+
"primitives": [
|
2351 |
+
{
|
2352 |
+
"attributes": {
|
2353 |
+
"NORMAL": 36,
|
2354 |
+
"POSITION": 35,
|
2355 |
+
"TANGENT": 37,
|
2356 |
+
"TEXCOORD_0": 38
|
2357 |
+
},
|
2358 |
+
"indices": 39,
|
2359 |
+
"material": 3,
|
2360 |
+
"mode": 4
|
2361 |
+
}
|
2362 |
+
]
|
2363 |
+
},
|
2364 |
+
{
|
2365 |
+
"name": "Cylinder_1_3_Body_0",
|
2366 |
+
"primitives": [
|
2367 |
+
{
|
2368 |
+
"attributes": {
|
2369 |
+
"NORMAL": 41,
|
2370 |
+
"POSITION": 40,
|
2371 |
+
"TANGENT": 42,
|
2372 |
+
"TEXCOORD_0": 43
|
2373 |
+
},
|
2374 |
+
"indices": 44,
|
2375 |
+
"material": 2,
|
2376 |
+
"mode": 4
|
2377 |
+
}
|
2378 |
+
]
|
2379 |
+
},
|
2380 |
+
{
|
2381 |
+
"name": "WheelCarcas_3_Body_0",
|
2382 |
+
"primitives": [
|
2383 |
+
{
|
2384 |
+
"attributes": {
|
2385 |
+
"NORMAL": 46,
|
2386 |
+
"POSITION": 45,
|
2387 |
+
"TANGENT": 47,
|
2388 |
+
"TEXCOORD_0": 48
|
2389 |
+
},
|
2390 |
+
"indices": 49,
|
2391 |
+
"material": 2,
|
2392 |
+
"mode": 4
|
2393 |
+
}
|
2394 |
+
]
|
2395 |
+
},
|
2396 |
+
{
|
2397 |
+
"name": "Wheel_4_Gum_0",
|
2398 |
+
"primitives": [
|
2399 |
+
{
|
2400 |
+
"attributes": {
|
2401 |
+
"NORMAL": 51,
|
2402 |
+
"POSITION": 50,
|
2403 |
+
"TANGENT": 52,
|
2404 |
+
"TEXCOORD_0": 53
|
2405 |
+
},
|
2406 |
+
"indices": 54,
|
2407 |
+
"material": 3,
|
2408 |
+
"mode": 4
|
2409 |
+
}
|
2410 |
+
]
|
2411 |
+
},
|
2412 |
+
{
|
2413 |
+
"name": "Cube_2_Body_0",
|
2414 |
+
"primitives": [
|
2415 |
+
{
|
2416 |
+
"attributes": {
|
2417 |
+
"NORMAL": 56,
|
2418 |
+
"POSITION": 55,
|
2419 |
+
"TANGENT": 57,
|
2420 |
+
"TEXCOORD_0": 58
|
2421 |
+
},
|
2422 |
+
"indices": 59,
|
2423 |
+
"material": 2,
|
2424 |
+
"mode": 4
|
2425 |
+
}
|
2426 |
+
]
|
2427 |
+
},
|
2428 |
+
{
|
2429 |
+
"name": "Cube_1_Body_0",
|
2430 |
+
"primitives": [
|
2431 |
+
{
|
2432 |
+
"attributes": {
|
2433 |
+
"NORMAL": 61,
|
2434 |
+
"POSITION": 60,
|
2435 |
+
"TANGENT": 62,
|
2436 |
+
"TEXCOORD_0": 63
|
2437 |
+
},
|
2438 |
+
"indices": 64,
|
2439 |
+
"material": 2,
|
2440 |
+
"mode": 4
|
2441 |
+
}
|
2442 |
+
]
|
2443 |
+
},
|
2444 |
+
{
|
2445 |
+
"name": "Cube_Body_0",
|
2446 |
+
"primitives": [
|
2447 |
+
{
|
2448 |
+
"attributes": {
|
2449 |
+
"NORMAL": 66,
|
2450 |
+
"POSITION": 65,
|
2451 |
+
"TANGENT": 67,
|
2452 |
+
"TEXCOORD_0": 68
|
2453 |
+
},
|
2454 |
+
"indices": 69,
|
2455 |
+
"material": 2,
|
2456 |
+
"mode": 4
|
2457 |
+
}
|
2458 |
+
]
|
2459 |
+
},
|
2460 |
+
{
|
2461 |
+
"name": "Cube_2_2_Body_0",
|
2462 |
+
"primitives": [
|
2463 |
+
{
|
2464 |
+
"attributes": {
|
2465 |
+
"NORMAL": 71,
|
2466 |
+
"POSITION": 70,
|
2467 |
+
"TANGENT": 72,
|
2468 |
+
"TEXCOORD_0": 73
|
2469 |
+
},
|
2470 |
+
"indices": 74,
|
2471 |
+
"material": 2,
|
2472 |
+
"mode": 4
|
2473 |
+
}
|
2474 |
+
]
|
2475 |
+
},
|
2476 |
+
{
|
2477 |
+
"name": "Cube_1_2_Body_0",
|
2478 |
+
"primitives": [
|
2479 |
+
{
|
2480 |
+
"attributes": {
|
2481 |
+
"NORMAL": 76,
|
2482 |
+
"POSITION": 75,
|
2483 |
+
"TANGENT": 77,
|
2484 |
+
"TEXCOORD_0": 78
|
2485 |
+
},
|
2486 |
+
"indices": 79,
|
2487 |
+
"material": 2,
|
2488 |
+
"mode": 4
|
2489 |
+
}
|
2490 |
+
]
|
2491 |
+
},
|
2492 |
+
{
|
2493 |
+
"name": "Cube_2_3_Body_0",
|
2494 |
+
"primitives": [
|
2495 |
+
{
|
2496 |
+
"attributes": {
|
2497 |
+
"NORMAL": 81,
|
2498 |
+
"POSITION": 80,
|
2499 |
+
"TANGENT": 82,
|
2500 |
+
"TEXCOORD_0": 83
|
2501 |
+
},
|
2502 |
+
"indices": 84,
|
2503 |
+
"material": 2,
|
2504 |
+
"mode": 4
|
2505 |
+
}
|
2506 |
+
]
|
2507 |
+
},
|
2508 |
+
{
|
2509 |
+
"name": "Cube_1_3_Body_0",
|
2510 |
+
"primitives": [
|
2511 |
+
{
|
2512 |
+
"attributes": {
|
2513 |
+
"NORMAL": 86,
|
2514 |
+
"POSITION": 85,
|
2515 |
+
"TANGENT": 87,
|
2516 |
+
"TEXCOORD_0": 88
|
2517 |
+
},
|
2518 |
+
"indices": 89,
|
2519 |
+
"material": 2,
|
2520 |
+
"mode": 4
|
2521 |
+
}
|
2522 |
+
]
|
2523 |
+
},
|
2524 |
+
{
|
2525 |
+
"name": "Cube_1_3_Red_0",
|
2526 |
+
"primitives": [
|
2527 |
+
{
|
2528 |
+
"attributes": {
|
2529 |
+
"NORMAL": 91,
|
2530 |
+
"POSITION": 90,
|
2531 |
+
"TANGENT": 92,
|
2532 |
+
"TEXCOORD_0": 93
|
2533 |
+
},
|
2534 |
+
"indices": 94,
|
2535 |
+
"material": 1,
|
2536 |
+
"mode": 4
|
2537 |
+
}
|
2538 |
+
]
|
2539 |
+
},
|
2540 |
+
{
|
2541 |
+
"name": "Cube_1_3_Glass_0",
|
2542 |
+
"primitives": [
|
2543 |
+
{
|
2544 |
+
"attributes": {
|
2545 |
+
"NORMAL": 96,
|
2546 |
+
"POSITION": 95,
|
2547 |
+
"TANGENT": 97,
|
2548 |
+
"TEXCOORD_0": 98
|
2549 |
+
},
|
2550 |
+
"indices": 99,
|
2551 |
+
"material": 4,
|
2552 |
+
"mode": 4
|
2553 |
+
}
|
2554 |
+
]
|
2555 |
+
},
|
2556 |
+
{
|
2557 |
+
"name": "Cube_1_3__0",
|
2558 |
+
"primitives": [
|
2559 |
+
{
|
2560 |
+
"attributes": {
|
2561 |
+
"NORMAL": 101,
|
2562 |
+
"POSITION": 100,
|
2563 |
+
"TANGENT": 102,
|
2564 |
+
"TEXCOORD_0": 103
|
2565 |
+
},
|
2566 |
+
"indices": 104,
|
2567 |
+
"material": 0,
|
2568 |
+
"mode": 4
|
2569 |
+
}
|
2570 |
+
]
|
2571 |
+
},
|
2572 |
+
{
|
2573 |
+
"name": "Cube_3_Body_0",
|
2574 |
+
"primitives": [
|
2575 |
+
{
|
2576 |
+
"attributes": {
|
2577 |
+
"NORMAL": 106,
|
2578 |
+
"POSITION": 105,
|
2579 |
+
"TANGENT": 107,
|
2580 |
+
"TEXCOORD_0": 108
|
2581 |
+
},
|
2582 |
+
"indices": 109,
|
2583 |
+
"material": 2,
|
2584 |
+
"mode": 4
|
2585 |
+
}
|
2586 |
+
]
|
2587 |
+
},
|
2588 |
+
{
|
2589 |
+
"name": "Cube_3_Red_0",
|
2590 |
+
"primitives": [
|
2591 |
+
{
|
2592 |
+
"attributes": {
|
2593 |
+
"NORMAL": 111,
|
2594 |
+
"POSITION": 110,
|
2595 |
+
"TANGENT": 112,
|
2596 |
+
"TEXCOORD_0": 113
|
2597 |
+
},
|
2598 |
+
"indices": 114,
|
2599 |
+
"material": 1,
|
2600 |
+
"mode": 4
|
2601 |
+
}
|
2602 |
+
]
|
2603 |
+
},
|
2604 |
+
{
|
2605 |
+
"name": "Cube_3_Glass_0",
|
2606 |
+
"primitives": [
|
2607 |
+
{
|
2608 |
+
"attributes": {
|
2609 |
+
"NORMAL": 116,
|
2610 |
+
"POSITION": 115,
|
2611 |
+
"TANGENT": 117,
|
2612 |
+
"TEXCOORD_0": 118
|
2613 |
+
},
|
2614 |
+
"indices": 119,
|
2615 |
+
"material": 4,
|
2616 |
+
"mode": 4
|
2617 |
+
}
|
2618 |
+
]
|
2619 |
+
},
|
2620 |
+
{
|
2621 |
+
"name": "Cube_3__0",
|
2622 |
+
"primitives": [
|
2623 |
+
{
|
2624 |
+
"attributes": {
|
2625 |
+
"NORMAL": 121,
|
2626 |
+
"POSITION": 120,
|
2627 |
+
"TANGENT": 122,
|
2628 |
+
"TEXCOORD_0": 123
|
2629 |
+
},
|
2630 |
+
"indices": 124,
|
2631 |
+
"material": 0,
|
2632 |
+
"mode": 4
|
2633 |
+
}
|
2634 |
+
]
|
2635 |
+
}
|
2636 |
+
],
|
2637 |
+
"nodes": [
|
2638 |
+
{
|
2639 |
+
"children": [
|
2640 |
+
1
|
2641 |
+
],
|
2642 |
+
"name": "RootNode (gltf orientation matrix)",
|
2643 |
+
"rotation": [
|
2644 |
+
-0.70710678118654746,
|
2645 |
+
-0,
|
2646 |
+
-0,
|
2647 |
+
0.70710678118654757
|
2648 |
+
]
|
2649 |
+
},
|
2650 |
+
{
|
2651 |
+
"children": [
|
2652 |
+
2
|
2653 |
+
],
|
2654 |
+
"name": "RootNode (model correction matrix)"
|
2655 |
+
},
|
2656 |
+
{
|
2657 |
+
"children": [
|
2658 |
+
3
|
2659 |
+
],
|
2660 |
+
"matrix": [
|
2661 |
+
1,
|
2662 |
+
0,
|
2663 |
+
0,
|
2664 |
+
0,
|
2665 |
+
0,
|
2666 |
+
0,
|
2667 |
+
1,
|
2668 |
+
0,
|
2669 |
+
0,
|
2670 |
+
-1,
|
2671 |
+
0,
|
2672 |
+
0,
|
2673 |
+
0,
|
2674 |
+
0,
|
2675 |
+
0,
|
2676 |
+
1
|
2677 |
+
],
|
2678 |
+
"name": "12cc6a9ff2ae45b08826ba235d9cb8b7.fbx"
|
2679 |
+
},
|
2680 |
+
{
|
2681 |
+
"children": [
|
2682 |
+
4
|
2683 |
+
],
|
2684 |
+
"name": ""
|
2685 |
+
},
|
2686 |
+
{
|
2687 |
+
"children": [
|
2688 |
+
5,
|
2689 |
+
8,
|
2690 |
+
13
|
2691 |
+
],
|
2692 |
+
"name": "RootNode"
|
2693 |
+
},
|
2694 |
+
{
|
2695 |
+
"children": [
|
2696 |
+
6,
|
2697 |
+
7
|
2698 |
+
],
|
2699 |
+
"name": "Propeller_1",
|
2700 |
+
"translation": [
|
2701 |
+
0.87334871292114258,
|
2702 |
+
-46.024806976318359,
|
2703 |
+
401.43350219726562
|
2704 |
+
]
|
2705 |
+
},
|
2706 |
+
{
|
2707 |
+
"mesh": 0,
|
2708 |
+
"name": "Propeller_1_Red_0"
|
2709 |
+
},
|
2710 |
+
{
|
2711 |
+
"mesh": 1,
|
2712 |
+
"name": "Propeller_1_Body_0"
|
2713 |
+
},
|
2714 |
+
{
|
2715 |
+
"children": [
|
2716 |
+
9,
|
2717 |
+
12
|
2718 |
+
],
|
2719 |
+
"name": "Physical_Sky",
|
2720 |
+
"rotation": [
|
2721 |
+
-0.025235366076231003,
|
2722 |
+
-0.24497584998607635,
|
2723 |
+
0.0050951233133673668,
|
2724 |
+
0.96918731927871704
|
2725 |
+
]
|
2726 |
+
},
|
2727 |
+
{
|
2728 |
+
"children": [
|
2729 |
+
10,
|
2730 |
+
11
|
2731 |
+
],
|
2732 |
+
"name": "Sky_Null",
|
2733 |
+
"rotation": [
|
2734 |
+
-9.6296497219361793e-35,
|
2735 |
+
5.5511151231257827e-17,
|
2736 |
+
1.7347234759768071e-18,
|
2737 |
+
1
|
2738 |
+
],
|
2739 |
+
"translation": [
|
2740 |
+
195.25096130371094,
|
2741 |
+
64.4552001953125,
|
2742 |
+
239.44844055175781
|
2743 |
+
]
|
2744 |
+
},
|
2745 |
+
{
|
2746 |
+
"name": "Sun",
|
2747 |
+
"rotation": [
|
2748 |
+
-0.17988117039203644,
|
2749 |
+
-0.030783185735344887,
|
2750 |
+
-0.0056319795548915863,
|
2751 |
+
0.98319041728973389
|
2752 |
+
],
|
2753 |
+
"translation": [
|
2754 |
+
-8659.806640625,
|
2755 |
+
52407.35546875,
|
2756 |
+
138158.203125
|
2757 |
+
]
|
2758 |
+
},
|
2759 |
+
{
|
2760 |
+
"name": "Moon",
|
2761 |
+
"rotation": [
|
2762 |
+
-0.041607432067394257,
|
2763 |
+
-0.76001834869384766,
|
2764 |
+
-0.048896394670009613,
|
2765 |
+
0.64672273397445679
|
2766 |
+
],
|
2767 |
+
"translation": [
|
2768 |
+
-3951.258544921875,
|
2769 |
+
517.194091796875,
|
2770 |
+
-640.604736328125
|
2771 |
+
]
|
2772 |
+
},
|
2773 |
+
{
|
2774 |
+
"name": "Shadow_Plane",
|
2775 |
+
"rotation": [
|
2776 |
+
-3.4694469519536142e-18,
|
2777 |
+
5.5511151231257827e-17,
|
2778 |
+
1.7347234759768071e-18,
|
2779 |
+
1
|
2780 |
+
],
|
2781 |
+
"translation": [
|
2782 |
+
1.9895196601282805e-13,
|
2783 |
+
10000,
|
2784 |
+
3.4106051316484809e-13
|
2785 |
+
]
|
2786 |
+
},
|
2787 |
+
{
|
2788 |
+
"children": [
|
2789 |
+
14,
|
2790 |
+
21,
|
2791 |
+
28,
|
2792 |
+
35,
|
2793 |
+
42,
|
2794 |
+
49
|
2795 |
+
],
|
2796 |
+
"name": "Plane",
|
2797 |
+
"translation": [
|
2798 |
+
-2.5442404747009277,
|
2799 |
+
-22.783651351928711,
|
2800 |
+
0
|
2801 |
+
]
|
2802 |
+
},
|
2803 |
+
{
|
2804 |
+
"children": [
|
2805 |
+
15,
|
2806 |
+
17,
|
2807 |
+
19
|
2808 |
+
],
|
2809 |
+
"name": "Wheel_Back",
|
2810 |
+
"rotation": [
|
2811 |
+
0.084529757499694824,
|
2812 |
+
-0.0008930605836212635,
|
2813 |
+
-0.01052663940936327,
|
2814 |
+
0.99636495113372803
|
2815 |
+
],
|
2816 |
+
"translation": [
|
2817 |
+
3.2151377201080322,
|
2818 |
+
-59.613082885742188,
|
2819 |
+
-256.31814575195312
|
2820 |
+
]
|
2821 |
+
},
|
2822 |
+
{
|
2823 |
+
"children": [
|
2824 |
+
16
|
2825 |
+
],
|
2826 |
+
"name": "Cylinder_1",
|
2827 |
+
"rotation": [
|
2828 |
+
-0.5,
|
2829 |
+
-0.5,
|
2830 |
+
-0.5,
|
2831 |
+
0.5
|
2832 |
+
],
|
2833 |
+
"translation": [
|
2834 |
+
6.5183935165405273,
|
2835 |
+
-27.543468475341797,
|
2836 |
+
-1.7053025658242404e-13
|
2837 |
+
]
|
2838 |
+
},
|
2839 |
+
{
|
2840 |
+
"mesh": 2,
|
2841 |
+
"name": "Cylinder_1_Body_0"
|
2842 |
+
},
|
2843 |
+
{
|
2844 |
+
"children": [
|
2845 |
+
18
|
2846 |
+
],
|
2847 |
+
"name": "WheelCarcas",
|
2848 |
+
"rotation": [
|
2849 |
+
1.7554505758210904e-36,
|
2850 |
+
-3.2779658070858577e-19,
|
2851 |
+
5.3553050112402912e-18,
|
2852 |
+
1
|
2853 |
+
],
|
2854 |
+
"translation": [
|
2855 |
+
114.38583374023438,
|
2856 |
+
59.170185089111328,
|
2857 |
+
-8.5265128291212022e-14
|
2858 |
+
]
|
2859 |
+
},
|
2860 |
+
{
|
2861 |
+
"mesh": 3,
|
2862 |
+
"name": "WheelCarcas_Body_0"
|
2863 |
+
},
|
2864 |
+
{
|
2865 |
+
"children": [
|
2866 |
+
20
|
2867 |
+
],
|
2868 |
+
"name": "Wheel",
|
2869 |
+
"rotation": [
|
2870 |
+
1.096210767028243e-17,
|
2871 |
+
8.6640510360998597e-18,
|
2872 |
+
-0.7071068286895752,
|
2873 |
+
0.7071068286895752
|
2874 |
+
],
|
2875 |
+
"translation": [
|
2876 |
+
0.62235832214355469,
|
2877 |
+
-32.489803314208984,
|
2878 |
+
-2.8421709430404007e-14
|
2879 |
+
]
|
2880 |
+
},
|
2881 |
+
{
|
2882 |
+
"mesh": 4,
|
2883 |
+
"name": "Wheel_Gum_0"
|
2884 |
+
},
|
2885 |
+
{
|
2886 |
+
"children": [
|
2887 |
+
22,
|
2888 |
+
24,
|
2889 |
+
26
|
2890 |
+
],
|
2891 |
+
"name": "Wheel_1",
|
2892 |
+
"rotation": [
|
2893 |
+
0,
|
2894 |
+
0,
|
2895 |
+
0.16323453187942505,
|
2896 |
+
0.9865872859954834
|
2897 |
+
],
|
2898 |
+
"translation": [
|
2899 |
+
81.309646606445312,
|
2900 |
+
-76.375755310058594,
|
2901 |
+
232.74148559570312
|
2902 |
+
]
|
2903 |
+
},
|
2904 |
+
{
|
2905 |
+
"children": [
|
2906 |
+
23
|
2907 |
+
],
|
2908 |
+
"name": "Cylinder_1_2",
|
2909 |
+
"rotation": [
|
2910 |
+
0.5,
|
2911 |
+
0.5,
|
2912 |
+
0.5,
|
2913 |
+
-0.5
|
2914 |
+
],
|
2915 |
+
"translation": [
|
2916 |
+
12.172945976257324,
|
2917 |
+
-51.436775207519531,
|
2918 |
+
0
|
2919 |
+
]
|
2920 |
+
},
|
2921 |
+
{
|
2922 |
+
"mesh": 5,
|
2923 |
+
"name": "Cylinder_1_2_Body_0"
|
2924 |
+
},
|
2925 |
+
{
|
2926 |
+
"children": [
|
2927 |
+
25
|
2928 |
+
],
|
2929 |
+
"name": "WheelCarcas_2",
|
2930 |
+
"rotation": [
|
2931 |
+
0,
|
2932 |
+
-0,
|
2933 |
+
-2.7755575615628914e-17,
|
2934 |
+
1
|
2935 |
+
],
|
2936 |
+
"translation": [
|
2937 |
+
213.61283874511719,
|
2938 |
+
110.49892425537109,
|
2939 |
+
0
|
2940 |
+
]
|
2941 |
+
},
|
2942 |
+
{
|
2943 |
+
"mesh": 6,
|
2944 |
+
"name": "WheelCarcas_2_Body_0"
|
2945 |
+
},
|
2946 |
+
{
|
2947 |
+
"children": [
|
2948 |
+
27
|
2949 |
+
],
|
2950 |
+
"name": "Wheel_2",
|
2951 |
+
"rotation": [
|
2952 |
+
0,
|
2953 |
+
-0,
|
2954 |
+
-0.7071068286895752,
|
2955 |
+
0.7071068286895752
|
2956 |
+
],
|
2957 |
+
"translation": [
|
2958 |
+
1.1622394323348999,
|
2959 |
+
-60.673938751220703,
|
2960 |
+
0
|
2961 |
+
]
|
2962 |
+
},
|
2963 |
+
{
|
2964 |
+
"mesh": 7,
|
2965 |
+
"name": "Wheel_2_Gum_0"
|
2966 |
+
},
|
2967 |
+
{
|
2968 |
+
"children": [
|
2969 |
+
29,
|
2970 |
+
31,
|
2971 |
+
33
|
2972 |
+
],
|
2973 |
+
"name": "Wheel_3",
|
2974 |
+
"rotation": [
|
2975 |
+
0,
|
2976 |
+
-0,
|
2977 |
+
-0.16122730076313019,
|
2978 |
+
0.98691731691360474
|
2979 |
+
],
|
2980 |
+
"translation": [
|
2981 |
+
-81.572341918945312,
|
2982 |
+
-76.375755310058594,
|
2983 |
+
232.74148559570312
|
2984 |
+
]
|
2985 |
+
},
|
2986 |
+
{
|
2987 |
+
"children": [
|
2988 |
+
30
|
2989 |
+
],
|
2990 |
+
"name": "Cylinder_1_3",
|
2991 |
+
"rotation": [
|
2992 |
+
-0.5,
|
2993 |
+
-0.5,
|
2994 |
+
-0.5,
|
2995 |
+
0.5
|
2996 |
+
],
|
2997 |
+
"translation": [
|
2998 |
+
12.172945976257324,
|
2999 |
+
-51.436775207519531,
|
3000 |
+
0
|
3001 |
+
]
|
3002 |
+
},
|
3003 |
+
{
|
3004 |
+
"mesh": 8,
|
3005 |
+
"name": "Cylinder_1_3_Body_0"
|
3006 |
+
},
|
3007 |
+
{
|
3008 |
+
"children": [
|
3009 |
+
32
|
3010 |
+
],
|
3011 |
+
"name": "WheelCarcas_3",
|
3012 |
+
"translation": [
|
3013 |
+
213.61283874511719,
|
3014 |
+
110.49892425537109,
|
3015 |
+
0
|
3016 |
+
]
|
3017 |
+
},
|
3018 |
+
{
|
3019 |
+
"mesh": 9,
|
3020 |
+
"name": "WheelCarcas_3_Body_0"
|
3021 |
+
},
|
3022 |
+
{
|
3023 |
+
"children": [
|
3024 |
+
34
|
3025 |
+
],
|
3026 |
+
"name": "Wheel_4",
|
3027 |
+
"rotation": [
|
3028 |
+
0,
|
3029 |
+
0,
|
3030 |
+
-0.7071068286895752,
|
3031 |
+
0.7071068286895752
|
3032 |
+
],
|
3033 |
+
"translation": [
|
3034 |
+
1.1622394323348999,
|
3035 |
+
-60.673938751220703,
|
3036 |
+
0
|
3037 |
+
]
|
3038 |
+
},
|
3039 |
+
{
|
3040 |
+
"mesh": 10,
|
3041 |
+
"name": "Wheel_4_Gum_0"
|
3042 |
+
},
|
3043 |
+
{
|
3044 |
+
"children": [
|
3045 |
+
36,
|
3046 |
+
38,
|
3047 |
+
40
|
3048 |
+
],
|
3049 |
+
"name": "Air_motor_right",
|
3050 |
+
"rotation": [
|
3051 |
+
0,
|
3052 |
+
0,
|
3053 |
+
1,
|
3054 |
+
-6.1232342629258393e-17
|
3055 |
+
],
|
3056 |
+
"translation": [
|
3057 |
+
5.773159728050814e-15,
|
3058 |
+
-45.567302703857422,
|
3059 |
+
0
|
3060 |
+
]
|
3061 |
+
},
|
3062 |
+
{
|
3063 |
+
"children": [
|
3064 |
+
37
|
3065 |
+
],
|
3066 |
+
"name": "Cube_2"
|
3067 |
+
},
|
3068 |
+
{
|
3069 |
+
"mesh": 11,
|
3070 |
+
"name": "Cube_2_Body_0"
|
3071 |
+
},
|
3072 |
+
{
|
3073 |
+
"children": [
|
3074 |
+
39
|
3075 |
+
],
|
3076 |
+
"name": "Cube_1"
|
3077 |
+
},
|
3078 |
+
{
|
3079 |
+
"mesh": 12,
|
3080 |
+
"name": "Cube_1_Body_0"
|
3081 |
+
},
|
3082 |
+
{
|
3083 |
+
"children": [
|
3084 |
+
41
|
3085 |
+
],
|
3086 |
+
"name": "Cube"
|
3087 |
+
},
|
3088 |
+
{
|
3089 |
+
"mesh": 13,
|
3090 |
+
"name": "Cube_Body_0"
|
3091 |
+
},
|
3092 |
+
{
|
3093 |
+
"children": [
|
3094 |
+
43,
|
3095 |
+
45,
|
3096 |
+
47
|
3097 |
+
],
|
3098 |
+
"name": "Air_motor_left",
|
3099 |
+
"translation": [
|
3100 |
+
-2.6645352591003757e-15,
|
3101 |
+
22.783651351928711,
|
3102 |
+
0
|
3103 |
+
]
|
3104 |
+
},
|
3105 |
+
{
|
3106 |
+
"children": [
|
3107 |
+
44
|
3108 |
+
],
|
3109 |
+
"name": "Cube_2_2"
|
3110 |
+
},
|
3111 |
+
{
|
3112 |
+
"mesh": 14,
|
3113 |
+
"name": "Cube_2_2_Body_0"
|
3114 |
+
},
|
3115 |
+
{
|
3116 |
+
"children": [
|
3117 |
+
46
|
3118 |
+
],
|
3119 |
+
"name": "Cube_1_2"
|
3120 |
+
},
|
3121 |
+
{
|
3122 |
+
"mesh": 15,
|
3123 |
+
"name": "Cube_1_2_Body_0"
|
3124 |
+
},
|
3125 |
+
{
|
3126 |
+
"children": [
|
3127 |
+
48
|
3128 |
+
],
|
3129 |
+
"name": "Cube_2_3"
|
3130 |
+
},
|
3131 |
+
{
|
3132 |
+
"mesh": 16,
|
3133 |
+
"name": "Cube_2_3_Body_0"
|
3134 |
+
},
|
3135 |
+
{
|
3136 |
+
"children": [
|
3137 |
+
50,
|
3138 |
+
55
|
3139 |
+
],
|
3140 |
+
"name": "Body",
|
3141 |
+
"translation": [
|
3142 |
+
-2.6645352591003757e-15,
|
3143 |
+
22.783651351928711,
|
3144 |
+
0
|
3145 |
+
]
|
3146 |
+
},
|
3147 |
+
{
|
3148 |
+
"children": [
|
3149 |
+
51,
|
3150 |
+
52,
|
3151 |
+
53,
|
3152 |
+
54
|
3153 |
+
],
|
3154 |
+
"name": "Cube_1_3"
|
3155 |
+
},
|
3156 |
+
{
|
3157 |
+
"mesh": 17,
|
3158 |
+
"name": "Cube_1_3_Body_0"
|
3159 |
+
},
|
3160 |
+
{
|
3161 |
+
"mesh": 18,
|
3162 |
+
"name": "Cube_1_3_Red_0"
|
3163 |
+
},
|
3164 |
+
{
|
3165 |
+
"mesh": 19,
|
3166 |
+
"name": "Cube_1_3_Glass_0"
|
3167 |
+
},
|
3168 |
+
{
|
3169 |
+
"mesh": 20,
|
3170 |
+
"name": "Cube_1_3__0"
|
3171 |
+
},
|
3172 |
+
{
|
3173 |
+
"children": [
|
3174 |
+
56,
|
3175 |
+
57,
|
3176 |
+
58,
|
3177 |
+
59
|
3178 |
+
],
|
3179 |
+
"name": "Cube_3"
|
3180 |
+
},
|
3181 |
+
{
|
3182 |
+
"mesh": 21,
|
3183 |
+
"name": "Cube_3_Body_0"
|
3184 |
+
},
|
3185 |
+
{
|
3186 |
+
"mesh": 22,
|
3187 |
+
"name": "Cube_3_Red_0"
|
3188 |
+
},
|
3189 |
+
{
|
3190 |
+
"mesh": 23,
|
3191 |
+
"name": "Cube_3_Glass_0"
|
3192 |
+
},
|
3193 |
+
{
|
3194 |
+
"mesh": 24,
|
3195 |
+
"name": "Cube_3__0"
|
3196 |
+
}
|
3197 |
+
],
|
3198 |
+
"scene": 0,
|
3199 |
+
"scenes": [
|
3200 |
+
{
|
3201 |
+
"name": "OSG_Scene",
|
3202 |
+
"nodes": [
|
3203 |
+
0
|
3204 |
+
]
|
3205 |
+
}
|
3206 |
+
]
|
3207 |
+
}
|
3208 |
+
|
cartoon_plane/texture_07.png
ADDED
Git LFS Details
|
concrete_wall_004_ao_1k.jpg
ADDED
Git LFS Details
|
concrete_wall_004_arm_1k.jpg
ADDED
Git LFS Details
|
concrete_wall_004_diff_1k.jpg
ADDED
Git LFS Details
|