add river chunk

This commit is contained in:
Matteo Sonaglioni
2026-05-07 22:10:36 +02:00
parent 1d03bb0156
commit 4e9a5bc24d
12 changed files with 1585 additions and 333 deletions

View File

@@ -45,6 +45,8 @@
[ext_resource type="PackedScene" uid="uid://ce6qvpb27fdpo" path="res://tgcc/chunk/river/scene/chunk_river_curve_2.tscn" id="29_d1gyr"]
[ext_resource type="PackedScene" uid="uid://7063xk3bwboc" path="res://tgcc/chunk/river/scene/chunk_river_straight_4.tscn" id="30_3ldqx"]
[ext_resource type="PackedScene" uid="uid://ccgd3uy68r88h" path="res://tgcc/chunk/river/scene/chunk_river_curve_3.tscn" id="31_dsw5k"]
[ext_resource type="PackedScene" uid="uid://mpgyaho52lii" path="res://tgcc/chunk/river/scene/chunk_river_straight_5.tscn" id="32_03yl6"]
[ext_resource type="PackedScene" uid="uid://q26mkh3cupic" path="res://tgcc/chunk/river/scene/chunk_river_cross_2.tscn" id="33_rlemp"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_wjpfq"]
fractal_lacunarity = 1.915
@@ -124,7 +126,7 @@ compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_q52t
[sub_resource type="Resource" id="Resource_3qrd0"]
script = ExtResource("6_s3jnv")
name = "countryside"
available_chunks = Array[PackedScene]([ExtResource("7_xgfli"), ExtResource("10_ufarv"), ExtResource("9_q6kbb"), ExtResource("7_4elh6"), ExtResource("8_hvd8d"), ExtResource("12_81wux"), ExtResource("13_1ugwu"), ExtResource("10_ufarv"), ExtResource("15_ky1rt"), ExtResource("16_5g563"), ExtResource("17_tbmwr"), ExtResource("9_51cxd"), ExtResource("19_ne4de"), ExtResource("20_q6kbb"), ExtResource("21_81wux"), ExtResource("21_ky1rt"), ExtResource("22_5g563"), ExtResource("23_tbmwr"), ExtResource("24_ne4de"), ExtResource("25_5g563"), ExtResource("26_7ykwn"), ExtResource("27_d1gyr"), ExtResource("28_3ldqx"), ExtResource("29_d1gyr"), ExtResource("30_3ldqx"), ExtResource("31_dsw5k")])
available_chunks = Array[PackedScene]([ExtResource("7_xgfli"), ExtResource("10_ufarv"), ExtResource("9_q6kbb"), ExtResource("7_4elh6"), ExtResource("8_hvd8d"), ExtResource("12_81wux"), ExtResource("13_1ugwu"), ExtResource("10_ufarv"), ExtResource("15_ky1rt"), ExtResource("16_5g563"), ExtResource("17_tbmwr"), ExtResource("9_51cxd"), ExtResource("19_ne4de"), ExtResource("20_q6kbb"), ExtResource("21_81wux"), ExtResource("21_ky1rt"), ExtResource("22_5g563"), ExtResource("23_tbmwr"), ExtResource("24_ne4de"), ExtResource("25_5g563"), ExtResource("26_7ykwn"), ExtResource("27_d1gyr"), ExtResource("28_3ldqx"), ExtResource("29_d1gyr"), ExtResource("30_3ldqx"), ExtResource("31_dsw5k"), ExtResource("32_03yl6"), ExtResource("33_rlemp")])
metadata/_custom_type_script = "uid://wv6kcqkibium"
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pypsn"]

View File

@@ -9,7 +9,6 @@
[ext_resource type="Material" uid="uid://fnjxocmx16b7" path="res://tgcc/chunk/prop/grass/grass_chunk.tres" id="4_xfgwo"]
[ext_resource type="Material" uid="uid://bjrb33qwp1p43" path="res://tgcc/chunk/prop/grass/grass_chunk_weeds.tres" id="5_ain0v"]
[ext_resource type="Material" uid="uid://0x17mj2v807r" path="res://tgcc/chunk/prop/grass/grass_chunk_weeds2.tres" id="6_nebt2"]
[ext_resource type="PackedScene" uid="uid://bgb4pfflokl5s" path="res://tgcc/chunk/prop/pylon/pylon.tscn" id="10_v2rwj"]
[ext_resource type="PackedScene" uid="uid://d12t04rs47jq3" path="res://tgcc/chunk/prop/tree/tree_01.tscn" id="11_v2rwj"]
[ext_resource type="PackedScene" uid="uid://cuh0xw6ff6bku" path="res://tgcc/chunk/prop/flower/flower.tscn" id="12_ss6fe"]
@@ -40,12 +39,9 @@ buffer = PackedFloat32Array(3.9456527e-08, -0.6345529, 0.77417296, 8.223151, -1.
[sub_resource type="BoxShape3D" id="BoxShape3D_xfgwo"]
size = Vector3(20, 10, 20)
[node name="chunk_railway_curve" unique_id=238887300 node_paths=PackedStringArray("connection_left", "connection_right") instance=ExtResource("1_r0w7x")]
[node name="chunk_railway_curve" unique_id=238887300 instance=ExtResource("1_r0w7x")]
script = ExtResource("2_nebt2")
chunk_type = 2
have_lamppost = true
connection_left = [NodePath("PaloLuce3/sx"), NodePath("PaloLuce2/sx"), NodePath("PaloLuce/sx")]
connection_right = [NodePath("PaloLuce3/dx"), NodePath("PaloLuce2/dx"), NodePath("PaloLuce/dx")]
[node name="BézierCurve_003" parent="." index="0" unique_id=826544595]
surface_material_override/0 = ExtResource("2_ain0v")
@@ -117,25 +113,7 @@ shape = SubResource("BoxShape3D_xfgwo")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 4, 0)
shape = SubResource("BoxShape3D_xfgwo")
[node name="PaloLuce" parent="." index="5" unique_id=1607500596 instance=ExtResource("10_v2rwj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.1802254, 0, -28.005638)
[node name="Cube" parent="PaloLuce" index="0" unique_id=1142687027]
transform = Transform3D(-4.3711393e-06, 100.00001, 1.1920929e-05, 0, -1.1920929e-05, 100.00001, 100.000015, 4.371139e-06, 5.210804e-13, 4.760495, 0, -0.002784729)
[node name="PaloLuce2" parent="." index="6" unique_id=668176867 instance=ExtResource("10_v2rwj")]
transform = Transform3D(0.67383826, 0, -0.73887885, 0, 1, 0, 0.73887885, 0, 0.67383826, -0.36678743, 0, -3.5238495)
[node name="Cube" parent="PaloLuce2" index="0" unique_id=1142687027]
transform = Transform3D(0, 100.000015, 1.1920929e-05, 0, -1.1920929e-05, 100.00001, 100.000015, 3.8146973e-06, 0, 2.308104, -1.9073486e-06, -0.90790176)
[node name="PaloLuce3" parent="." index="7" unique_id=633610471 instance=ExtResource("10_v2rwj")]
transform = Transform3D(0.033818066, 0, -0.9994279, 0, 1, 0, 0.9994279, 0, 0.033818066, -26.781347, 0, 9.45334)
[node name="Cube" parent="PaloLuce3" index="0" unique_id=1142687027]
transform = Transform3D(-4.2915344e-06, 100.000015, 1.192093e-05, 0, -1.1920929e-05, 100.00001, 100.00002, 4.2915344e-06, 5.1159077e-13, 1.5642233, 0, 0.05023575)
[node name="Tree" type="Node3D" parent="." index="8" unique_id=229613049]
[node name="Tree" type="Node3D" parent="." index="5" unique_id=229613049]
[node name="TreeTest3" parent="Tree" index="0" unique_id=1532527216 instance=ExtResource("11_v2rwj")]
transform = Transform3D(1.258351, 0, -1.1430457, 0, 1.7000003, 0, 1.1430457, 0, 1.258351, 3.4696913, 0, -28.48431)
@@ -293,7 +271,7 @@ transform = Transform3D(1.4339567, 0, 0.9131093, 0, 1.7000002, 0, -0.9131093, 0,
[node name="TreeTest22" parent="Tree" index="51" unique_id=504561169 instance=ExtResource("11_v2rwj")]
transform = Transform3D(-1.6730486, 0, 0.30151117, 0, 1.7000005, 0, -0.30151117, 0, -1.6730486, -22.988789, 0.678772, 3.902561)
[node name="Flower2" type="Node3D" parent="." index="9" unique_id=913717123]
[node name="Flower2" type="Node3D" parent="." index="6" unique_id=913717123]
[node name="Flower" parent="Flower2" index="0" unique_id=705935685 instance=ExtResource("12_ss6fe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.028124, 0, 6.3845816)
@@ -409,7 +387,4 @@ transform = Transform3D(0.19438852, 0, 0.98092467, 0, 1, 0, -0.98092467, 0, 0.19
[node name="Flower36" parent="Flower2" index="37" unique_id=2100770937 instance=ExtResource("12_ss6fe")]
transform = Transform3D(0.71336067, 0, -0.7007972, 0, 1, 0, 0.7007972, 0, 0.71336067, 11.189318, 0, -27.307688)
[editable path="PaloLuce"]
[editable path="PaloLuce2"]
[editable path="PaloLuce3"]
[editable path="Tree/TreeTest3"]

View File

@@ -9,7 +9,6 @@
[ext_resource type="Material" uid="uid://fnjxocmx16b7" path="res://tgcc/chunk/prop/grass/grass_chunk.tres" id="7_w4l3j"]
[ext_resource type="Material" uid="uid://bjrb33qwp1p43" path="res://tgcc/chunk/prop/grass/grass_chunk_weeds.tres" id="8_yjwg7"]
[ext_resource type="Material" uid="uid://0x17mj2v807r" path="res://tgcc/chunk/prop/grass/grass_chunk_weeds2.tres" id="9_xfkev"]
[ext_resource type="PackedScene" uid="uid://bgb4pfflokl5s" path="res://tgcc/chunk/prop/pylon/pylon.tscn" id="10_3bqor"]
[ext_resource type="PackedScene" uid="uid://d12t04rs47jq3" path="res://tgcc/chunk/prop/tree/tree_01.tscn" id="11_rmmhu"]
[ext_resource type="PackedScene" uid="uid://cuh0xw6ff6bku" path="res://tgcc/chunk/prop/flower/flower.tscn" id="12_horjc"]
[ext_resource type="Shader" uid="uid://cs0xl7pc6e26h" path="res://core/daynight/tree_leaves.gdshader" id="12_w2mr5"]
@@ -62,12 +61,9 @@ shader_parameter/random_mix = 0.0
shader_parameter/cast_shadow_strength = 0.0
shader_parameter/wetness_darkening = 0.25
[node name="chunk_railway_curve" unique_id=238887300 node_paths=PackedStringArray("connection_left", "connection_right") instance=ExtResource("1_5qkha")]
[node name="chunk_railway_curve" unique_id=238887300 instance=ExtResource("1_5qkha")]
script = ExtResource("2_ebdep")
chunk_type = 2
have_lamppost = true
connection_left = [NodePath("PaloLuce3/sx"), NodePath("PaloLuce2/sx"), NodePath("PaloLuce/sx")]
connection_right = [NodePath("PaloLuce3/dx"), NodePath("PaloLuce2/dx"), NodePath("PaloLuce/dx")]
[node name="BézierCurve_003" parent="." index="0" unique_id=826544595]
surface_material_override/0 = ExtResource("3_w2mr5")
@@ -139,25 +135,7 @@ shape = SubResource("BoxShape3D_xfgwo")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 4, 0)
shape = SubResource("BoxShape3D_xfgwo")
[node name="PaloLuce" parent="." index="5" unique_id=1607500596 instance=ExtResource("10_3bqor")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.1802254, 0, -28.005638)
[node name="Cube" parent="PaloLuce" index="0" unique_id=1142687027]
transform = Transform3D(-4.3711393e-06, 100.00001, 1.1920929e-05, 0, -1.1920929e-05, 100.00001, 100.000015, 4.371139e-06, 5.210804e-13, 4.760495, 0, -0.002784729)
[node name="PaloLuce2" parent="." index="6" unique_id=668176867 instance=ExtResource("10_3bqor")]
transform = Transform3D(0.67383826, 0, -0.73887885, 0, 1, 0, 0.73887885, 0, 0.67383826, -0.36678743, 0, -3.5238495)
[node name="Cube" parent="PaloLuce2" index="0" unique_id=1142687027]
transform = Transform3D(0, 100.000015, 1.1920929e-05, 0, -1.1920929e-05, 100.00001, 100.000015, 3.8146973e-06, 0, 2.308104, -1.9073486e-06, -0.90790176)
[node name="PaloLuce3" parent="." index="7" unique_id=633610471 instance=ExtResource("10_3bqor")]
transform = Transform3D(0.033818066, 0, -0.9994279, 0, 1, 0, 0.9994279, 0, 0.033818066, -26.781347, 0, 9.45334)
[node name="Cube" parent="PaloLuce3" index="0" unique_id=1142687027]
transform = Transform3D(-4.2915344e-06, 100.000015, 1.192093e-05, 0, -1.1920929e-05, 100.00001, 100.00002, 4.2915344e-06, 5.1159077e-13, 1.5642233, 0, 0.05023575)
[node name="Tree" type="Node3D" parent="." index="8" unique_id=229613049]
[node name="Tree" type="Node3D" parent="." index="5" unique_id=229613049]
[node name="TreeTest3" parent="Tree" index="0" unique_id=1532527216 instance=ExtResource("11_rmmhu")]
transform = Transform3D(1.258351, 0, -1.1430457, 0, 1.7000003, 0, 1.1430457, 0, 1.258351, 8.469691, 0, -28.48431)
@@ -405,7 +383,7 @@ transform = Transform3D(70.71069, -70.71068, -3.0908614e-06, 0, -4.371139e-06, 1
[node name="MultiMeshInstance3D" parent="Tree/TreeTest32/Leaf" index="0" unique_id=153924119]
material_override = SubResource("ShaderMaterial_265s3")
[node name="Flower2" type="Node3D" parent="." index="9" unique_id=913717123]
[node name="Flower2" type="Node3D" parent="." index="6" unique_id=913717123]
[node name="Flower" parent="Flower2" index="0" unique_id=705935685 instance=ExtResource("12_horjc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.028124, 0, 9.384582)
@@ -521,9 +499,6 @@ transform = Transform3D(0.19438852, 0, 0.98092467, 0, 1, 0, -0.98092467, 0, 0.19
[node name="Flower36" parent="Flower2" index="37" unique_id=2100770937 instance=ExtResource("12_horjc")]
transform = Transform3D(0.71336067, 0, -0.7007972, 0, 1, 0, 0.7007972, 0, 0.71336067, 11.189318, 0, -27.307688)
[editable path="PaloLuce"]
[editable path="PaloLuce2"]
[editable path="PaloLuce3"]
[editable path="Tree/TreeTest3"]
[editable path="Tree/TreeTest4"]
[editable path="Tree/TreeTest5"]

Binary file not shown.

View File

@@ -0,0 +1,44 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://buv8xmfkpp4dr"
path="res://.godot/imported/chunk_river_cross_2.fbx-17f32db13905c0777aa18a65382353d3.scn"
[deps]
source_file="res://tgcc/chunk/river/mesh/chunk_river_cross_2.fbx"
dest_files=["res://.godot/imported/chunk_river_cross_2.fbx-17f32db13905c0777aa18a65382353d3.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=true
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
fbx/importer=0
fbx/allow_geometry_helper_nodes=false
fbx/embedded_image_handling=1
fbx/naming_version=2

Binary file not shown.

View File

@@ -0,0 +1,44 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://sqedn5gppjtc"
path="res://.godot/imported/chunk_river_straight_5.fbx-09ecb06acd6a4030b0e9e9e14b432b37.scn"
[deps]
source_file="res://tgcc/chunk/river/mesh/chunk_river_straight_5.fbx"
dest_files=["res://.godot/imported/chunk_river_straight_5.fbx-09ecb06acd6a4030b0e9e9e14b432b37.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=true
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
fbx/importer=0
fbx/allow_geometry_helper_nodes=false
fbx/embedded_image_handling=1
fbx/naming_version=2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -41,7 +41,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 0, 80)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -280, 0, -220)
[node name="Chunk_Rettilineo_12" parent="." unique_id=353270627 instance=ExtResource("2_e76ix")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -280, 0, -260)
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -380, 0, -320)
[node name="Chunk_Rettilineo_2" parent="." unique_id=1793918166 instance=ExtResource("2_e76ix")]
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -40, 0, 0)
@@ -161,7 +161,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -460, 0, -220)
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -260, 0, -180)
[node name="Chunk_Rettilineo_F3" parent="." unique_id=1719977594 instance=ExtResource("3_wf82y")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -280, 0, -240)
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, -360, 0, -320)
[node name="Chunk_Rettilineo_Ponte" parent="." unique_id=1180892866 instance=ExtResource("4_l8ggx")]
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -320, 0, 140)
@@ -182,7 +182,7 @@ transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -60,
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -180, 0, 140)
[node name="Blockout_Stazione3Hero" parent="." unique_id=149959015 instance=ExtResource("7_8nm7p")]
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -360, 0, -320)
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -280, 0, -240)
[node name="Blockout_Stazione3Hero2" parent="." unique_id=1050909298 instance=ExtResource("7_8nm7p")]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -560, 0, -80)