You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use QueueFree on a GPUParticles3D, sometimes weird artifacts show up at other locations. These artifacts are purple to green, in completely off shapes. This only happens when I set vertex_color_use_as_albedo to true in the draw pass material. All other settings are default.
Steps to reproduce
Create GPUParticle3D, set vertex_color_use_as_albedo to true and call QueueFree on it.
Run Test.tscn. Spawner will periodically spawn new "Cannonballs" which include a GPUParticle3D. The auto-run animation in Cannonball::AnimationPlayer will call QueueFree on the Cannonball. As the issue does not show at every QueueFree, you may need to run the scene a little bit. It is intended, that you cannot see the particles themselves, but you'll see the artifact.
The text was updated successfully, but these errors were encountered:
Hi Fracteed, thank you for the quick reply! I added a script to the cannonball with a method "Die" that calls call_defered("queue_free") on itself, as I found better way to call this from the animation player. The animation player then calls "Die" instead of QueueFree. Same result, I still get the artifacts.
I guess it was worth a try. You could also try calling the method from a script rather than animation player. I have a ton of particle systems in my game and haven't seen this glitch on node freeing.
But in general, there are still issues with particles at the end of their life, so maybe that is what you are seeing? The transforms of particles do sometimes get reset to the world center upon their death instead of just disappearing, so you will get a sudden flashing effect in the world center for a frame. This was meant to have been fixed recently, but I still see it randomly, as have other devs.
I think this may be due to particles that scale down to zero over their lifetime, but I am not totally sure.
Godot version
v4.1.rc2.mono.official [4642448]
System information
Godot v4.1.rc2.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 Ti (NVIDIA; 31.0.15.1694) - AMD Ryzen 7 2700X Eight-Core Processor (16 Threads)
Issue description
When I use QueueFree on a GPUParticles3D, sometimes weird artifacts show up at other locations. These artifacts are purple to green, in completely off shapes. This only happens when I set vertex_color_use_as_albedo to true in the draw pass material. All other settings are default.
Steps to reproduce
Create GPUParticle3D, set vertex_color_use_as_albedo to true and call QueueFree on it.
Minimal reproduction project
IssueMRP.zip
Run Test.tscn. Spawner will periodically spawn new "Cannonballs" which include a GPUParticle3D. The auto-run animation in Cannonball::AnimationPlayer will call QueueFree on the Cannonball. As the issue does not show at every QueueFree, you may need to run the scene a little bit. It is intended, that you cannot see the particles themselves, but you'll see the artifact.
The text was updated successfully, but these errors were encountered: