← Pixel Dreamer Studio

Ripple rings around a fishing bobber

A flat ring, 1 cm above the water, and a quick dip when a fish bites.

Draw each ripple on a PlaneMesh, which lies flat, and put it 0.01 m above the water. In our Godot 4.7 test a ring at exactly the water height did not show at all, 0 pixels from 5 m and from 30 m away. Lifted 1 cm it showed in full, 1,346 pixels. A camera-facing billboard ring showed only its top half, because the bottom half was under the water.

Dark blue water with a red bobber. Left: a white arch standing up out of the water. Right: three flat rings spreading around the bobber
Godot 4.7 with the Compatibility renderer. Left: a billboard ring, cut off by the water. Right: the script below, a moment after bite().

The code

Put this Node3D on the water where the bobber lands, so its y is the water height. Call bite() when a fish takes the hook and nibble() for a small tug before that. It makes the bobber and the ring texture itself, and each ring frees itself when it has faded.

extends Node3D
## A fishing bobber that bobs on the water and sends out flat ripple rings when a fish bites.
## Put this node on the water surface (its y = the water height) and call bite() or nibble().

@export var ring_color := Color(1, 1, 1, 0.8)
@export var ring_size := 1.6  ## metres across when a ring has spread out
@export var lift := 0.01  ## rings sit this far above the water

var bobber: MeshInstance3D
var _dip := 0.0
var _t := 0.0
var _tex: GradientTexture2D


func _ready() -> void:
	bobber = MeshInstance3D.new()
	var s := SphereMesh.new()
	s.radius = 0.06
	s.height = 0.12
	bobber.mesh = s
	var m := StandardMaterial3D.new()
	m.albedo_color = Color(0.9, 0.15, 0.1)
	bobber.material_override = m
	add_child(bobber)
	var g := Gradient.new()  # a thin bright band near the edge of the texture
	g.offsets = PackedFloat32Array([0.0, 0.62, 0.8, 0.92])
	g.colors = PackedColorArray([Color(1, 1, 1, 0), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0)])
	_tex = GradientTexture2D.new()
	_tex.gradient = g
	_tex.fill = GradientTexture2D.FILL_RADIAL
	_tex.fill_from = Vector2(0.5, 0.5)
	_tex.fill_to = Vector2(1.0, 0.5)


func _process(delta: float) -> void:
	_t += delta
	bobber.position.y = sin(_t * 2.5) * 0.015 - _dip  # gentle bob while waiting


func bite() -> void:
	var t := create_tween()
	t.tween_property(self, "_dip", 0.12, 0.08)  # pulled under fast
	t.tween_property(self, "_dip", 0.0, 0.4).set_trans(Tween.TRANS_ELASTIC).set_ease(Tween.EASE_OUT)
	for i in 3:
		get_tree().create_timer(i * 0.15).timeout.connect(_ring)


func nibble() -> void:
	var t := create_tween()
	t.tween_property(self, "_dip", 0.04, 0.06)
	t.tween_property(self, "_dip", 0.0, 0.2)
	_ring()


func new_ring() -> MeshInstance3D:
	var r := MeshInstance3D.new()
	var p := PlaneMesh.new()  # lies flat on the water. A QuadMesh stands up, and a billboard turns to the camera.
	p.size = Vector2(ring_size, ring_size)
	r.mesh = p
	var mat := StandardMaterial3D.new()
	mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
	mat.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA
	mat.albedo_color = ring_color
	mat.albedo_texture = _tex
	r.material_override = mat
	r.cast_shadow = GeometryInstance3D.SHADOW_CASTING_SETTING_OFF
	r.position.y = lift
	add_child(r)
	return r


func _ring() -> void:
	var r := new_ring()
	r.scale = Vector3.ONE * 0.15
	var t := create_tween().set_parallel(true)
	t.tween_property(r, "scale", Vector3.ONE, 0.9).set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_OUT)
	t.tween_property(r.material_override, "albedo_color:a", 0.0, 0.9).set_ease(Tween.EASE_IN)
	t.chain().tween_callback(r.queue_free)

What we measured

Opaque blue water at height 0, a white ring 1.6 m across, the camera looking down at 30 degrees. We counted the ring's pixels in the middle of the screen.

A second run gave the same ring counts. The lowest point of the bobber changes a little because of where it is in its idle bob.

Why 1 cm matters

Transparent things are drawn after the opaque water, and only where they are in front of it. A ring exactly on the surface is never in front, so the water hides all of it. A billboard has the opposite problem: it stands up to face the camera, so whatever is below its centre is under the surface. A PlaneMesh lies flat from the start, and lift keeps it just above.

What to change

Ready-made fishing effects: Fishing VFX for Godot 4 has 25 presets in Stylized and Retro PSX looks, including bobber ripples and splashes, nibble and bite effects, fish shadows and a rare catch rainbow.

Tested in Godot 4.7 with the Compatibility renderer.

Ready-made: Fishing VFX for Godot 4 has 25 ready-made fishing effects in Stylized and Retro PSX looks, including bobber ripples and splashes, nibble and bite effects, fish shadows and a rare catch rainbow.

More how-tos for Fishing VFX for Godot 4: Make the fish bite after the same wait at any frame rate

More how-tos: Water