← Pixel Dreamer Studio

Particle scale curve not working

Particle Billboard turns the quad by its angle. Keep Scale makes it grow.

With the material's Billboard Mode on Particle Billboard, a particle turns by its angle but keeps the quad's full size: the scale curve and the scale range are ignored. Turn on billboard_keep_scale (Billboard, Keep Scale in the Inspector). With Billboard Mode on Enabled and Keep Scale on, the size works but the angle does not.

Two rising columns of grey turned squares. On the left all squares are the same size. On the right they start small at the bottom and get bigger toward the top
The script below in Godot 4.7 with the Compatibility renderer. Left: Keep Scale off. Right: the script as written.

The code

Attach this to a GPUParticles3D for puffs that grow and turn as they rise. The two billboard lines in the material are what makes both show.

extends GPUParticles3D
## Smoke puffs that grow and turn as they rise.
## The scale curve needs Billboard Keep Scale on, the angle needs Particle Billboard.


func _ready() -> void:
	amount = 16
	lifetime = 2.0
	var m := ParticleProcessMaterial.new()
	m.direction = Vector3.UP
	m.spread = 15.0
	m.initial_velocity_min = 0.6
	m.initial_velocity_max = 0.9
	m.gravity = Vector3.ZERO
	var grow := Curve.new()  # 0.3 of the quad size at birth, full size at the end
	grow.add_point(Vector2(0.0, 0.3))
	grow.add_point(Vector2(1.0, 1.0))
	var gt := CurveTexture.new()
	gt.curve = grow
	m.scale_curve = gt
	m.angle_min = -180.0
	m.angle_max = 180.0
	m.angular_velocity_min = -40.0
	m.angular_velocity_max = 40.0
	process_material = m
	var mat := StandardMaterial3D.new()
	mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
	mat.billboard_mode = BaseMaterial3D.BILLBOARD_PARTICLES  # turns the quad by the particle's angle
	mat.billboard_keep_scale = true  # without this, the scale curve is ignored
	mat.albedo_color = Color(0.75, 0.75, 0.8)
	var q := QuadMesh.new()
	q.size = Vector2(0.8, 0.8)
	q.material = mat
	draw_pass_1 = q

What we measured

We let out one particle that does not move or spin, set to an angle of 45 degrees, with a scale curve from 0.3 to 1. We measured the box around its lit pixels 0.1 and 1.8 seconds into its 2 second life, over two runs. A square turned by 45 degrees has a box about 1.4 times wider than the square.

What to change

Color over the life of a particle has its own setting: particle color ramp not working. Smoke from a fire: fire and smoke with two emitters.

Tested in Godot 4.7 with the Compatibility renderer.

More how-tos: When particles do not show up