mesh lib
parent
3d4229cb43
commit
158a1fa6fc
@ -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
|
|
||||||
Binary file not shown.
@ -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
|
||||||
Binary file not shown.
@ -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
|
||||||
Binary file not shown.
@ -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
|
||||||
Binary file not shown.
@ -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="Script" path="res://script/editor_tool/mesh_lib.gd" id="1_7xp6b"]
|
||||||
[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"]
|
|
||||||
|
|
||||||
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_stlyj"]
|
[node name="MeshLib" type="Node3D"]
|
||||||
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)
|
script = ExtResource("1_7xp6b")
|
||||||
|
|
||||||
[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")
|
|
||||||
|
|||||||
@ -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…
Reference in New Issue