godotengine / godotengine/godot

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

Open
#101,199 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic:2d topic:particles
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:

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.