← Pixel Dreamer Studio

Particle ring standing up instead of flat

The ring is built around Z by default. Point its axis up.

With Emission Shape set to Ring, particles start on a ring around emission_ring_axis, which is (0, 0, 1) by default. That ring stands up like a wheel, so half of it ends up under the floor. Set emission_ring_axis to Vector3.UP for a flat ring around a character. emission_ring_inner_radius sets how thin the ring is: 0 fills the whole disc.

Two rings of small cyan particles over a dark floor. The left one stands up like an arch, half of it under the floor. The right one lies flat with sparks rising from it
The script below in Godot 4.7 with the Compatibility renderer. Left: Ring Axis left at its default. Right: the script as written.

The code

Attach this to a GPUParticles3D at a character's feet for sparks that rise from a ring on the ground. The emission_ring_axis line is the fix.

extends GPUParticles3D
## Sparks that rise from a flat ring on the ground around a character.
## The ring axis is Z by default, which stands the ring up like a wheel.


func _ready() -> void:
	amount = 120
	lifetime = 1.2
	var m := ParticleProcessMaterial.new()
	m.emission_shape = ParticleProcessMaterial.EMISSION_SHAPE_RING
	m.emission_ring_axis = Vector3.UP  # the fix: lay the ring flat on the ground
	m.emission_ring_radius = 1.2
	m.emission_ring_inner_radius = 1.0  # 0 fills the whole disc
	m.emission_ring_height = 0.05
	m.direction = Vector3.UP
	m.spread = 5.0
	m.initial_velocity_min = 0.6
	m.initial_velocity_max = 1.0
	m.gravity = Vector3.ZERO
	process_material = m
	var mat := StandardMaterial3D.new()
	mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
	mat.billboard_mode = BaseMaterial3D.BILLBOARD_PARTICLES
	mat.albedo_color = Color(0.4, 0.9, 1.0)
	var q := QuadMesh.new()
	q.size = Vector2(0.06, 0.06)
	q.material = mat
	draw_pass_1 = q

What we measured

We stopped the particles from moving, looked straight down with an orthographic camera, and measured the box around the lit pixels and how far they were from the middle, in meters. The numbers include the size of each dot, 6 cm. Three runs gave the same picture.

What to change

A glowing circle under a character instead of particles: ground circle under a character. Particles swirling around a character: magic aura particles.

Tested in Godot 4.7 with the Compatibility renderer.

More how-tos: Auras, rings, beams and weather