Quellcode durchsuchen

:art: Set up sky and global lights

DricomDragon vor 1 Jahr
Ursprung
Commit
f7d9acfd6a

+ 4 - 0
README.md

@@ -4,6 +4,10 @@ A 3D game where you drive vehicles to get chocolate.
 
 ## :copyright: Credits
 
+### Graphics
+
+- Cloud sky box from SuperTuxKart, [made by MiniBjorn and available at OpenGameArt.org](https://opengameart.org/content/cloudy-sky).
+
 ### Musics
 
 - "Wesh tone Realaze" of Hiphop domain

BIN
godot/effect/sky/sky_stk.jpg


+ 35 - 0
godot/effect/sky/sky_stk.jpg.import

@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://daewyr44tkkm0"
+path.s3tc="res://.godot/imported/sky_stk.jpg-2ff2a21efbb5ba6c1636c62bfae92784.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://effect/sky/sky_stk.jpg"
+dest_files=["res://.godot/imported/sky_stk.jpg-2ff2a21efbb5ba6c1636c62bfae92784.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

+ 41 - 9
godot/run/levels/infinite_level.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=18 format=3 uid="uid://7ivipmwaw24t"]
+[gd_scene load_steps=22 format=3 uid="uid://7ivipmwaw24t"]
 
 [ext_resource type="Texture2D" uid="uid://cgwafs6ukpm7y" path="res://component/entity/ground/ground051.jpg" id="1_3ytcp"]
 [ext_resource type="Script" path="res://run/levels/camera_tracker.gd" id="1_qdm47"]
@@ -14,6 +14,7 @@
 [ext_resource type="PackedScene" uid="uid://bwhwbm6jrvg42" path="res://component/entity/buildings/outer_stairs_house/outer_stairs_house.tscn" id="11_j8m6y"]
 [ext_resource type="PackedScene" uid="uid://cxdvll60r67q8" path="res://component/entity/buildings/character_sign_choco/character_sign_choco.tscn" id="13_2x2n6"]
 [ext_resource type="PackedScene" uid="uid://uy3pgfv4q3iy" path="res://component/ui/title/title_screen.tscn" id="13_2xijd"]
+[ext_resource type="Texture2D" uid="uid://daewyr44tkkm0" path="res://effect/sky/sky_stk.jpg" id="15_5bqty"]
 
 [sub_resource type="BoxShape3D" id="BoxShape3D_ctk0t"]
 size = Vector3(500, 10, 500)
@@ -29,21 +30,36 @@ material = SubResource("StandardMaterial3D_ot7iy")
 size = Vector2(500, 500)
 orientation = 1
 
+[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_me3fv"]
+panorama = ExtResource("15_5bqty")
+filter = false
+
+[sub_resource type="Sky" id="Sky_ix450"]
+sky_material = SubResource("PanoramaSkyMaterial_me3fv")
+
+[sub_resource type="Environment" id="Environment_jdyq3"]
+background_mode = 2
+background_color = Color(0, 0.690196, 0, 1)
+background_energy_multiplier = 1.12
+sky = SubResource("Sky_ix450")
+ambient_light_color = Color(1, 1, 1, 1)
+ambient_light_sky_contribution = 0.0
+ambient_light_energy = 0.5
+
 [node name="InfiniteLevel" type="Node3D"]
 
 [node name="Ground" type="StaticBody3D" parent="."]
 collision_mask = 0
+metadata/_edit_lock_ = true
 
 [node name="Shape" type="CollisionShape3D" parent="Ground"]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0)
 shape = SubResource("BoxShape3D_ctk0t")
+metadata/_edit_lock_ = true
 
 [node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
 mesh = SubResource("QuadMesh_dt8nl")
-
-[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
-transform = Transform3D(1, 0, 0, 0, 0.734358, 0.678762, 0, -0.678762, 0.734358, -33.1669, 12.6773, 15.7238)
-shadow_enabled = true
+metadata/_edit_lock_ = true
 
 [node name="CameraTracker" type="Camera3D" parent="."]
 transform = Transform3D(1, 0, 0, 0, 0.944949, 0.327218, 0, -0.327218, 0.944949, -10, 4.55409, -0.975595)
@@ -100,13 +116,13 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17.9725, 0, -13.1894)
 transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -10.8051, 0, 9.67441)
 
 [node name="FlatTriangle2" parent="Props" instance=ExtResource("7_yyaog")]
-transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -23.1564, 0, -7.69929)
+transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -34.0204, 0, -17.8459)
 
 [node name="FlatTriangle3" parent="Props" instance=ExtResource("7_yyaog")]
 transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -2.48379, 0, -2.61738)
 
 [node name="FlatTriangle4" parent="Props" instance=ExtResource("7_yyaog")]
-transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.77241, 0, 5.02677)
+transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.77241, 0, 12.0265)
 
 [node name="FlatTriangle5" parent="Props" instance=ExtResource("7_yyaog")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.26687, 0, -29.5969)
@@ -121,11 +137,14 @@ transform = Transform3D(0.477312, 0.527326, -0.702923, -0.741391, 0.671074, 0, 0
 transform = Transform3D(-0.153959, -0.170091, -0.973328, -0.741391, 0.671074, 4.00299e-08, 0.653174, 0.721616, -0.229421, -10.5959, 3.94108, -35.7482)
 
 [node name="Jeep1" parent="." instance=ExtResource("6_nnvc5")]
-transform = Transform3D(-0.0560131, 0.291646, 0.954885, 0, 0.956386, -0.292105, -0.99843, -0.0163617, -0.0535702, -16.454, 0.747562, 8.03092)
+transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -23.1205, 0.747562, 8.03092)
 
 [node name="Jeep2" parent="." instance=ExtResource("6_nnvc5")]
 transform = Transform3D(1, 0, 0, 0, 0.956386, -0.292105, 0, 0.292105, 0.956386, -13.4204, 0.313514, -7.30216)
 
+[node name="Jeep4" parent="." instance=ExtResource("6_nnvc5")]
+transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 3.04618, 5.23869, -0.00916004)
+
 [node name="Jeep3" parent="." instance=ExtResource("6_nnvc5")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 59.0559, 8.17644, 19.5959)
 
@@ -150,11 +169,24 @@ transform = Transform3D(4.37114e-08, 0, 1, 0, 1, 0, 1, 0, -4.37114e-08, 62.7817,
 [node name="StairHouse5" parent="Buildings" instance=ExtResource("11_j8m6y")]
 transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 62.7817, 0, 32.8533)
 
-[node name="ChocoSign" parent="Buildings" instance=ExtResource("13_2x2n6")]
+[node name="ChocoSign1" parent="Buildings" instance=ExtResource("13_2x2n6")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.00374, 0, 0)
 
+[node name="ChocoSign3" parent="Buildings" instance=ExtResource("13_2x2n6")]
+transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -24.7985, 0, -17.5154)
+
+[node name="ChocoSign2" parent="Buildings" instance=ExtResource("13_2x2n6")]
+transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 80.5713, 0, 0.979666)
+
 [node name="TitleScreen" parent="." instance=ExtResource("13_2xijd")]
 
+[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
+environment = SubResource("Environment_jdyq3")
+
+[node name="SunLight" type="DirectionalLight3D" parent="."]
+transform = Transform3D(0.769065, 0.23434, -0.594663, 0, 0.930366, 0.366631, 0.639171, -0.281963, 0.715512, 0, 12.4629, 0)
+light_energy = 0.8
+
 [connection signal="focus_required" from="MainWalker" to="CameraTracker" method="_on_focus_required"]
 [connection signal="got_in" from="MainWalker" to="MusicPlayer" method="_on_driver_got_in"]
 [connection signal="got_out" from="MainWalker" to="MusicPlayer" method="_on_driver_got_out"]