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
Particle collision with a GPUParticlesCollisionSDF3D does not work after baking until the scene is saved and reloaded.
Also, if you clear the texture data while the scene is open, SDF collision will still work (even though it shouldn't).
This hints at a signal not being emitted or a function not being called when the GPUParticlesCollisionSDF3D's texture property changes.
Enable collision on the GPUParticles3D's process material. Also increase the GPUParticles3D's amount to 100 and lifetime to 10. On the process material, change the emission shape to Sphere so you can see particles falling down individually.
Add a GPUParticlesCollisionSDF3D that covers the entire MeshInstance3D.
Select the GPUParticlesCollisionSDF3D node and click Bake SDF at the top of the 3D viewport.
Notice that the particles doesn't collide with the generated SDF.
Save the scene then use Scene > Reload Saved Scene in the top-left corner of the editor.
Notice that the particles now collide with the generated SDF.
This issue and #53851 might be caused by the same thing. What both of these issues have in common is that they go away if you reload the scene, which means there might be something that is not properly updated at the time these resources are created and only after a scene is loaded.
Godot version
4.0.alpha8
System information
Fedora 34, GeForce GTX 1080 (NVIDIA 510.60.02)
Issue description
Particle collision with a GPUParticlesCollisionSDF3D does not work after baking until the scene is saved and reloaded.
Also, if you clear the texture data while the scene is open, SDF collision will still work (even though it shouldn't).
This hints at a signal not being emitted or a function not being called when the GPUParticlesCollisionSDF3D's
texture
property changes.I stumbled upon this while working on #60992.
Steps to reproduce
Minimal reproduction project
test_gpuparticles3d_sdf_collision_2.zip
The text was updated successfully, but these errors were encountered: