godot icon indicating copy to clipboard operation
godot copied to clipboard

[Godot 4.3-4.4beta4] GPUParticle2D spawned out of camera zoom does not animate correctly

Open francogp opened this issue 11 months ago • 4 comments

Tested versions

Reproducible in 4.3 - 4.4beta4, Windows + Linux, AMD and Nvidia

System information

(Forward+) Godot 4.3 - 4.4beta4, Windows 11, Linux KDE NEON, AMD and Nvidia gpu

Issue description

Creating particles out of screen does not play alpha animations correctly. The example and the video shows how creating particles inside the camera zoom animate OK (fade until disappear), but when creating outside camera zoom, they "just start animating late, and then disappear"

https://github.com/user-attachments/assets/3379ab6c-8736-4174-8efc-ebb2bb57b692

Steps to reproduce

In general:

  1. Spawn particles outside camera
  2. wait some seconds so the animation progress
  3. find the particles outside the camera, and see the problem

Using the project attached:

  1. right click to spawn 5 GPU Particles
  2. zoom out (scroll wheel) to see the 4 particles spawned outside the camera
  3. animation get broken

Minimal reproduction project (MRP)

bug-gpu-particle-2d.zip

francogp avatar Jan 07 '25 00:01 francogp

related to this bug https://github.com/godotengine/godot/issues/100834

francogp avatar Jan 07 '25 00:01 francogp

In BETA 2, it seems to improve, but alpha curves does not animate while outside screen, only when "on frame"

Image

francogp avatar Jan 31 '25 02:01 francogp

I can reproduce the problem

desarrolloit-cevt avatar Feb 04 '25 16:02 desarrolloit-cevt

Same as #32803 and other similar issues.

If your particles are one-shot, you can change their visibility rect to something very big, so it's always detected on screen. If they aren't persistent then it won't cause performance problems (unless you have lots of particle nodes off-screen).

KoBeWi avatar Feb 22 '25 18:02 KoBeWi