feat: Change pavement & texturize

This commit is contained in:
Dendy 2026-03-05 23:12:50 +01:00
parent a5c1d211ad
commit 2b309da90a
14 changed files with 307 additions and 5 deletions

View File

@ -0,0 +1,21 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bg53mkecyq7sk"]
[ext_resource type="Texture2D" uid="uid://baythxq70k2ud" path="res://assets/Images/pavement/PavingStones074_1K-JPG_AmbientOcclusion.jpg" id="AmbientOcclusion"]
[ext_resource type="Texture2D" uid="uid://uhin1s6yxdvm" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Color.jpg" id="Color"]
[ext_resource type="Texture2D" uid="uid://bgjlj84sjycr4" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Displacement.jpg" id="Displacement"]
[ext_resource type="Texture2D" uid="uid://b5wh17v55dajm" path="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg" id="NormalGL"]
[ext_resource type="Texture2D" uid="uid://wutu5iep0s3b" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Roughness.jpg" id="Roughness"]
[resource]
albedo_texture = ExtResource("Color")
roughness_texture = ExtResource("Roughness")
roughness_texture_channel = 4
normal_enabled = true
normal_texture = ExtResource("NormalGL")
ao_enabled = true
ao_texture = ExtResource("AmbientOcclusion")
ao_texture_channel = 4
heightmap_enabled = true
heightmap_scale = 1.0
heightmap_texture = ExtResource("Displacement")
uv1_scale = Vector3(22.333, 17.37, 22.625)

View File

@ -0,0 +1,21 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://pi37nbc20kiw"]
[ext_resource type="Texture2D" uid="uid://uhin1s6yxdvm" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Color.jpg" id="1_movv3"]
[ext_resource type="Texture2D" uid="uid://baythxq70k2ud" path="res://assets/Images/pavement/PavingStones074_1K-JPG_AmbientOcclusion.jpg" id="2_qtsmd"]
[ext_resource type="Texture2D" uid="uid://bgjlj84sjycr4" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Displacement.jpg" id="3_g005f"]
[ext_resource type="Texture2D" uid="uid://b5wh17v55dajm" path="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg" id="4_uxvby"]
[ext_resource type="Texture2D" uid="uid://wutu5iep0s3b" path="res://assets/Images/pavement/PavingStones074_1K-JPG_Roughness.jpg" id="5_4k0kd"]
[resource]
albedo_texture = ExtResource("1_movv3")
roughness_texture = ExtResource("5_4k0kd")
roughness_texture_channel = 4
normal_enabled = true
normal_texture = ExtResource("4_uxvby")
ao_enabled = true
ao_texture = ExtResource("2_qtsmd")
ao_texture_channel = 4
heightmap_enabled = true
heightmap_scale = 1.0
heightmap_texture = ExtResource("3_g005f")
uv1_scale = Vector3(22.333, 35.145, 22.35)

Binary file not shown.

View File

@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://baythxq70k2ud"
path.s3tc="res://.godot/imported/PavingStones074_1K-JPG_AmbientOcclusion.jpg-6de0de4bdd0e16ffed1a0604334cbe06.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Images/pavement/PavingStones074_1K-JPG_AmbientOcclusion.jpg"
dest_files=["res://.godot/imported/PavingStones074_1K-JPG_AmbientOcclusion.jpg-6de0de4bdd0e16ffed1a0604334cbe06.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=8
roughness/src_normal="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg"
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=0

BIN
assets/Images/pavement/PavingStones074_1K-JPG_Color.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://uhin1s6yxdvm"
path.s3tc="res://.godot/imported/PavingStones074_1K-JPG_Color.jpg-13c1dbf40ab4bc793b818eae6beba097.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Images/pavement/PavingStones074_1K-JPG_Color.jpg"
dest_files=["res://.godot/imported/PavingStones074_1K-JPG_Color.jpg-13c1dbf40ab4bc793b818eae6beba097.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=0

Binary file not shown.

View File

@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bgjlj84sjycr4"
path.s3tc="res://.godot/imported/PavingStones074_1K-JPG_Displacement.jpg-a29c70781d462c14bfb0134541962aca.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Images/pavement/PavingStones074_1K-JPG_Displacement.jpg"
dest_files=["res://.godot/imported/PavingStones074_1K-JPG_Displacement.jpg-a29c70781d462c14bfb0134541962aca.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=7
roughness/src_normal="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg"
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=0

BIN
assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b5wh17v55dajm"
path.s3tc="res://.godot/imported/PavingStones074_1K-JPG_NormalGL.jpg-96eab16b3ba34f6a8bd894453cc7d375.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg"
dest_files=["res://.godot/imported/PavingStones074_1K-JPG_NormalGL.jpg-96eab16b3ba34f6a8bd894453cc7d375.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/Images/pavement/PavingStones074_1K-JPG_NormalGL.jpg"
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=0

BIN
assets/Images/pavement/PavingStones074_1K-JPG_Roughness.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://wutu5iep0s3b"
path.s3tc="res://.godot/imported/PavingStones074_1K-JPG_Roughness.jpg-ee804b9389ae02541489c0d4c407358f.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Images/pavement/PavingStones074_1K-JPG_Roughness.jpg"
dest_files=["res://.godot/imported/PavingStones074_1K-JPG_Roughness.jpg-ee804b9389ae02541489c0d4c407358f.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=0

View File

@ -31,6 +31,11 @@ func _ready() -> void:
$BuildingAreas.add_child(new_area) $BuildingAreas.add_child(new_area)
func update() -> void: func update() -> void:
$BuildingAreas/B_area_N/Building.visible = true
$BuildingAreas/B_area_S/Building.visible = true
$BuildingAreas/B_area_E/Building.visible = true
$BuildingAreas/B_area_W/Building.visible = true
var i = 0 var i = 0
for exit in exits: for exit in exits:
if not exit: if not exit:
@ -39,15 +44,15 @@ func update() -> void:
if i == 0: #n if i == 0: #n
$BuildingAreas/B_area_N/Collision.disabled = true $BuildingAreas/B_area_N/Collision.disabled = true
$BuildingAreas/B_area_N.visible = false $BuildingAreas/B_area_N/Building.visible = false
if i == 1: #s if i == 1: #s
$BuildingAreas/B_area_S/Collision.disabled = true $BuildingAreas/B_area_S/Collision.disabled = true
$BuildingAreas/B_area_S.visible = false $BuildingAreas/B_area_S/Building.visible = false
if i == 2: #w if i == 2: #w
$BuildingAreas/B_area_W/Collision.disabled = true $BuildingAreas/B_area_W/Collision.disabled = true
$BuildingAreas/B_area_W.visible = false $BuildingAreas/B_area_W/Building.visible = false
if i == 3: #e if i == 3: #e
$BuildingAreas/B_area_E/Collision.disabled = true $BuildingAreas/B_area_E/Collision.disabled = true
$BuildingAreas/B_area_E.visible = false $BuildingAreas/B_area_E/Building.visible = false
i += 1 i += 1

View File

@ -2,12 +2,14 @@
[ext_resource type="Script" uid="uid://ndadug5eerju" path="res://chunk.gd" id="1_kdh3y"] [ext_resource type="Script" uid="uid://ndadug5eerju" path="res://chunk.gd" id="1_kdh3y"]
[ext_resource type="PackedScene" uid="uid://da60ofnpg72ua" path="res://building.tscn" id="2_eat54"] [ext_resource type="PackedScene" uid="uid://da60ofnpg72ua" path="res://building.tscn" id="2_eat54"]
[ext_resource type="Material" uid="uid://bg53mkecyq7sk" path="res://assets/Images/pavement/PavingStones074_1K-JPG.tres" id="3_a0kup"]
[ext_resource type="Material" uid="uid://pi37nbc20kiw" path="res://assets/Images/pavement/PavingStones074_1K-JPG2.tres" id="4_7yqgf"]
[sub_resource type="PlaneMesh" id="PlaneMesh_kdh3y"] [sub_resource type="PlaneMesh" id="PlaneMesh_kdh3y"]
size = Vector2(150, 150) size = Vector2(150, 150)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_eoxb4"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_eoxb4"]
albedo_color = Color(0.47398567, 0.32202998, 0.25116646, 1) albedo_color = Color(0, 0, 0, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kdh3y"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kdh3y"]
albedo_color = Color(0, 0, 1, 1) albedo_color = Color(0, 0, 1, 1)
@ -31,9 +33,19 @@ albedo_color = Color(0, 0, 1, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_kdh3y"] [sub_resource type="BoxShape3D" id="BoxShape3D_kdh3y"]
size = Vector3(55, 50, 55) size = Vector3(55, 50, 55)
[sub_resource type="BoxMesh" id="BoxMesh_381vs"]
lightmap_size_hint = Vector2i(479, 391)
material = ExtResource("3_a0kup")
size = Vector3(65, 1, 65)
[sub_resource type="BoxShape3D" id="BoxShape3D_a0kup"] [sub_resource type="BoxShape3D" id="BoxShape3D_a0kup"]
size = Vector3(55, 50, 40) size = Vector3(55, 50, 40)
[sub_resource type="BoxMesh" id="BoxMesh_7yqgf"]
lightmap_size_hint = Vector2i(479, 391)
material = ExtResource("4_7yqgf")
size = Vector3(65, 1, 65)
[node name="Chunk" type="Node3D" unique_id=1195945545] [node name="Chunk" type="Node3D" unique_id=1195945545]
script = ExtResource("1_kdh3y") script = ExtResource("1_kdh3y")
@ -78,7 +90,12 @@ debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785)
[node name="Building" parent="BuildingAreas/B_area" unique_id=228050854 instance=ExtResource("2_eat54")] [node name="Building" parent="BuildingAreas/B_area" unique_id=228050854 instance=ExtResource("2_eat54")]
transform = Transform3D(1.0948861, 0, 0, 0, 1.0948861, 0, 0, 0, 1.0948861, 47.70289, 2.3668175, 47.375614) transform = Transform3D(1.0948861, 0, 0, 0, 1.0948861, 0, 0, 0, 1.0948861, 47.70289, 2.3668175, 47.375614)
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area/Building" unique_id=1041049709]
transform = Transform3D(0.9133367, 0, 0, 0, 0.9133367, 0, 0, 0, 0.9133367, -4.9015274, -2.236999, -4.4171753)
mesh = SubResource("BoxMesh_381vs")
[node name="B_area_E" type="StaticBody3D" parent="BuildingAreas" unique_id=164651542] [node name="B_area_E" type="StaticBody3D" parent="BuildingAreas" unique_id=164651542]
visible = false
[node name="Collision" type="CollisionShape3D" parent="BuildingAreas/B_area_E" unique_id=2080946797] [node name="Collision" type="CollisionShape3D" parent="BuildingAreas/B_area_E" unique_id=2080946797]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 0)
@ -87,6 +104,10 @@ shape = SubResource("BoxShape3D_a0kup")
[node name="Building" parent="BuildingAreas/B_area_E" unique_id=496327803 instance=ExtResource("2_eat54")] [node name="Building" parent="BuildingAreas/B_area_E" unique_id=496327803 instance=ExtResource("2_eat54")]
transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0) transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_E/Building" unique_id=2097051923]
transform = Transform3D(0.7908016, 0, 0, 0, 0.9999995, 0, 0, 0, 2.8399127, -7.5103607, -2.0044072, 0)
mesh = SubResource("BoxMesh_7yqgf")
[node name="B_area_W" type="StaticBody3D" parent="BuildingAreas" unique_id=1412614477] [node name="B_area_W" type="StaticBody3D" parent="BuildingAreas" unique_id=1412614477]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0) transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0)
@ -97,6 +118,10 @@ shape = SubResource("BoxShape3D_a0kup")
[node name="Building" parent="BuildingAreas/B_area_W" unique_id=1691268780 instance=ExtResource("2_eat54")] [node name="Building" parent="BuildingAreas/B_area_W" unique_id=1691268780 instance=ExtResource("2_eat54")]
transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0) transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_W/Building" unique_id=1625091819]
transform = Transform3D(0.7908016, 0, 0, 0, 0.9999995, 0, 0, 0, 2.8399127, -7.5103607, -2.0044072, 0)
mesh = SubResource("BoxMesh_7yqgf")
[node name="B_area_S" type="StaticBody3D" parent="BuildingAreas" unique_id=1192841263] [node name="B_area_S" type="StaticBody3D" parent="BuildingAreas" unique_id=1192841263]
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 0, 0, 0) transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 0, 0, 0)
@ -106,6 +131,11 @@ shape = SubResource("BoxShape3D_a0kup")
[node name="Building" parent="BuildingAreas/B_area_S" unique_id=819634987 instance=ExtResource("2_eat54")] [node name="Building" parent="BuildingAreas/B_area_S" unique_id=819634987 instance=ExtResource("2_eat54")]
transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0) transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0)
visible = false
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_S/Building" unique_id=1325249889]
transform = Transform3D(0.7908016, 0, 0, 0, 0.9999995, 0, 0, 0, 2.8399127, -7.5103607, -2.0044072, 0)
mesh = SubResource("BoxMesh_7yqgf")
[node name="B_area_N" type="StaticBody3D" parent="BuildingAreas" unique_id=1360962540] [node name="B_area_N" type="StaticBody3D" parent="BuildingAreas" unique_id=1360962540]
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 0) transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 0)
@ -116,3 +146,8 @@ shape = SubResource("BoxShape3D_a0kup")
[node name="Building" parent="BuildingAreas/B_area_N" unique_id=737365486 instance=ExtResource("2_eat54")] [node name="Building" parent="BuildingAreas/B_area_N" unique_id=737365486 instance=ExtResource("2_eat54")]
transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0) transform = Transform3D(1.1296118, 0, 0, 0, 1.0989345, 0, 0, 0, 0.8093087, 47.032215, 2.198969, 0)
visible = false
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_N/Building" unique_id=1889416504]
transform = Transform3D(0.7908016, 0, 0, 0, 0.9999995, 0, 0, 0, 2.8399127, -7.5103607, -2.0044072, 0)
mesh = SubResource("BoxMesh_7yqgf")