Quality of life in procedural town creation improved

This commit is contained in:
2025-02-13 14:41:53 +03:00
parent b56103930c
commit 2eed8ef509
59 changed files with 8150 additions and 88 deletions

View File

@@ -0,0 +1,74 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://astream/terrain/details/residental-hut1.gltf" type="PackedScene" id=1]
[ext_resource path="res://astream/terrain/details/parts/door1-portal.tscn" type="PackedScene" id=2]
[ext_resource path="res://astream/terrain/details/parts/residental-house-stair.tscn" type="PackedScene" id=3]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.7, 1, 0.6 )
[sub_resource type="CubeMesh" id=2]
size = Vector3( 14, 7, 16 )
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0.937255, 0.615686, 0.0627451, 1 )
[node name="residental-hut1" type="Spatial"]
[node name="LOD" type="LOD" parent="."]
[node name="MergeGroup" type="MergeGroup" parent="LOD"]
lod_range = 40.0
[node name="residental-hut1" parent="LOD/MergeGroup" instance=ExtResource( 1 )]
[node name="door1-portal" parent="LOD/MergeGroup" instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 1, 1, -7.48604 )
skeleton = NodePath("../../..")
[node name="enter_destination" type="Spatial" parent="LOD/MergeGroup/door1-portal" groups=["smart_object"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.905, 0, 0.65 )
[node name="actions" type="Node" parent="LOD/MergeGroup/door1-portal/enter_destination"]
[node name="EnterDestination" type="Node" parent="LOD/MergeGroup/door1-portal/enter_destination/actions"]
[node name="Area" type="Area" parent="LOD/MergeGroup/door1-portal/enter_destination"]
[node name="CollisionShape" type="CollisionShape" parent="LOD/MergeGroup/door1-portal/enter_destination/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
shape = SubResource( 1 )
[node name="residental-house-stair" parent="LOD/MergeGroup" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -7.97294 )
[node name="MergeGroup2" type="MergeGroup" parent="LOD"]
visible = false
lod_range = 20.0
[node name="residental-hut1" parent="LOD/MergeGroup2" instance=ExtResource( 1 )]
[node name="door1-portal" parent="LOD/MergeGroup2" instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 1, 1, -7.48604 )
skeleton = NodePath("../../..")
[node name="enter_destination" type="Spatial" parent="LOD/MergeGroup2/door1-portal" groups=["smart_object"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.905, 0, 0.65 )
[node name="actions" type="Node" parent="LOD/MergeGroup2/door1-portal/enter_destination"]
[node name="EnterDestination" type="Node" parent="LOD/MergeGroup2/door1-portal/enter_destination/actions"]
[node name="Area" type="Area" parent="LOD/MergeGroup2/door1-portal/enter_destination"]
[node name="CollisionShape" type="CollisionShape" parent="LOD/MergeGroup2/door1-portal/enter_destination/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
shape = SubResource( 1 )
[node name="MergeGroup3" type="MergeGroup" parent="LOD"]
visible = false
[node name="MeshInstance" type="MeshInstance" parent="LOD/MergeGroup3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.5, 0 )
mesh = SubResource( 2 )
material/0 = SubResource( 3 )