master
chendian 2 years ago
parent 3d4229cb43
commit 158a1fa6fc

@ -91,6 +91,11 @@ MagicaVoxel.With.Extensions.To.Mesh={
"Scale": 0.02,
"SnapToGround": false
}
MagicaVoxel.With.Extensions.To.MeshLibrary={
"GreedyMeshGenerator": true,
"Scale": 0.02,
"SnapToGround": false
}
[input]

@ -1,18 +0,0 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://caii2ypk4lb1k"
path="res://.godot/imported/block_center.vox-174afe624f8f28740a980e749fa5cb81.mesh"
[deps]
source_file="res://resource/mesh_level/block_center.vox"
dest_files=["res://.godot/imported/block_center.vox-174afe624f8f28740a980e749fa5cb81.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -1,18 +0,0 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://c6g1c31dd86yp"
path="res://.godot/imported/block_corner.vox-f69c0349b9af8b9ce9744df0e32de2d4.mesh"
[deps]
source_file="res://resource/mesh_level/block_corner.vox"
dest_files=["res://.godot/imported/block_corner.vox-f69c0349b9af8b9ce9744df0e32de2d4.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -1,18 +0,0 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://d1awgblbh4vmq"
path="res://.godot/imported/block_edge.vox-0697c9a463d7f84082eb6b2aa243a538.mesh"
[deps]
source_file="res://resource/mesh_level/block_edge.vox"
dest_files=["res://.godot/imported/block_edge.vox-0697c9a463d7f84082eb6b2aa243a538.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=false

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://43lv5hser7jg"
path="res://.godot/imported/f_block_air.vox-5d6419c00b10652e922c52af0ba4d24c.mesh"
[deps]
source_file="res://resource/mesh_level/f_block_air.vox"
dest_files=["res://.godot/imported/f_block_air.vox-5d6419c00b10652e922c52af0ba4d24c.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://dbaxh8tjqojop"
path="res://.godot/imported/f_block_center.vox-8b27c7614ebef163c1309c3e6ae02aeb.mesh"
[deps]
source_file="res://resource/mesh_level/f_block_center.vox"
dest_files=["res://.godot/imported/f_block_center.vox-8b27c7614ebef163c1309c3e6ae02aeb.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://dpfp554wuwtom"
path="res://.godot/imported/f_block_corner.vox-3be5d9251cb9eafa0b26d48b49c33d61.mesh"
[deps]
source_file="res://resource/mesh_level/f_block_corner.vox"
dest_files=["res://.godot/imported/f_block_corner.vox-3be5d9251cb9eafa0b26d48b49c33d61.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://b828kv8ly5aef"
path="res://.godot/imported/f_block_edge.vox-fd3a3a6288a3fcb337a8764c965ba71e.mesh"
[deps]
source_file="res://resource/mesh_level/f_block_edge.vox"
dest_files=["res://.godot/imported/f_block_edge.vox-fd3a3a6288a3fcb337a8764c965ba71e.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://cr0oere8ykvyw"
path="res://.godot/imported/h_block_center_half.vox-629db0689a63da4438974e555fffc7ff.mesh"
[deps]
source_file="res://resource/mesh_level/h_block_center_half.vox"
dest_files=["res://.godot/imported/h_block_center_half.vox-629db0689a63da4438974e555fffc7ff.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://cmei6mojx4han"
path="res://.godot/imported/h_wood_floor1.vox-14bec888788cc4e754ed63da06cc75f6.mesh"
[deps]
source_file="res://resource/mesh_level/h_wood_floor1.vox"
dest_files=["res://.godot/imported/h_wood_floor1.vox-14bec888788cc4e754ed63da06cc75f6.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://dxhtmci2c1kn4"
path="res://.godot/imported/h_wood_floor2.vox-61a9bdba404e157843c33bb9e6af38e9.mesh"
[deps]
source_file="res://resource/mesh_level/h_wood_floor2.vox"
dest_files=["res://.godot/imported/h_wood_floor2.vox-61a9bdba404e157843c33bb9e6af38e9.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

Binary file not shown.

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://48vrhuyvto7c"
path="res://.godot/imported/n_empty.vox-c7cd8e085056a3a3c2f2f6fdde55ca1f.mesh"
[deps]
source_file="res://resource/mesh_level/n_empty.vox"
dest_files=["res://.godot/imported/n_empty.vox-c7cd8e085056a3a3c2f2f6fdde55ca1f.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://h5otvw5f0irr"
path="res://.godot/imported/s_window1.vox-0bd6c8a6b0485c776e80628c14da8e56.mesh"
[deps]
source_file="res://resource/mesh_level/s_window1.vox"
dest_files=["res://.godot/imported/s_window1.vox-0bd6c8a6b0485c776e80628c14da8e56.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://ka07hfn33kq0"
path="res://.godot/imported/s_window2.vox-0002bf6b53014426c73bac703f957923.mesh"
[deps]
source_file="res://resource/mesh_level/s_window2.vox"
dest_files=["res://.godot/imported/s_window2.vox-0002bf6b53014426c73bac703f957923.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -1,18 +0,0 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://7gy8vxvh5jqa"
path="res://.godot/imported/window1.vox-7c2fd104eec3b8fedfd530461eeebc53.mesh"
[deps]
source_file="res://resource/mesh_level/window1.vox"
dest_files=["res://.godot/imported/window1.vox-7c2fd104eec3b8fedfd530461eeebc53.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -1,18 +0,0 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://b20130pl5hfvy"
path="res://.godot/imported/window2.vox-ac912af7740998671332b09c16515e4a.mesh"
[deps]
source_file="res://resource/mesh_level/window2.vox"
dest_files=["res://.godot/imported/window2.vox-ac912af7740998671332b09c16515e4a.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,4 @@
[gd_scene format=3 uid="uid://bb3rddqjm47aw"]
[node name="Block" type="MeshInstance3D"]
cast_shadow = 0

@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://d1lh6ere14pny"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_stlyj"]
data = PackedVector3Array(-0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
[node name="Block" type="MeshInstance3D"]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_stlyj")

@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://ceyw37iyt3ye5"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_wncfa"]
data = PackedVector3Array(-0.32, 0, -0.32, 0.32, 0, -0.32, 0.32, 0, 0.32, 0.32, 0, 0.32, -0.32, 0, 0.32, -0.32, 0, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0, -0.32, -0.32, 0, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0, -0.32, 0.32, 0, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0, 0.32, 0.32, 0, -0.32, -0.32, -0.32, 0.32, -0.32, 0, 0.32, 0.32, 0, 0.32, 0.32, 0, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, 0, -0.32, -0.32, 0, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0, -0.32)
[node name="Block" type="MeshInstance3D"]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wncfa")

File diff suppressed because one or more lines are too long

@ -1,62 +1,6 @@
[gd_scene load_steps=9 format=3 uid="uid://b3rp0a5do2mm6"]
[gd_scene load_steps=2 format=3 uid="uid://b3rp0a5do2mm6"]
[ext_resource type="ArrayMesh" uid="uid://caii2ypk4lb1k" path="res://resource/mesh_level/block_center.vox" id="1_8nl8s"]
[ext_resource type="ArrayMesh" uid="uid://c6g1c31dd86yp" path="res://resource/mesh_level/block_corner.vox" id="2_870el"]
[ext_resource type="ArrayMesh" uid="uid://d1awgblbh4vmq" path="res://resource/mesh_level/block_edge.vox" id="3_0q8sx"]
[ext_resource type="ArrayMesh" uid="uid://7gy8vxvh5jqa" path="res://resource/mesh_level/window1.vox" id="4_glrv6"]
[ext_resource type="ArrayMesh" uid="uid://b20130pl5hfvy" path="res://resource/mesh_level/window2.vox" id="5_7lr01"]
[ext_resource type="Script" path="res://script/editor_tool/mesh_lib.gd" id="1_7xp6b"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_stlyj"]
data = PackedVector3Array(-0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_urjlt"]
data = PackedVector3Array(-0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.3, -0.28, 0.32, -0.3, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, -0.3, -0.3, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.3, 0.32, -0.3, -0.3, 0.32, -0.32, -0.28, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, -0.28, -0.28, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.28, 0.32, -0.28, -0.28, 0.32, -0.3, -0.3, -0.32, 0.32, -0.3, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, -0.32, -0.3, -0.3, -0.32, -0.3, -0.3, -0.32, -0.3, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, -0.28, -0.32, -0.28, -0.28, -0.32, -0.28, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, 0.32, -0.32, -0.3, -0.28, -0.32, -0.3, -0.28, -0.32, -0.3, -0.28, -0.32, -0.28, 0.32, -0.32, -0.28, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.28, 0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.32, 0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_wreew"]
data = PackedVector3Array(-0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, -0.32, -0.3, -0.32, 0.32, -0.3, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.32, 0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.28, -0.32, 0.32, -0.3, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
[node name="MeshLibrary" type="Node3D"]
[node name="BlockAirWall" type="MeshInstance3D" parent="."]
[node name="StaticBody3D" type="StaticBody3D" parent="BlockAirWall"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockAirWall/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_stlyj")
[node name="BlockCenter" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
mesh = ExtResource("1_8nl8s")
[node name="StaticBody3D" type="StaticBody3D" parent="BlockCenter"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockCenter/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_stlyj")
[node name="BlockCorner" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
mesh = ExtResource("2_870el")
[node name="StaticBody3D" type="StaticBody3D" parent="BlockCorner"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockCorner/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_urjlt")
[node name="BlockEdge" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
mesh = ExtResource("3_0q8sx")
[node name="StaticBody3D" type="StaticBody3D" parent="BlockEdge"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockEdge/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_wreew")
[node name="Window" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1)
cast_shadow = 0
mesh = ExtResource("4_glrv6")
[node name="Window2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
cast_shadow = 0
mesh = ExtResource("5_7lr01")
[node name="MeshLib" type="Node3D"]
script = ExtResource("1_7xp6b")

@ -28,7 +28,6 @@ use_collision = true
size = Vector3(12.8, 2, 7.2)
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
mesh_library = ExtResource("2_4ejwk")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {

@ -18,7 +18,6 @@ use_collision = true
size = Vector3(12.8, 2, 14.4)
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
mesh_library = ExtResource("2_fqw73")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {

@ -22,7 +22,6 @@ use_collision = true
size = Vector3(38.4, 2, 7.2)
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
mesh_library = ExtResource("2_q76ck")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {

@ -22,10 +22,9 @@ use_collision = true
size = Vector3(12.8, 2, 7.2)
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
mesh_library = ExtResource("2_dx1b7")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(0, 1, 655362, 0, 0, 0, 19, 1, 0, 19, 0, 0, 19, 2, 0, 19, 3, 0, 19, 7, 0, 19, 8, 0, 19, 9, 0, 19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 0, 2, 655362, 0, 3, 655362, 0, 9, 655362, 0, 5, 655362, 0, 4, 655362, 15, 10, 0, 14, 10, 0, 13, 10, 0, 12, 10, 0, 11, 10, 0, 8, 10, 0, 7, 10, 0, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 1376258, 1, 65535, 1376258, 2, 65535, 1376258, 3, 65535, 1376258, 4, 65535, 1376258, 5, 65535, 1376258, 6, 65535, 1376258, 7, 65535, 1376258, 8, 65535, 1376258, 9, 65535, 1376258, 12, 65535, 1376258, 13, 65535, 1376258, 14, 65535, 1376258, 15, 65535, 1376258, 16, 65535, 1376258, 17, 65535, 1376258, 18, 65535, 1376258, 19, 65535, 1376258)
"cells": PackedInt32Array(0, 1, 655362, 0, 0, 0, 19, 1, 0, 19, 0, 0, 19, 2, 0, 19, 3, 0, 19, 7, 0, 19, 8, 0, 19, 9, 0, 19, 10, 1245184, 18, 10, 1245184, 17, 10, 1245184, 16, 10, 1245184, 0, 2, 655362, 0, 3, 655362, 0, 9, 655362, 0, 5, 655362, 0, 4, 655362, 15, 10, 1245184, 14, 10, 1245184, 13, 10, 0, 12, 10, 0, 11, 10, 0, 8, 10, 0, 7, 10, 0, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 1376258, 1, 65535, 1376258, 2, 65535, 1376258, 3, 65535, 1376258, 4, 65535, 1376258, 5, 65535, 1376258, 6, 65535, 1376258, 7, 65535, 1376258, 8, 65535, 1376258, 9, 65535, 1376258, 12, 65535, 1376258, 13, 65535, 1376258, 14, 65535, 1376258, 15, 65535, 1376258, 16, 65535, 1376258, 17, 65535, 1376258, 18, 65535, 1376258, 19, 65535, 1376258, 0, 11, 1245184, 1, 11, 1245184, 2, 11, 1245184, 3, 11, 1245184, 4, 11, 1245184, 5, 11, 1245184, 6, 11, 1245184, 7, 11, 1245184, 8, 11, 1245184, 11, 11, 1245184, 12, 11, 1245184, 13, 11, 1245184, 14, 11, 1245184, 15, 11, 1245184, 16, 11, 1245184, 17, 11, 1245184, 18, 11, 1245184, 19, 11, 1245184)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)

@ -22,10 +22,9 @@ use_collision = true
size = Vector3(25.6, 2, 7.2)
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
mesh_library = ExtResource("2_qax75")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 15, 10, 917504, 14, 10, 917504, 13, 10, 917504, 12, 10, 917504, 11, 10, 917504, 8, 10, 917504, 7, 10, 917504, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 917504, 1, 65535, 917504, 2, 65535, 917504, 3, 65535, 917504, 4, 65535, 917504, 5, 65535, 917504, 6, 65535, 917504, 7, 65535, 917504, 8, 65535, 917504, 9, 65535, 917504, 12, 65535, 917504, 13, 65535, 917504, 14, 65535, 917504, 15, 65535, 917504, 16, 65535, 917504, 17, 65535, 917504, 18, 65535, 917504, 19, 65535, 917504, 10, 65535, 917504, 11, 65535, 917504, 20, 65535, 917504, 21, 65535, 917504, 22, 65535, 917504, 23, 65535, 917504, 24, 65535, 917504, 25, 65535, 917504, 26, 65535, 917504, 27, 65535, 917504, 28, 65535, 917504, 29, 65535, 917504, 30, 65535, 917504, 31, 65535, 917504, 32, 65535, 917504, 33, 65535, 917504, 34, 65535, 917504, 35, 65535, 917504, 36, 65535, 917504, 37, 65535, 917504, 38, 65535, 917504, 39, 65535, 917504, 39, 0, 917504, 39, 1, 917504, 39, 2, 917504, 39, 3, 917504, 39, 7, 917504, 39, 8, 917504, 39, 9, 917504, 39, 10, 917504, 38, 10, 917504, 37, 10, 917504, 36, 10, 917504, 35, 10, 917504, 34, 10, 917504, 33, 10, 917504, 32, 10, 917504, 31, 10, 917504, 30, 10, 917504, 29, 10, 917504, 28, 10, 917504, 27, 10, 917504, 26, 10, 917504, 25, 10, 917504, 24, 10, 917504, 23, 10, 917504, 22, 10, 917504, 21, 10, 917504, 20, 10, 917504, 9, 10, 917504, 10, 10, 917504, 39, 6, 917504)
"cells": PackedInt32Array(19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 15, 10, 917504, 14, 10, 917504, 13, 10, 917504, 12, 10, 917504, 11, 10, 917504, 8, 10, 917504, 7, 10, 917504, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 917504, 1, 65535, 917504, 2, 65535, 917504, 3, 65535, 917504, 4, 65535, 917504, 5, 65535, 917504, 6, 65535, 917504, 7, 65535, 917504, 8, 65535, 917504, 9, 65535, 917504, 12, 65535, 917504, 13, 65535, 917504, 14, 65535, 917504, 15, 65535, 917504, 16, 65535, 917504, 17, 65535, 917504, 18, 65535, 917504, 19, 65535, 917504, 10, 65535, 917504, 11, 65535, 917504, 20, 65535, 917504, 21, 65535, 917504, 22, 65535, 917504, 23, 65535, 917504, 24, 65535, 917504, 25, 65535, 917504, 26, 65535, 917504, 27, 65535, 917504, 28, 65535, 917504, 29, 65535, 917504, 30, 65535, 917504, 31, 65535, 917504, 32, 65535, 917504, 33, 65535, 917504, 34, 65535, 917504, 35, 65535, 917504, 36, 65535, 917504, 37, 65535, 917504, 38, 65535, 917504, 39, 65535, 917504, 39, 0, 917504, 39, 1, 917504, 39, 2, 917504, 39, 3, 917504, 39, 7, 917504, 39, 8, 917504, 39, 9, 917504, 39, 10, 917504, 38, 10, 917504, 37, 10, 917504, 36, 10, 917504, 35, 10, 917504, 34, 10, 917504, 33, 10, 917504, 32, 10, 917504, 31, 10, 917504, 30, 10, 917504, 29, 10, 1245184, 28, 10, 1245184, 27, 10, 1245184, 26, 10, 1245184, 25, 10, 1245184, 24, 10, 1245184, 23, 10, 917504, 22, 10, 917504, 21, 10, 917504, 20, 10, 917504, 9, 10, 917504, 10, 10, 917504, 39, 6, 917504, 0, 11, 1245184, 1, 11, 1245184, 2, 11, 1245184, 3, 11, 1245184, 4, 11, 1245184, 5, 11, 1245184, 6, 11, 1245184, 7, 11, 1245184, 8, 11, 1245184, 9, 11, 1245184, 10, 11, 1245184, 11, 11, 1245184, 12, 11, 1245184, 13, 11, 1245184, 14, 11, 1245184, 15, 11, 1245184, 16, 11, 1245184, 17, 11, 1245184, 18, 11, 1245184, 19, 11, 1245184, 20, 11, 1245184, 21, 11, 1245184, 22, 11, 1245184, 23, 11, 1245184, 24, 11, 1245184, 25, 11, 1245184, 26, 11, 1245184, 27, 11, 1245184, 28, 11, 1245184, 29, 11, 1245184, 30, 11, 1245184, 31, 11, 1245184, 32, 11, 1245184, 33, 11, 1245184, 34, 11, 1245184, 36, 11, 1245184, 37, 11, 1245184, 38, 11, 1245184, 39, 11, 1245184, 35, 11, 1245184)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)

@ -5,8 +5,8 @@
[ext_resource type="Script" path="res://script/ui/hud/headbar_page.gd" id="3_6chl0"]
[ext_resource type="Script" path="res://script/ui/hud/loading_page.gd" id="4_jqajt"]
[sub_resource type="Animation" id="Animation_x6v17"]
resource_name = "start"
[sub_resource type="Animation" id="Animation_4kxot"]
resource_name = "end"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@ -14,14 +14,14 @@ tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_4kxot"]
resource_name = "end"
[sub_resource type="Animation" id="Animation_x6v17"]
resource_name = "start"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@ -29,10 +29,10 @@ tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fofuj"]

@ -2,18 +2,45 @@
extends Node3D
@export var refresh_animation_lib : bool :
get:
return false
get:return false
set(_value):
Util.refresh_animation_lib()
@export var refresh_mesh_lib : bool :
get:return false
set(_value):
process_mesh_lib("res://resource/mesh_level/")
print("done.")
@export var refresh_uid : bool :
get:
return false
get:return false
set(_value):
process_dir("res://")
print("done.")
func process_mesh_lib(dir_name: String) -> void:
var mesh_library_path = "res://resource/mesh_library/mesh_library.tscn"
var mesh_library_res = load(mesh_library_path)
var mesh_library = mesh_library_res.instantiate() as MeshLib
add_child(mesh_library)
mesh_library.owner = get_tree().edited_scene_root
mesh_library.name = "MeshLib"
var dir := DirAccess.open(dir_name)
if dir:
dir.list_dir_begin()
var file_name = dir.get_next()
if dir_name.ends_with("/"):
dir_name = dir_name.trim_suffix("/")
while file_name != "":
var file_name_full = dir_name + "/" + file_name
mesh_library.add(file_name_full,file_name)
file_name = dir.get_next()
else:
print("An error occurred when trying to access the path: ", dir_name)
mesh_library_res.pack(mesh_library)
ResourceSaver.save(mesh_library_res)
remove_child(mesh_library)
func process_dir(dir_name: String) -> void:
var dir := DirAccess.open(dir_name)
if dir:

@ -0,0 +1,28 @@
@tool
extends Node3D
class_name MeshLib
var block_full = preload("res://resource/mesh_library/block_full.tscn")
var block_half = preload("res://resource/mesh_library/block_half.tscn")
var block_empty = preload("res://resource/mesh_library/block_empty.tscn")
func add(file_name_full:String,file_name:String):
if not file_name.ends_with(".vox"):
return
var resource_name = file_name.trim_suffix('.vox')
if find_child(resource_name,false,false):
return
var template:MeshInstance3D
if file_name.begins_with("f_"):
template = block_full.instantiate() as MeshInstance3D
elif file_name.begins_with("h_"):
template = block_half.instantiate() as MeshInstance3D
else:
template = block_empty.instantiate() as MeshInstance3D
var mesh = load(file_name_full) as Mesh
template.name = resource_name
template.mesh = mesh
add_child(template)
template.owner = get_tree().edited_scene_root
print(file_name)

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Loading…
Cancel
Save