Rebuilt listener ping effect

This commit is contained in:
Rob Kelly 2025-08-28 15:45:55 -06:00
parent 6c3cf04023
commit 5c6d4ce3bb
14 changed files with 2528 additions and 2355 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

BIN
assets/particles/light_02.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bl1aniu87mioa"
path="res://.godot/imported/light_02.png-8ede73eca58ecd3b47d8333292bea678.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/particles/light_02.png"
dest_files=["res://.godot/imported/light_02.png-8ede73eca58ecd3b47d8333292bea678.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=0

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=35 format=4 uid="uid://b8rv6dg4tgaeb"]
[gd_scene load_steps=36 format=4 uid="uid://b8rv6dg4tgaeb"]
[ext_resource type="Script" uid="uid://bvua1l2hb3an6" path="res://levels/mechanic_test/mechanic_test.gd" id="1_iyuyb"]
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="2_qjnj2"]
@ -12,6 +12,7 @@
[ext_resource type="PackedScene" uid="uid://b5jubpjj3d277" path="res://levels/mechanic_test/signal_test.tscn" id="9_ix0jw"]
[ext_resource type="PackedScene" uid="uid://cfqirm2o3uo4k" path="res://levels/mechanic_test/prop_test.tscn" id="10_xrfi2"]
[ext_resource type="PackedScene" uid="uid://dbabcsp38wmid" path="res://levels/mechanic_test/item_test.tscn" id="11_8natv"]
[ext_resource type="PackedScene" uid="uid://kctp5erogwcb" path="res://src/world/mechanics/listener/listener.tscn" id="13_awnx0"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_goufh"]
@ -118,7 +119,7 @@ seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("7_7cbja")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qjnj2"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_awnx0"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("6_6frcc")
@ -158,6 +159,7 @@ transform = Transform3D(0.866025, -0.156955, -0.474726, 0.5, 0.271854, 0.82225,
environment = SubResource("Environment_bg05n")
[node name="WorldFloor" type="StaticBody3D" parent="." groups=["PlasticMaterial"]]
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="WorldFloor"]
mesh = SubResource("PlaneMesh_mn2wa")
@ -168,6 +170,7 @@ shape = SubResource("WorldBoundaryShape3D_mn2wa")
[node name="ResetPodium" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -2)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="ResetPodium"]
mesh = SubResource("BoxMesh_goufh")
@ -185,6 +188,7 @@ text = "RESET"
[node name="NoduleSpawner" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.5, 1, -6)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="NoduleSpawner"]
mesh = SubResource("BoxMesh_goufh")
@ -222,6 +226,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3)
[node name="AlarmSpawner" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, 1, -6)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="AlarmSpawner"]
mesh = SubResource("BoxMesh_goufh")
@ -259,6 +264,7 @@ metadata/_custom_type_script = "uid://deg5xd87cy8rg"
[node name="AlarmTrigger" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 1, -6)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="AlarmTrigger"]
mesh = SubResource("BoxMesh_goufh")
@ -306,13 +312,14 @@ unique_name_in_owner = true
body = NodePath("..")
mesh_instance = NodePath("../..")
initial_mask = ExtResource("5_aix42")
source_gunk_material = SubResource("ShaderMaterial_qjnj2")
source_gunk_material = SubResource("ShaderMaterial_awnx0")
[node name="Bulkhead" parent="." instance=ExtResource("8_ujrcv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.5, 0, -2)
[node name="Podium" type="StaticBody3D" parent="Bulkhead"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 0)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="Bulkhead/Podium"]
mesh = SubResource("BoxMesh_goufh")
@ -331,6 +338,7 @@ text = "Open"
[node name="Podium2" type="StaticBody3D" parent="Bulkhead"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 1, 0)
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="Bulkhead/Podium2"]
mesh = SubResource("BoxMesh_goufh")
@ -366,6 +374,9 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13, 0, -2)
[node name="ItemTest" parent="ItemTestSpawnPoint" instance=ExtResource("11_8natv")]
[node name="Listener" parent="." instance=ExtResource("13_awnx0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.5, 0, -6.5)
[connection signal="activated" from="ResetPodium/ResetSwitch" to="." method="reset"]
[connection signal="activated" from="NoduleSpawner/ButtonMesh/InteractiveBody/Interactive" to="." method="spawn_nodule"]
[connection signal="activated" from="AlarmSpawner/ButtonMesh/InteractiveBody/Interactive" to="." method="spawn_alarm"]

View File

@ -0,0 +1,53 @@
@tool
extends Node
## Controller for animating gradient bands
const EPSILON: float = 0.001
const MAX_IDX: int = 8
const BG_COLOR: Color = Color.BLACK
@export var band_width := 0.2
@export var band_1_position := -0.1:
set(value):
band_1_position = value
_set_band_position(1, value, band_1_color)
@export var band_1_color := Color.RED
@export var band_2_position := -0.1:
set(value):
band_2_position = value
_set_band_position(4, value, band_2_color)
@export var band_2_color := Color.RED
@export var band_3_position := -0.1:
set(value):
band_3_position = value
_set_band_position(7, value, band_3_color)
@export var band_3_color := Color.RED
var gradient: Gradient
func _ready() -> void:
var mesh_instance: MeshInstance3D = get_parent()
var material: ShaderMaterial = mesh_instance.get_surface_override_material(1)
var gradient_tex: GradientTexture2D = material.get_shader_parameter("overlay_emission")
gradient = gradient_tex.gradient
func _clamp_offset(idx: int, value: float) -> float:
return clampf(value, 0 + EPSILON * idx, 1 - EPSILON * (MAX_IDX - idx))
func _set_band_position(idx: int, position: float, color: Color) -> void:
var width := 0.5 * band_width
gradient.set_offset(idx - 1, _clamp_offset(idx - 1, position - width))
gradient.set_offset(idx, _clamp_offset(idx, position))
gradient.set_offset(idx + 1, _clamp_offset(idx + 1, position + width))
gradient.set_color(idx - 1, BG_COLOR)
gradient.set_color(idx, color)
gradient.set_color(idx + 1, BG_COLOR)

View File

@ -0,0 +1 @@
uid://cw0vig0h2hpaf

View File

@ -12,8 +12,9 @@ const JITTER_INFLATION_FACTOR := 1.1
@onready var cooldown_timer: Timer = %CooldownTimer
@onready var listener_model: ListenerModel = %ListenerModel
@onready var ping_animation: AnimationPlayer = %PingAnimation
@onready var listener_mesh: MeshInstance3D = $ListenerModel/Armature/Skeleton3D/Listener
@onready var pulse_animation: AnimationPlayer = $ListenerModel/PulseAnimation
@onready var glow_effect: GPUParticles3D = %GlowEffect
func _on_sound_detected(source: Vector3) -> void:
@ -25,7 +26,8 @@ func _on_sound_detected(source: Vector3) -> void:
func trigger() -> void:
# TODO play sfx
ping_animation.play("ping")
pulse_animation.play("pulse")
glow_effect.emitting = true
triggered.emit()
@ -40,8 +42,13 @@ func _process(delta: float) -> void:
super._process(delta)
# TODO actual model & animation
var shader: ShaderMaterial = listener_mesh.get_surface_override_material(0)
var damage := pct_damage()
shader.set_shader_parameter("jitter_time_scale", pow(damage * JITTER_SCALE_FACTOR, 1.2))
shader.set_shader_parameter("vertex_inflation", pow(damage * JITTER_INFLATION_FACTOR, 3))
var jitter_time_scale := pow(damage * JITTER_SCALE_FACTOR, 1.2)
var vertex_inflation := pow(damage * JITTER_INFLATION_FACTOR, 3)
var shader_1: ShaderMaterial = listener_mesh.get_surface_override_material(0)
var shader_2: ShaderMaterial = listener_mesh.get_surface_override_material(1)
shader_1.set_shader_parameter("jitter_time_scale", jitter_time_scale)
shader_2.set_shader_parameter("jitter_time_scale", jitter_time_scale)
shader_1.set_shader_parameter("vertex_inflation", vertex_inflation)
shader_2.set_shader_parameter("vertex_inflation", vertex_inflation)
# TODO pulse animation

View File

@ -1,12 +1,12 @@
[gd_scene load_steps=25 format=3 uid="uid://kctp5erogwcb"]
[gd_scene load_steps=32 format=3 uid="uid://kctp5erogwcb"]
[ext_resource type="Script" uid="uid://bde7cglaqobkd" path="res://src/world/mechanics/listener/listener.gd" id="1_htscg"]
[ext_resource type="Script" uid="uid://cfsiyhhrcua6o" path="res://src/world/game_sound/game_sound_listener.gd" id="2_htscg"]
[ext_resource type="Texture2D" uid="uid://c31gdstf55x5" path="res://assets/particles/ping.png" id="3_2ibh1"]
[ext_resource type="PackedScene" uid="uid://c2c0ooj1re3dk" path="res://src/world/mechanics/listener/listener_model.tscn" id="3_r42ft"]
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="4_pp7wn"]
[ext_resource type="Texture2D" uid="uid://cm1jrvx7ftx4c" path="res://assets/black.png" id="5_c5snp"]
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="6_m4i7y"]
[ext_resource type="Texture2D" uid="uid://bl1aniu87mioa" path="res://assets/particles/light_02.png" id="7_pp7wn"]
[sub_resource type="SphereShape3D" id="SphereShape3D_2ibh1"]
radius = 1.0
@ -36,7 +36,7 @@ height = 32
depth = 128
noise = SubResource("FastNoiseLite_7fplw")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yuift"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pp7wn"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("4_pp7wn")
@ -62,285 +62,120 @@ shader_parameter/vertex_inflation = 0.0
shader_parameter/inflation_pixellation = 10.0
shader_parameter/overlay_emission_scale = 1.0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2ibh1"]
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_pp7wn"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("6_m4i7y")
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_c5snp"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("6_m4i7y")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_c5snp"]
frequency = 0.0703
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_q7kpl"]
width = 32
height = 32
depth = 128
noise = SubResource("FastNoiseLite_c5snp")
[sub_resource type="Gradient" id="Gradient_c5snp"]
resource_local_to_scene = true
transparency = 3
alpha_hash_scale = 1.0
alpha_antialiasing_mode = 0
offsets = PackedFloat32Array(0, 0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008)
colors = PackedColorArray(0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_m4i7y"]
resource_local_to_scene = true
gradient = SubResource("Gradient_c5snp")
width = 32
height = 32
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yuift"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("4_pp7wn")
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
shader_parameter/emission_color = Color(0.66, 0.943333, 1, 1)
shader_parameter/pixellation = 128.0
shader_parameter/time_pixellation = 30.0
shader_parameter/roughness = 0.15
shader_parameter/specular_contribution = 0.8
shader_parameter/emission_strength = 0.2
shader_parameter/normal_scale = 1.0
shader_parameter/uv_scale = Vector2(2, 2)
shader_parameter/time_scale = 0.2
shader_parameter/edge_bleed = 0.25
shader_parameter/gunk_mask = ExtResource("5_c5snp")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_pp7wn")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_c5snp")
shader_parameter/jitter_magnitude = 0.4
shader_parameter/jitter_time_scale = 0.1
shader_parameter/jitter_noise = SubResource("NoiseTexture3D_q7kpl")
shader_parameter/vertex_inflation = 0.0
shader_parameter/inflation_pixellation = 10.0
shader_parameter/overlay_emission = SubResource("GradientTexture2D_m4i7y")
shader_parameter/overlay_emission_scale = 6.0
[sub_resource type="Curve" id="Curve_pp7wn"]
_limits = [0.0, 0.3, 0.0, 1.0]
_data = [Vector2(0, 0), 0.0, 1.51554, 0, 0, Vector2(0.101629, 0.115028), 0.436038, 0.436038, 0, 0, Vector2(0.421742, 0.0779494), 0.21293, 0.21293, 0, 0, Vector2(1, 0), -0.0537925, 0.0, 0, 0]
point_count = 4
[sub_resource type="CurveTexture" id="CurveTexture_c5snp"]
curve = SubResource("Curve_pp7wn")
[sub_resource type="Gradient" id="Gradient_m4i7y"]
offsets = PackedFloat32Array(0, 0.131116, 0.46445, 0.699924, 1)
colors = PackedColorArray(0, 0, 0, 1, 1, 0, 0, 1, 0.0429, 0.191235, 0.33, 1, 1, 0, 0, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_yuift"]
gradient = SubResource("Gradient_m4i7y")
[sub_resource type="Curve" id="Curve_rwi8p"]
_data = [Vector2(0, 0), 0.0, 2.42303, 0, 0, Vector2(0.535057, 0.472508), 0.37392, 0.37392, 0, 0, Vector2(1, 1), 3.2153, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_co1mg"]
curve = SubResource("Curve_rwi8p")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_nqo7i"]
angle_min = -360.0
angle_max = 360.0
angular_velocity_min = 45.0
angular_velocity_max = 180.0
gravity = Vector3(0, 0, 0)
attractor_interaction_enabled = false
scale_curve = SubResource("CurveTexture_co1mg")
color_ramp = SubResource("GradientTexture1D_yuift")
alpha_curve = SubResource("CurveTexture_c5snp")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_niglb"]
transparency = 1
no_depth_test = true
shading_mode = 0
albedo_color = Color(0.866667, 0.109804, 0.101961, 1)
albedo_texture = ExtResource("3_2ibh1")
disable_receive_shadows = true
billboard_mode = 1
vertex_color_use_as_albedo = true
albedo_texture = ExtResource("7_pp7wn")
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_r42ft"]
resource_local_to_scene = true
material = SubResource("StandardMaterial3D_2ibh1")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dqq13"]
resource_local_to_scene = true
transparency = 3
alpha_hash_scale = 1.0
alpha_antialiasing_mode = 0
no_depth_test = true
shading_mode = 0
albedo_color = Color(0.866667, 0.109804, 0.101961, 1)
albedo_texture = ExtResource("3_2ibh1")
disable_receive_shadows = true
billboard_mode = 1
billboard_keep_scale = true
[sub_resource type="QuadMesh" id="QuadMesh_gjouv"]
resource_local_to_scene = true
material = SubResource("StandardMaterial3D_dqq13")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pp7wn"]
resource_local_to_scene = true
transparency = 3
alpha_hash_scale = 1.0
alpha_antialiasing_mode = 0
no_depth_test = true
shading_mode = 0
albedo_color = Color(0.866667, 0.109804, 0.101961, 1)
albedo_texture = ExtResource("3_2ibh1")
disable_receive_shadows = true
billboard_mode = 1
billboard_keep_scale = true
[sub_resource type="QuadMesh" id="QuadMesh_c5snp"]
resource_local_to_scene = true
material = SubResource("StandardMaterial3D_pp7wn")
[sub_resource type="Animation" id="Animation_dqq13"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Ping1:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Ping1:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Ping1:mesh:material:albedo_color")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Ping2:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Ping2:scale")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Ping2:mesh:material:albedo_color")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1)]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("Ping3:visible")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/7/type = "value"
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/path = NodePath("Ping3:scale")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001)]
}
tracks/8/type = "value"
tracks/8/imported = false
tracks/8/enabled = true
tracks/8/path = NodePath("Ping3:mesh:material:albedo_color")
tracks/8/interp = 1
tracks/8/loop_wrap = true
tracks/8/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1)]
}
[sub_resource type="Animation" id="Animation_r42ft"]
resource_name = "ping"
length = 4.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Ping1:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Ping1:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 3.4),
"transitions": PackedFloat32Array(0.2, 1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001), Vector3(3, 3, 3)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Ping1:mesh:material:albedo_color")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.3, 1.4),
"transitions": PackedFloat32Array(1.618, 0.618, 1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1), Color(0.866667, 0.109804, 0.101961, 1), Color(0.66, 0.08888, 0.0792, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Ping2:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Ping2:scale")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.3, 3.7),
"transitions": PackedFloat32Array(1, 0.2, 1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001), Vector3(0.001, 0.001, 0.001), Vector3(3, 3, 3)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Ping2:mesh:material:albedo_color")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0, 0.6, 1.7),
"transitions": PackedFloat32Array(1, 0.618, 1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1), Color(0.866667, 0.109804, 0.101961, 1), Color(0.66, 0.08888, 0.0792, 0)]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("Ping3:visible")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/7/type = "value"
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/path = NodePath("Ping3:scale")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/keys = {
"times": PackedFloat32Array(0, 0.6, 4),
"transitions": PackedFloat32Array(1, 0.2, 1),
"update": 0,
"values": [Vector3(0.001, 0.001, 0.001), Vector3(0.001, 0.001, 0.001), Vector3(3, 3, 3)]
}
tracks/8/type = "value"
tracks/8/imported = false
tracks/8/enabled = true
tracks/8/path = NodePath("Ping3:mesh:material:albedo_color")
tracks/8/interp = 1
tracks/8/loop_wrap = true
tracks/8/keys = {
"times": PackedFloat32Array(0, 0.9, 2),
"transitions": PackedFloat32Array(1, 0.618, 1),
"update": 0,
"values": [Color(0.866667, 0.109804, 0.101961, 1), Color(0.866667, 0.109804, 0.101961, 1), Color(0.66, 0.08888, 0.0792, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dqq13"]
_data = {
&"RESET": SubResource("Animation_dqq13"),
&"ping": SubResource("Animation_r42ft")
}
[sub_resource type="QuadMesh" id="QuadMesh_r7wib"]
material = SubResource("StandardMaterial3D_niglb")
size = Vector2(1.4, 1.4)
[sub_resource type="CylinderShape3D" id="CylinderShape3D_dqq13"]
height = 0.28
@ -372,58 +207,16 @@ shape = SubResource("SphereShape3D_2ibh1")
unique_name_in_owner = true
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
[node name="Skeleton3D" parent="ListenerModel/Armature" index="0"]
bones/0/rotation = Quaternion(-1.51225e-09, 0.130526, 4.05207e-10, 0.991445)
bones/1/rotation = Quaternion(9.2869e-09, 0.130526, -8.10413e-10, 0.991445)
bones/2/rotation = Quaternion(-9.1802e-09, 0.130526, -8.10414e-10, 0.991445)
bones/3/rotation = Quaternion(6.20905e-09, 0.130526, -4.05206e-10, 0.991445)
bones/4/rotation = Quaternion(-8.49624e-09, 0.130526, -9.00455e-11, 0.991445)
bones/5/rotation = Quaternion(0.54585, 0.487268, 0.374478, -0.569548)
bones/6/rotation = Quaternion(0.308353, 2.1709e-08, 1.30586e-08, 0.951272)
bones/7/rotation = Quaternion(0.334237, -0.119529, -0.0427788, 0.9339)
bones/8/rotation = Quaternion(0.247978, -2.40337e-10, -3.8454e-09, 0.968766)
bones/9/rotation = Quaternion(0.148338, 2.82522e-09, -5.65045e-09, 0.988937)
bones/10/rotation = Quaternion(0.237284, 7.34911e-07, -1.96017e-07, 0.97144)
bones/11/rotation = Quaternion(0.285481, 0.70676, 0.597232, -0.249609)
bones/12/rotation = Quaternion(0.308353, 6.75348e-08, -4.55922e-08, 0.951272)
bones/13/rotation = Quaternion(0.334237, -0.119529, -0.0427787, 0.9339)
bones/14/rotation = Quaternion(0.247978, 6.91065e-10, -2.79256e-08, 0.968766)
bones/15/rotation = Quaternion(0.148338, 7.66861e-08, 9.51493e-08, 0.988937)
bones/16/rotation = Quaternion(0.237284, 1.57873e-06, -4.4533e-07, 0.97144)
bones/17/rotation = Quaternion(-0.0513825, 0.736877, 0.659958, 0.137212)
bones/18/rotation = Quaternion(0.308353, -1.71875e-07, -7.09416e-08, 0.951272)
bones/19/rotation = Quaternion(0.334237, -0.119529, -0.0427786, 0.9339)
bones/20/rotation = Quaternion(0.247978, -5.53974e-08, -1.69864e-07, 0.968766)
bones/21/rotation = Quaternion(0.148338, 4.98196e-08, 2.63702e-07, 0.988937)
bones/22/rotation = Quaternion(0.237284, 2.44019e-06, -9.05055e-07, 0.97144)
bones/23/rotation = Quaternion(-0.374478, 0.569548, 0.545849, 0.487268)
bones/24/rotation = Quaternion(0.308353, -3.56631e-08, -1.14694e-08, 0.951272)
bones/25/rotation = Quaternion(0.334237, -0.119529, -0.0427786, 0.9339)
bones/26/rotation = Quaternion(0.247978, -6.25756e-08, -2.50967e-07, 0.968766)
bones/27/rotation = Quaternion(0.148338, 2.83936e-08, 1.69831e-07, 0.988937)
bones/28/rotation = Quaternion(0.237284, 3.38177e-06, -1.02259e-06, 0.97144)
bones/29/rotation = Quaternion(-0.597232, 0.249609, 0.285481, 0.70676)
bones/30/rotation = Quaternion(0.308353, 2.31089e-09, 1.50606e-08, 0.951272)
bones/31/rotation = Quaternion(0.334237, -0.119529, -0.0427785, 0.9339)
bones/32/rotation = Quaternion(0.247978, -3.1123e-08, -2.32956e-07, 0.968766)
bones/33/rotation = Quaternion(0.148338, 5.29717e-08, 2.76084e-07, 0.988937)
bones/34/rotation = Quaternion(0.237284, 4.29037e-06, -1.26097e-06, 0.97144)
bones/35/rotation = Quaternion(-0.659958, -0.137212, -0.0513825, 0.736877)
bones/36/rotation = Quaternion(0.308353, 3.35578e-09, 4.35599e-09, 0.951272)
bones/37/rotation = Quaternion(0.334237, -0.119529, -0.0427785, 0.9339)
bones/38/rotation = Quaternion(0.247978, -1.26717e-07, -3.12779e-07, 0.968766)
bones/39/rotation = Quaternion(0.148338, 2.72959e-08, 3.46469e-07, 0.988937)
bones/40/rotation = Quaternion(0.237284, 5.07144e-06, -1.68211e-06, 0.97144)
[node name="Listener" parent="ListenerModel/Armature/Skeleton3D" index="0"]
surface_material_override/0 = SubResource("ShaderMaterial_yuift")
surface_material_override/0 = SubResource("ShaderMaterial_pp7wn")
surface_material_override/1 = SubResource("ShaderMaterial_yuift")
[node name="PhysicalBoneSimulator3D" type="PhysicalBoneSimulator3D" parent="ListenerModel/Armature/Skeleton3D" index="6"]
[node name="PhysicalBone3D" type="PhysicalBone3D" parent="ListenerModel/Armature/Skeleton3D/PhysicalBoneSimulator3D"]
transform = Transform3D(0.323529, 1.18154e-06, 1.20741, -1.0688e-08, 1.25, -1.22036e-06, -1.20741, 3.05533e-07, 0.323529, -4.82717e-06, 0.800007, -1.22091e-06)
joint_offset = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.43998e-08, -5.81741e-06, 3.98532e-06)
body_offset = Transform3D(1.25, 1.1196e-08, -3.01003e-06, -1.11989e-08, 1.25, -1.23027e-06, 2.98023e-06, 1.23027e-06, 1.25, -6.79877e-08, 7.27177e-06, -4.98164e-06)
transform = Transform3D(0.323524, 1.26311e-06, 1.20741, -3.57116e-07, 1.25, -1.21197e-06, -1.20741, -3.12655e-08, 0.323524, -4.8128e-06, 0.800007, -1.25657e-06)
joint_offset = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.38539e-08, -5.72204e-06, 3.9816e-06)
body_offset = Transform3D(1.25, 3.57626e-07, -3.57628e-07, -3.57627e-07, 1.25, -1.22189e-06, 3.57628e-07, 1.22189e-06, 1.25, -2.98139e-08, 7.15256e-06, -4.97699e-06)
bone_name = "Stem5"
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="ListenerModel/Armature/Skeleton3D/PhysicalBoneSimulator3D/PhysicalBone3D"]
@ -431,41 +224,22 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.235, 0)
remote_path = NodePath("../../../../../../CollisionShape3D2")
update_scale = false
[node name="PingEffect" type="Node3D" parent="."]
[node name="Ping1" type="MeshInstance3D" parent="PingEffect"]
transform = Transform3D(0.001, 0, 0, 0, 0.001, 0, 0, 0, 0.001, 0, 0, 0)
visible = false
sorting_offset = 9999.0
mesh = SubResource("QuadMesh_r42ft")
skeleton = NodePath("../..")
[node name="Ping2" type="MeshInstance3D" parent="PingEffect"]
transform = Transform3D(0.001, 0, 0, 0, 0.001, 0, 0, 0, 0.001, 0, 0, 0)
visible = false
sorting_offset = 9999.0
mesh = SubResource("QuadMesh_gjouv")
skeleton = NodePath("../..")
[node name="Ping3" type="MeshInstance3D" parent="PingEffect"]
transform = Transform3D(0.001, 0, 0, 0, 0.001, 0, 0, 0, 0.001, 0, 0, 0)
visible = false
sorting_offset = 9999.0
mesh = SubResource("QuadMesh_c5snp")
skeleton = NodePath("../..")
[node name="PingAnimation" type="AnimationPlayer" parent="PingEffect"]
[node name="GlowEffect" type="GPUParticles3D" parent="ListenerModel/Armature/Skeleton3D/PhysicalBoneSimulator3D/PhysicalBone3D/RemoteTransform3D"]
unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_dqq13")
}
emitting = false
amount = 2
one_shot = true
explosiveness = 0.8
local_coords = true
process_material = SubResource("ParticleProcessMaterial_nqo7i")
draw_pass_1 = SubResource("QuadMesh_r7wib")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.14, 0)
shape = SubResource("CylinderShape3D_dqq13")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(0.258818, 9.45214e-07, 0.965909, -8.55022e-09, 0.999981, -9.7627e-07, -0.965904, 2.44422e-07, 0.258819, -3.63961e-06, 0.875006, -9.19288e-07)
transform = Transform3D(0.258814, 1.01046e-06, 0.96591, -2.85687e-07, 0.999981, -9.69564e-07, -0.965905, -2.50119e-08, 0.258815, -3.61278e-06, 0.875006, -1.01113e-06)
shape = SubResource("CylinderShape3D_r42ft")
[node name="CooldownTimer" type="Timer" parent="."]

