From 5ffd28154268286699330a4c37e5d0b2b7a9b58c Mon Sep 17 00:00:00 2001 From: unfa Date: Sun, 26 Dec 2021 16:21:22 +0100 Subject: [PATCH] Rotating noise projection in DM1 --- .../Effects/NoiseBlurredHorizontally.ptex | 141 ++++++++++++++++++ .../Effects/NoiseBlurredHorizontally.png | 3 + .../NoiseBlurredHorizontally.png.import | 37 +++++ Game/Assets/Maps/DM1.tscn | 20 +-- 4 files changed, 192 insertions(+), 9 deletions(-) create mode 100644 Asset Sources/Effects/NoiseBlurredHorizontally.ptex create mode 100644 Game/Assets/Effects/NoiseBlurredHorizontally.png create mode 100644 Game/Assets/Effects/NoiseBlurredHorizontally.png.import diff --git a/Asset Sources/Effects/NoiseBlurredHorizontally.ptex b/Asset Sources/Effects/NoiseBlurredHorizontally.ptex new file mode 100644 index 0000000..f3c58d3 --- /dev/null +++ b/Asset Sources/Effects/NoiseBlurredHorizontally.ptex @@ -0,0 +1,141 @@ +{ + "connections": [ + { + "from": "perlin", + "from_port": 0, + "to": "directional_blur", + "to_port": 0 + }, + { + "from": "directional_blur", + "from_port": 0, + "to": "tones", + "to_port": 0 + } + ], + "label": "Graph", + "longdesc": "", + "name": "@@285", + "node_position": { + "x": 0, + "y": 0 + }, + "nodes": [ + { + "export_paths": { + + }, + "name": "Material", + "node_position": { + "x": 202.337311, + "y": -35.469486 + }, + "parameters": { + "albedo_color": { + "a": 1, + "b": 1, + "g": 1, + "r": 1, + "type": "Color" + }, + "ao": 1, + "depth_scale": 0.5, + "emission_energy": 1, + "flags_transparent": true, + "metallic": 0, + "normal": 1, + "roughness": 1, + "size": 11, + "sss": 0 + }, + "seed": 0, + "seed_locked": false, + "type": "material" + }, + { + "name": "perlin", + "node_position": { + "x": -983, + "y": 97 + }, + "parameters": { + "iterations": 8, + "persistence": 0.8, + "scale_x": 24, + "scale_y": 24 + }, + "seed": 0, + "seed_locked": false, + "type": "perlin" + }, + { + "name": "directional_blur", + "node_position": { + "x": -556.500122, + "y": 91.581627 + }, + "parameters": { + "param0": 10, + "param1": 100, + "param2": 0 + }, + "seed": 0, + "seed_locked": false, + "type": "directional_blur" + }, + { + "name": "tones", + "node_position": { + "x": -165.797867, + "y": 58.461533 + }, + "parameters": { + "in_max": { + "a": 1, + "b": 0.647321, + "g": 0.647321, + "r": 0.647321, + "type": "Color" + }, + "in_mid": { + "a": 0.5, + "b": 0.414349, + "g": 0.414349, + "r": 0.414349, + "type": "Color" + }, + "in_min": { + "a": 0, + "b": 0.241837, + "g": 0.241837, + "r": 0.241837, + "type": "Color" + }, + "out_max": { + "a": 1, + "b": 1, + "g": 1, + "r": 1, + "type": "Color" + }, + "out_min": { + "a": 0, + "b": 0, + "g": 0, + "r": 0, + "type": "Color" + } + }, + "seed": 0, + "seed_locked": false, + "type": "tones" + } + ], + "parameters": { + + }, + "seed": 0, + "seed_locked": false, + "shortdesc": "", + "type": "graph" +} \ No newline at end of file diff --git a/Game/Assets/Effects/NoiseBlurredHorizontally.png b/Game/Assets/Effects/NoiseBlurredHorizontally.png new file mode 100644 index 0000000..d9e86ac --- /dev/null +++ b/Game/Assets/Effects/NoiseBlurredHorizontally.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a502e6aadcb63ade341d7d38134f08da5b6303175c577d4db83168fd3763e4fd +size 197509 diff --git a/Game/Assets/Effects/NoiseBlurredHorizontally.png.import b/Game/Assets/Effects/NoiseBlurredHorizontally.png.import new file mode 100644 index 0000000..08c317a --- /dev/null +++ b/Game/Assets/Effects/NoiseBlurredHorizontally.png.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="StreamTexture2D" +uid="uid://bus2g2qhtpwjj" +path.s3tc="res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.s3tc.stex" +path.etc2="res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.etc2.stex" +metadata={ +"imported_formats": ["s3tc", "etc2"], +"vram_texture": true +} + +[deps] + +source_file="res://Assets/Effects/NoiseBlurredHorizontally.png" +dest_files=["res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.s3tc.stex", "res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.etc2.stex"] + +[params] + +compress/mode=2 +compress/lossy_quality=0.33 +compress/hdr_compression=1 +compress/bptc_ldr=0 +compress/normal_map=0 +compress/channel_pack=0 +compress/streamed=false +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/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 diff --git a/Game/Assets/Maps/DM1.tscn b/Game/Assets/Maps/DM1.tscn index 5947e97..b306498 100644 --- a/Game/Assets/Maps/DM1.tscn +++ b/Game/Assets/Maps/DM1.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=12 format=3 uid="uid://b7txmrrvh1q4e"] +[gd_scene load_steps=13 format=3 uid="uid://b7txmrrvh1q4e"] [ext_resource type="PackedScene" uid="uid://cbh6i7mi0aqjs" path="res://Map.tscn" id="1_5amr5"] [ext_resource type="PackedScene" uid="uid://k4alrsehhfbc" path="res://Assets/Maps/DM1/DM1.glb" id="2_ov63e"] +[ext_resource type="Texture2D" uid="uid://bus2g2qhtpwjj" path="res://Assets/Effects/NoiseBlurredHorizontally.png" id="3_yx2bu"] [ext_resource type="Texture2D" uid="uid://pnh872qjk0oy" path="res://Assets/Effects/Flame.png" id="19_irh18"] [sub_resource type="FogMaterial" id="FogMaterial_xa7nn"] @@ -16,7 +17,7 @@ loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("OmniLight3D4:light_color") +tracks/0/path = NodePath("Energy:light_color") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -27,8 +28,8 @@ tracks/0/keys = { } tracks/1/type = "value" tracks/1/imported = false -tracks/1/enabled = false -tracks/1/path = NodePath("OmniLight3D4:rotation") +tracks/1/enabled = true +tracks/1/path = NodePath("Energy:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { @@ -40,7 +41,7 @@ tracks/1/keys = { tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = false -tracks/2/path = NodePath("OmniLight3D4:light_projector:noise_offset") +tracks/2/path = NodePath("Energy:light_projector:noise_offset") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { @@ -67,7 +68,7 @@ length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("OmniLight3D4:light_color") +tracks/0/path = NodePath("Energy:light_color") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -79,7 +80,7 @@ tracks/0/keys = { tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true -tracks/1/path = NodePath("OmniLight3D4:rotation") +tracks/1/path = NodePath("Energy:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { @@ -91,7 +92,7 @@ tracks/1/keys = { tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true -tracks/2/path = NodePath("OmniLight3D4:light_projector:noise_offset") +tracks/2/path = NodePath("Energy:light_projector:noise_offset") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { @@ -365,10 +366,11 @@ shadow_enabled = true spot_range = 92.0 spot_attenuation = 0.554785 -[node name="OmniLight3D4" type="OmniLight3D" parent="Lights" index="6"] +[node name="Energy" type="OmniLight3D" parent="Lights" index="6"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -34, -21, 0) light_color = Color(1, 0.588235, 0.164706, 1) light_energy = 80.0 +light_projector = ExtResource( "3_yx2bu" ) light_size = 1.0 shadow_enabled = true omni_range = 65.0