godotengine / godotengine/godot

Animated CanvasMaterials in Particles2D do not play nicely together with trails.

Open
#97,667 1 comment 0 reactions 0 assignees View on GitHub
bug topic:particles
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in: 4.3.stable.mono.official [77dcf97d8]

### System information

Godot v4.3.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 Ti (NVIDIA; 32.0.15.6109) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 Threads)

### Issue description

When enabling trails, while using `CanvasMaterial` animation the entire particle effect will be stretched vertically.

Example Video:
https://github.com/user-attachments/assets/0cae32cb-185c-4e31-96fc-fbe98acdb59f

It's worth mentioning this does not seem to occur when using `AnimatedTexture` which is now deprecated. When using `AnimatedTexture` it acts in a more expected manner.

### Steps to reproduce

1. Enable trails while using CanvasMaterial animation on a particle effect.

### Minimal reproduction project (MRP)

Effect used from here: https://ragnapixel.itch.io/particle-fx
[ParticleMRP.zip](https://github.com/user-attachments/files/17198115/ParticleMRP.zip)

Contributor guide

Open the contributing guide

Research direction

Start by opening the attached ParticleMRP.zip and reproducing the stretching with trails and CanvasMaterial animation in Godot 4.3. Compare the result with the deprecated AnimatedTexture behavior described in the report. Done means the animated particle effect no longer stretches vertically when trails are enabled and the reproduction behaves as expected.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.