godotengine / godotengine/godot
[Godot 4.3-4.4beta4] GPUParticle2D spawned out of camera zoom does not animate correctly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
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:
- Spawn particles outside camera
- wait some seconds so the animation progress
- find the particles outside the camera, and see the problem
Using the project attached:
- right click to spawn 5 GPU Particles
- zoom out (scroll wheel) to see the 4 particles spawned outside the camera
- animation get broken
Minimal reproduction project (MRP)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the attached bug-gpu-particle-2d.zip project and reproduce the issue by spawning GPU Particles, zooming out, and observing particles created outside the camera. Start by tracing the GPUParticle2D processing and camera-visibility behavior. Done means particles spawned outside the camera animate their alpha progression correctly, matching particles spawned within the camera.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100