From 26415d409384cbf02ede5d2bcd17e4d1a5981077 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Sat, 20 Jan 2024 14:46:13 -0800 Subject: [PATCH] A better test environment --- test_world.tscn | 103 ++++++++++++++++++++++++++++--------- textures/dark.png | Bin 0 -> 2774 bytes textures/dark.png.import | 35 +++++++++++++ textures/green.png | Bin 0 -> 2774 bytes textures/green.png.import | 35 +++++++++++++ textures/orange.png | Bin 0 -> 2774 bytes textures/orange.png.import | 35 +++++++++++++ textures/purple.png | Bin 0 -> 2774 bytes textures/purple.png.import | 34 ++++++++++++ textures/red.png | Bin 0 -> 2774 bytes textures/red.png.import | 34 ++++++++++++ 11 files changed, 253 insertions(+), 23 deletions(-) create mode 100644 textures/dark.png create mode 100644 textures/dark.png.import create mode 100644 textures/green.png create mode 100644 textures/green.png.import create mode 100644 textures/orange.png create mode 100644 textures/orange.png.import create mode 100644 textures/purple.png create mode 100644 textures/purple.png.import create mode 100644 textures/red.png create mode 100644 textures/red.png.import diff --git a/test_world.tscn b/test_world.tscn index 1a1e25e..b6901b9 100644 --- a/test_world.tscn +++ b/test_world.tscn @@ -1,22 +1,9 @@ -[gd_scene load_steps=9 format=3 uid="uid://cs4drhmc1bql5"] +[gd_scene load_steps=15 format=3 uid="uid://cs4drhmc1bql5"] [ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_e18vq"] - -[sub_resource type="Gradient" id="Gradient_ur0vy"] -colors = PackedColorArray(0, 0.476245, 0.0193456, 1, 0.360494, 0.612721, 0.119744, 1) - -[sub_resource type="FastNoiseLite" id="FastNoiseLite_jd3pw"] -frequency = 0.005 - -[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7akuf"] -width = 1024 -height = 1024 -in_3d_space = true -color_ramp = SubResource("Gradient_ur0vy") -noise = SubResource("FastNoiseLite_jd3pw") - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_67ysu"] -albedo_texture = SubResource("NoiseTexture2D_7akuf") +[ext_resource type="Texture2D" uid="uid://pe7a4weirj2g" path="res://textures/dark.png" id="2_08fdt"] +[ext_resource type="Texture2D" uid="uid://cxjxvqmf4boxq" path="res://textures/green.png" id="3_q4clv"] +[ext_resource type="Texture2D" uid="uid://dsv4jm4vydflb" path="res://textures/orange.png" id="4_1ns5t"] [sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_edcox"] ground_color = Color(0.160784, 0.815686, 0.905882, 1) @@ -30,15 +17,53 @@ sky = SubResource("Sky_2iust") tonemap_mode = 1 ssao_enabled = true +[sub_resource type="Gradient" id="Gradient_ur0vy"] +colors = PackedColorArray(0, 0.476245, 0.0193456, 1, 0.360494, 0.612721, 0.119744, 1) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_jd3pw"] +frequency = 0.0027 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7akuf"] +width = 1024 +height = 1024 +in_3d_space = true +seamless = true +color_ramp = SubResource("Gradient_ur0vy") +noise = SubResource("FastNoiseLite_jd3pw") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_67ysu"] +albedo_texture = SubResource("NoiseTexture2D_7akuf") +uv1_scale = Vector3(0.1, 0.1, 0.1) +uv1_triplanar = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gomnb"] +albedo_texture = ExtResource("2_08fdt") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u0sbk"] +albedo_texture = ExtResource("3_q4clv") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7j4uu"] +albedo_texture = ExtResource("4_1ns5t") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + [node name="test_world" type="Node3D"] [node name="Character" parent="." instance=ExtResource("1_e18vq")] - -[node name="CSGBox3D" type="CSGBox3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) -use_collision = true -size = Vector3(10, 1, 10) -material = SubResource("StandardMaterial3D_67ysu") +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_20rw3") @@ -47,3 +72,35 @@ environment = SubResource("Environment_20rw3") transform = Transform3D(0.87959, -0.436605, 0.188936, 0, 0.397148, 0.917755, -0.475732, -0.807248, 0.349328, 0, 0, 0) light_energy = 2.0 shadow_enabled = true + +[node name="terrain" type="Node3D" parent="."] + +[node name="CSGBox3D" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -0.5, 10) +use_collision = true +size = Vector3(30, 1, 30) +material = SubResource("StandardMaterial3D_67ysu") + +[node name="CSGBox3D2" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -10) +use_collision = true +size = Vector3(10, 1, 10) +material = SubResource("StandardMaterial3D_gomnb") + +[node name="CSGBox3D3" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 1.8, -13) +use_collision = true +size = Vector3(4, 0.5, 4) +material = SubResource("StandardMaterial3D_gomnb") + +[node name="CSGBox3D4" type="CSGBox3D" parent="terrain"] +transform = Transform3D(0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 0, 0, 1, -9.5, 1.2, -10) +use_collision = true +size = Vector3(10, 1, 10) +material = SubResource("StandardMaterial3D_u0sbk") + +[node name="CSGBox3D5" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, 3, -15.5) +use_collision = true +size = Vector3(19, 8, 1) +material = SubResource("StandardMaterial3D_7j4uu") diff --git a/textures/dark.png b/textures/dark.png new file mode 100644 index 0000000000000000000000000000000000000000..69be2111ccdf84505de4f29ccf49925419687a21 GIT binary patch literal 2774 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7+9ErRIjnw1`sdZ(btiIVPik{pF~z5UnsyQ z#5FQ9Iy*ZzIy%?SW>G0y07%hb7@#gx81K zSnK+f_xa2gjAWQGss$JV8@L;GA1&IpmGj*GP2aaO&KV69GDF}7>wz~Lr#$$*tL)#2 zd-vH2n8-9|gljWn`rz@3VS;Rf@B{u49u(wze>TGm+i5~I@z>AE-~4@>!H;~CM!3#5 zOb_xl&dJSf`n>+l-&_Xu5gr`md%uj)pjt=u$G&xQ?MJH_vV*aqm%(O|RlR}lA(4rz Rz3za_@pScbS?83{1OOF$a6JG3 literal 0 HcmV?d00001 diff --git a/textures/dark.png.import b/textures/dark.png.import new file mode 100644 index 0000000..2a82a3f --- /dev/null +++ b/textures/dark.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://pe7a4weirj2g" +path.s3tc="res://.godot/imported/dark.png-6d46f668c80e231a58e570df85aad257.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/dark.png" +dest_files=["res://.godot/imported/dark.png-6d46f668c80e231a58e570df85aad257.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/textures/green.png b/textures/green.png new file mode 100644 index 0000000000000000000000000000000000000000..7bc7cf8a0cf93d4fbf0262ce1520930d62d6faa9 GIT binary patch literal 2774 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7+9ErRIjnw1`sdZ(btiIVPik{pF~z5UnsyQ z#MSNogs8`JJswOly3_Li|9|P5<^@qwZ7b)w{hPjTXPh${C}f7f4b}s1Hcol)dso@N z6Zh`36)=%$&Is3L#`MAC6~hGC2H^+%BRnX`_x@~#8Mf1eYT~b-lfU`gX>LWZj$oGC3qd~Qf>W_Wv=Gu=|Gh_#2Lob8PB&&J@-$No3 SS9{$7nd9l|=d#Wzp$P!)HguB! literal 0 HcmV?d00001 diff --git a/textures/green.png.import b/textures/green.png.import new file mode 100644 index 0000000..7c7e044 --- /dev/null +++ b/textures/green.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cxjxvqmf4boxq" +path.s3tc="res://.godot/imported/green.png-b4f8ddc6b00d4e627f0e027e2e1193bf.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/green.png" +dest_files=["res://.godot/imported/green.png-b4f8ddc6b00d4e627f0e027e2e1193bf.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/textures/orange.png b/textures/orange.png new file mode 100644 index 0000000000000000000000000000000000000000..dec5b59cc01a269635586fa27586d6b40e511fd0 GIT binary patch literal 2774 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7+9ErRIjnw1`sdZ(btiIVPik{pF~z5UnsyQ z#P$C|!~bjC|1UQFKV9lS5cDwU@z^CYFmUC2x;TbZ+A`@48 Q-2s{7>FVdQ&MBb@0EF*zl>h($ literal 0 HcmV?d00001 diff --git a/textures/orange.png.import b/textures/orange.png.import new file mode 100644 index 0000000..311f8ac --- /dev/null +++ b/textures/orange.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dsv4jm4vydflb" +path.s3tc="res://.godot/imported/orange.png-6785d3f8216fd22318e8ea839823715b.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/orange.png" +dest_files=["res://.godot/imported/orange.png-6785d3f8216fd22318e8ea839823715b.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/textures/purple.png b/textures/purple.png new file mode 100644 index 0000000000000000000000000000000000000000..48a51c1700f525cb537c3a78fa1fa86054cc41ed GIT binary patch literal 2774 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7+9ErRIjnw1`sdZ(btiIVPik{pF~z5UnsyQ z#C3zuuN?`$H~9TtZt?5?|NnE9e)-=%vWbC#E8o+_F{I+w+iM4T4=eDnUhv2fFmrgx za)H%pm*ejLTC#`OC;a&*8yR1<$x_a9?&HthPi1TVM_K=$z1JRS_9!4D1aepszD0O_ zsExI*PkEouY{5u|8KYW&A+UkFVfWFZZCg3d?cel$JL8M4b4Iu}Go}w7uNWrCHV8l9AK^hkzV~M{%&?s%R1<&woczt-w;BA%H)(|H ze8co0Z{wWY+@{a#-~7#GP#@vJLB99P7!9g*RDbMSH`ji&njt$F8+sXRCRx=R_#P6O SxZ3Lu$Q(~sKbLh*2~7YsLv|ei literal 0 HcmV?d00001 diff --git a/textures/purple.png.import b/textures/purple.png.import new file mode 100644 index 0000000..9dc0969 --- /dev/null +++ b/textures/purple.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cl4kewig3pk7s" +path="res://.godot/imported/purple.png-23488e84f4f0a47488be2c78494f2155.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/purple.png" +dest_files=["res://.godot/imported/purple.png-23488e84f4f0a47488be2c78494f2155.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 diff --git a/textures/red.png b/textures/red.png new file mode 100644 index 0000000000000000000000000000000000000000..bf1cb173ba132270f0d3e2a0d98a487927b652f0 GIT binary patch literal 2774 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7+9ErRIjnw1`sdZ(btiIVPik{pF~z5UnsyQ z#Pz>n+<*7{|HkqErF{Ma0fWVkpkgKl2CjTh7srr_TW_x&{~b2ezck)J2^D;GT2PAsyFaGBrzopr0Ij8R*Z=?k literal 0 HcmV?d00001 diff --git a/textures/red.png.import b/textures/red.png.import new file mode 100644 index 0000000..c8c15aa --- /dev/null +++ b/textures/red.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d1h161t0v6hau" +path="res://.godot/imported/red.png-3cad0ca19141406d60f5fd2311159a86.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/red.png" +dest_files=["res://.godot/imported/red.png-3cad0ca19141406d60f5fd2311159a86.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