View File

@ -1,13 +1,83 @@
[gd_scene load_steps=10 format=3 uid="uid://c2c0ooj1re3dk"]
[gd_scene load_steps=24 format=3 uid="uid://c2c0ooj1re3dk"]
[ext_resource type="PackedScene" uid="uid://coucghe370fff" path="res://assets/grunk/listener/listener.gltf" id="1_lgdkx"]
[ext_resource type="Script" uid="uid://co4gkdwyhdbmc" path="res://src/world/mechanics/listener/listener_model.gd" id="2_yh3g4"]
[ext_resource type="Material" uid="uid://bmab6i16v748m" path="res://assets/materials/grunk_jittery.material" id="3_xijsm"]
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="4_q7kpl"]
[ext_resource type="Animation" uid="uid://dihyn82xf67ou" path="res://assets/grunk/listener/animations/RESET.res" id="4_y4jww"]
[ext_resource type="Animation" uid="uid://c236lo5xytxaa" path="res://assets/grunk/listener/animations/idle.res" id="5_3vskp"]
[ext_resource type="Texture2D" uid="uid://cm1jrvx7ftx4c" path="res://assets/black.png" id="5_6cdu3"]
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="6_ftf52"]
[ext_resource type="Animation" uid="uid://bujor2i5icw8c" path="res://assets/grunk/listener/animations/close.res" id="6_ghw47"]
[ext_resource type="Script" uid="uid://cw0vig0h2hpaf" path="res://src/world/mechanics/listener/band_controller.gd" id="7_6cdu3"]
[ext_resource type="Animation" uid="uid://c4juq6vxnnxbe" path="res://assets/grunk/listener/animations/open.res" id="7_c25ju"]
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_pp7wn"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("6_ftf52")
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_c5snp"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("6_ftf52")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_c5snp"]
frequency = 0.0703
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_q7kpl"]
width = 32
height = 32
depth = 128
noise = SubResource("FastNoiseLite_c5snp")
[sub_resource type="Gradient" id="Gradient_6cdu3"]
resource_local_to_scene = true
offsets = PackedFloat32Array(0, 0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008)
colors = PackedColorArray(0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_6cdu3"]
resource_local_to_scene = true
gradient = SubResource("Gradient_6cdu3")
width = 32
height = 32
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ftf52"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("4_q7kpl")
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
shader_parameter/emission_color = Color(0.66, 0.943333, 1, 1)
shader_parameter/pixellation = 128.0
shader_parameter/time_pixellation = 30.0
shader_parameter/roughness = 0.15
shader_parameter/specular_contribution = 0.8
shader_parameter/emission_strength = 0.2
shader_parameter/normal_scale = 1.0
shader_parameter/uv_scale = Vector2(2, 2)
shader_parameter/time_scale = 0.2
shader_parameter/edge_bleed = 0.25
shader_parameter/gunk_mask = ExtResource("5_6cdu3")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_pp7wn")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_c5snp")
shader_parameter/jitter_magnitude = 0.4
shader_parameter/jitter_time_scale = 0.1
shader_parameter/jitter_noise = SubResource("NoiseTexture3D_q7kpl")
shader_parameter/vertex_inflation = 0.0
shader_parameter/inflation_pixellation = 10.0
shader_parameter/overlay_emission = SubResource("GradientTexture2D_6cdu3")
shader_parameter/overlay_emission_scale = 6.0
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ghw47"]
_data = {
&"RESET": ExtResource("4_y4jww"),
@ -21,6 +91,90 @@ _data = {
&"open": ExtResource("7_c25ju")
}
[sub_resource type="Animation" id="Animation_q7kpl"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_1_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_2_position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.1]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_3_position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.1]
}
[sub_resource type="Animation" id="Animation_ftf52"]
resource_name = "pulse"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_1_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4, 0.9),
"transitions": PackedFloat32Array(1, 0.3, 1),
"update": 0,
"values": [-0.1, -0.1, 1.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_2_position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.266666, 0.766666),
"transitions": PackedFloat32Array(1, 0.3, 1),
"update": 0,
"values": [-0.1, -0.1, 1.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Armature/Skeleton3D/Listener/BandController:band_3_position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.133333, 0.633333),
"transitions": PackedFloat32Array(1, 0.3, 1),
"update": 0,
"values": [-0.1, -0.1, 1.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ih22n"]
_data = {
&"RESET": SubResource("Animation_q7kpl"),
&"pulse": SubResource("Animation_ftf52")
}
[node name="ListenerModel" instance=ExtResource("1_lgdkx")]
script = ExtResource("2_yh3g4")
@ -69,6 +223,10 @@ bones/40/rotation = Quaternion(0.237284, 5.07144e-06, -1.68211e-06, 0.97144)
[node name="Listener" parent="Armature/Skeleton3D" index="0"]
surface_material_override/0 = ExtResource("3_xijsm")
surface_material_override/1 = SubResource("ShaderMaterial_ftf52")
[node name="BandController" type="Node" parent="Armature/Skeleton3D/Listener" index="0"]
script = ExtResource("7_6cdu3")
[node name="StemIK1" type="LookAtModifier3D" parent="Armature/Skeleton3D" index="1"]
unique_name_in_owner = true
@ -177,3 +335,8 @@ unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_5lsre")
}
[node name="PulseAnimation" type="AnimationPlayer" parent="." index="5"]
libraries = {
&"": SubResource("AnimationLibrary_ih22n")
}

View File

@ -27,5 +27,7 @@
"file-recovery": true,
"publish": false,
"sync": false,
"webviewer": false
"webviewer": false,
"footnotes": false,
"bases": true
}

View File

@ -15,6 +15,7 @@
- `#001a4d` Grunk Blue <mark style="font-weight: bold; background: #fff; color: #001a4d;">SAMPLE</mark>
- `#00081a` Grunk Dark Blue <mark style="font-weight: bold; background: #fff; color: #00081a;">SAMPLE</mark>
- `#40e0ff` Grunk Emission Cyan <mark style="font-weight: bold; background: #000; color: #40e0ff;">SAMPLE</mark>
- `#fada00` Grunk Psionics Yellow <mark style="font-weight: bold; background: #000; color: #fada00;">SAMPLE</mark>
## World
(using [PAPER 8 PALETTE](https://lospec.com/palette-list/paper-8))
- `#1f244b` Tech Shadow <mark style="font-weight: bold; background: #fff; color: #1f244b;">SAMPLE</mark>