terrain3d test

This commit is contained in:
Luca 2024-10-15 16:52:49 +02:00
parent d437b4809f
commit a1a006caae
400 changed files with 23120 additions and 3 deletions

View file

@ -0,0 +1,63 @@
[gd_scene load_steps=12 format=3 uid="uid://cavbs8gurvpfh"]
[ext_resource type="Terrain3DStorage" uid="uid://c4h6ufb0esmas" path="res://worlds/terrain1/terrain1_storage.res" id="1_k1mvv"]
[ext_resource type="Terrain3DMaterial" uid="uid://c6ppgrnektc8g" path="res://worlds/terrain1/terrain1_material.tres" id="2_2cdhe"]
[ext_resource type="Terrain3DAssets" uid="uid://bh60t03kfpvux" path="res://worlds/terrain1/terrain1_assets.tres" id="3_5hdjg"]
[ext_resource type="PackedScene" uid="uid://dawpmu4vvv3rs" path="res://entities/monster_spawnpoint/monster_spawnpoint.tscn" id="4_l81pf"]
[ext_resource type="Script" path="res://entities/monster_spawnpoint/monster_spawnpoint_probability.gd" id="5_6bskj"]
[ext_resource type="Resource" uid="uid://0xqaef8uftnv" path="res://resources/monsters/debuggy.tres" id="6_of6wf"]
[ext_resource type="PackedScene" uid="uid://bi7vo3i6wsl2y" path="res://assets/models/environment/stylized_nature_kit_quaternius/plant7diedummekuh.glb" id="7_a22cv"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_4a17c"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
[sub_resource type="Sky" id="Sky_mvddp"]
sky_material = SubResource("ProceduralSkyMaterial_4a17c")
[sub_resource type="Environment" id="Environment_tunrb"]
background_mode = 2
sky = SubResource("Sky_mvddp")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="Resource" id="Resource_rgf8x"]
script = ExtResource("5_6bskj")
monster_data = ExtResource("6_of6wf")
chance = 100.0
[node name="Terrain1" type="Node3D"]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_tunrb")
[node name="Terrain3D" type="Terrain3D" parent="."]
storage = ExtResource("1_k1mvv")
material = ExtResource("2_2cdhe")
assets = ExtResource("3_5hdjg")
render_cast_shadows = 0
collision_layer = 2
collision_mask = 9
[node name="MonsterSpawnpoint" parent="." instance=ExtResource("4_l81pf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3621, 0, -15.1762)
spawnable_monsters = Array[ExtResource("5_6bskj")]([SubResource("Resource_rgf8x")])
[node name="MonsterSpawnpoint2" parent="." instance=ExtResource("4_l81pf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.129, 0, -9.60006)
spawnable_monsters = Array[ExtResource("5_6bskj")]([SubResource("Resource_rgf8x")])
[node name="MonsterSpawnpoint3" parent="." instance=ExtResource("4_l81pf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 37.0513, 4.65929, 13.587)
spawnable_monsters = Array[ExtResource("5_6bskj")]([SubResource("Resource_rgf8x")])
[node name="MonsterSpawnpoint4" parent="." instance=ExtResource("4_l81pf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8614, 1.04235, 27.0149)
spawnable_monsters = Array[ExtResource("5_6bskj")]([SubResource("Resource_rgf8x")])
[node name="plant7diedummekuh" parent="." instance=ExtResource("7_a22cv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.02146, 0, 1.29385)

View file

@ -0,0 +1,33 @@
[gd_resource type="Terrain3DAssets" load_steps=9 format=3 uid="uid://bh60t03kfpvux"]
[ext_resource type="Texture2D" uid="uid://sofgexkx8m2k" path="res://worlds/terrain1/textures/rock_030/rock030_packed_albedo_height.png" id="1_i4gqd"]
[ext_resource type="Texture2D" uid="uid://ckr6jrefpdhmb" path="res://worlds/terrain1/textures/rock_030/rock30_packed_normal_roughness.png" id="2_et80k"]
[ext_resource type="Texture2D" uid="uid://wsd38lb6nwke" path="res://worlds/terrain1/textures/grass_001/grass_001_packed_albedo_height.png" id="3_s3c4a"]
[ext_resource type="Texture2D" uid="uid://dwwq48fl57us3" path="res://worlds/terrain1/textures/grass_001/grass_001_packed_normal_roughness.png" id="4_itqpy"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_k58i2"]
cull_mode = 2
vertex_color_use_as_albedo = true
backlight_enabled = true
backlight = Color(0.5, 0.5, 0.5, 1)
[sub_resource type="Terrain3DMeshAsset" id="Terrain3DMeshAsset_jsol1"]
height_offset = 0.5
density = 10.0
material_override = SubResource("StandardMaterial3D_k58i2")
generated_type = 1
[sub_resource type="Terrain3DTextureAsset" id="Terrain3DTextureAsset_xsor5"]
name = "grass_001_packed_albedo_height"
albedo_texture = ExtResource("3_s3c4a")
normal_texture = ExtResource("4_itqpy")
[sub_resource type="Terrain3DTextureAsset" id="Terrain3DTextureAsset_blj65"]
name = "rock030_packed_albedo_height"
id = 1
albedo_texture = ExtResource("1_i4gqd")
normal_texture = ExtResource("2_et80k")
[resource]
mesh_list = Array[Terrain3DMeshAsset]([SubResource("Terrain3DMeshAsset_jsol1")])
texture_list = Array[Terrain3DTextureAsset]([SubResource("Terrain3DTextureAsset_xsor5"), SubResource("Terrain3DTextureAsset_blj65")])

View file

@ -0,0 +1,38 @@
[gd_resource type="Terrain3DMaterial" load_steps=4 format=3 uid="uid://c6ppgrnektc8g"]
[sub_resource type="Gradient" id="Gradient_73pyr"]
offsets = PackedFloat32Array(0.2, 1)
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_7a7wb"]
noise_type = 2
frequency = 0.03
cellular_jitter = 3.0
cellular_return_type = 0
domain_warp_enabled = true
domain_warp_type = 1
domain_warp_amplitude = 50.0
domain_warp_fractal_type = 2
domain_warp_fractal_lacunarity = 1.5
domain_warp_fractal_gain = 1.0
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_i4bum"]
seamless = true
color_ramp = SubResource("Gradient_73pyr")
noise = SubResource("FastNoiseLite_7a7wb")
[resource]
_shader_parameters = {
"blend_sharpness": 0.87,
"height_blending": true,
"macro_variation1": Color(1, 1, 1, 1),
"macro_variation2": Color(1, 1, 1, 1),
"noise1_angle": 0.0,
"noise1_offset": Vector2(0.5, 0.5),
"noise1_scale": 0.04,
"noise2_scale": 0.076,
"noise3_scale": 0.225,
"noise_texture": SubResource("NoiseTexture2D_i4bum"),
"vertex_normals_distance": 128.0
}
world_background = 0

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2wjfbl54qy7h"
path="res://.godot/imported/Grass001_1K-PNG_Color.png-ca0a445c095de6febf0b868c703a4793.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/Grass001_1K-PNG_Color.png"
dest_files=["res://.godot/imported/Grass001_1K-PNG_Color.png-ca0a445c095de6febf0b868c703a4793.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://by4p3rt2vpphc"
path="res://.godot/imported/Grass001_1K-PNG_Displacement.png-a8af31a9251708ac194fadcd8b7b9de2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/Grass001_1K-PNG_Displacement.png"
dest_files=["res://.godot/imported/Grass001_1K-PNG_Displacement.png-a8af31a9251708ac194fadcd8b7b9de2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d28w3g8iexdl7"
path="res://.godot/imported/Grass001_1K-PNG_NormalGL.png-284e79525319cf8b9f1a23fd8e29a5f7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/Grass001_1K-PNG_NormalGL.png"
dest_files=["res://.godot/imported/Grass001_1K-PNG_NormalGL.png-284e79525319cf8b9f1a23fd8e29a5f7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://y2xk5h7oyogt"
path="res://.godot/imported/Grass001_1K-PNG_Roughness.png-85c6c5d4c4956f613d0910a635d5a792.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/Grass001_1K-PNG_Roughness.png"
dest_files=["res://.godot/imported/Grass001_1K-PNG_Roughness.png-85c6c5d4c4956f613d0910a635d5a792.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://wsd38lb6nwke"
path.s3tc="res://.godot/imported/grass_001_packed_albedo_height.png-c7db96c429baa5ae06a183fc4c52cb17.s3tc.ctex"
path.etc2="res://.godot/imported/grass_001_packed_albedo_height.png-c7db96c429baa5ae06a183fc4c52cb17.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/grass_001_packed_albedo_height.png"
dest_files=["res://.godot/imported/grass_001_packed_albedo_height.png-c7db96c429baa5ae06a183fc4c52cb17.s3tc.ctex", "res://.godot/imported/grass_001_packed_albedo_height.png-c7db96c429baa5ae06a183fc4c52cb17.etc2.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=2
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

View file

@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwwq48fl57us3"
path.s3tc="res://.godot/imported/grass_001_packed_normal_roughness.png-6a0368d7f5ad5c8592aae981ff9760f4.s3tc.ctex"
path.etc2="res://.godot/imported/grass_001_packed_normal_roughness.png-6a0368d7f5ad5c8592aae981ff9760f4.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
[deps]
source_file="res://worlds/terrain1/textures/grass_001/grass_001_packed_normal_roughness.png"
dest_files=["res://.godot/imported/grass_001_packed_normal_roughness.png-6a0368d7f5ad5c8592aae981ff9760f4.s3tc.ctex", "res://.godot/imported/grass_001_packed_normal_roughness.png-6a0368d7f5ad5c8592aae981ff9760f4.etc2.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=2
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://crku1nxbu2hmx"
path="res://.godot/imported/Rock030_1K-PNG_Color.png-42ae620489daa5d2a41c2d27a634d175.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/Rock030_1K-PNG_Color.png"
dest_files=["res://.godot/imported/Rock030_1K-PNG_Color.png-42ae620489daa5d2a41c2d27a634d175.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://csx4na7h667u2"
path="res://.godot/imported/Rock030_1K-PNG_Displacement.png-06118eb447dc3cb3533fe5d4b016df02.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/Rock030_1K-PNG_Displacement.png"
dest_files=["res://.godot/imported/Rock030_1K-PNG_Displacement.png-06118eb447dc3cb3533fe5d4b016df02.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dhhq8dhhoow6y"
path="res://.godot/imported/Rock030_1K-PNG_NormalGL.png-77a1409b9b4a554282e591f68b96e74e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/Rock030_1K-PNG_NormalGL.png"
dest_files=["res://.godot/imported/Rock030_1K-PNG_NormalGL.png-77a1409b9b4a554282e591f68b96e74e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://yyswf1lc60w8"
path="res://.godot/imported/Rock030_1K-PNG_Roughness.png-39ba57eee3bbcfda16d05a2f09d4efde.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/Rock030_1K-PNG_Roughness.png"
dest_files=["res://.godot/imported/Rock030_1K-PNG_Roughness.png-39ba57eee3bbcfda16d05a2f09d4efde.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View file

@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://sofgexkx8m2k"
path.s3tc="res://.godot/imported/rock030_packed_albedo_height.png-f4329fcc6ef1d6ac019f92104550396d.s3tc.ctex"
path.etc2="res://.godot/imported/rock030_packed_albedo_height.png-f4329fcc6ef1d6ac019f92104550396d.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/rock030_packed_albedo_height.png"
dest_files=["res://.godot/imported/rock030_packed_albedo_height.png-f4329fcc6ef1d6ac019f92104550396d.s3tc.ctex", "res://.godot/imported/rock030_packed_albedo_height.png-f4329fcc6ef1d6ac019f92104550396d.etc2.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=2
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

View file

@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckr6jrefpdhmb"
path.s3tc="res://.godot/imported/rock30_packed_normal_roughness.png-9fc952dff901752b9f72b77b6c93ac14.s3tc.ctex"
path.etc2="res://.godot/imported/rock30_packed_normal_roughness.png-9fc952dff901752b9f72b77b6c93ac14.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
[deps]
source_file="res://worlds/terrain1/textures/rock_030/rock30_packed_normal_roughness.png"
dest_files=["res://.godot/imported/rock30_packed_normal_roughness.png-9fc952dff901752b9f72b77b6c93ac14.s3tc.ctex", "res://.godot/imported/rock30_packed_normal_roughness.png-9fc952dff901752b9f72b77b6c93ac14.etc2.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=2
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1