GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

[3D particle emitter] Z-Fighting? Rendering issue with transparency and other 3D objects

Open CLEDU007 opened this issue 9 months ago • 0 comments

Is there an existing issue for this?

Enter the name of the extension

3D Particle emitter

Describe the bug of the extension

First of all thank you for this wonderful extension 🙏

There is a conflict between 3D boxes that use transparency and 3D particles. As a result the particles behind the transparent texture are not rendered correctly, see the image below.

On the left, a 3D box with only 1 rendered face with a radial gradiant texture, and on the right two 3D particle emitters : bug_3d particle emitter

Steps to reproduce

  1. make a 3D box with a png texture, check "enable texture transparency" and place it in the scene
  2. make a 3d particle emitter and place it somewhere near the 3D box

You might need to move the camera and/or the objects to see the issue.

GDevelop platform

Desktop

GDevelop version

5.3.201

Platform info

Windows 10

Additional context

I did note the same issue with the 3D sprite extension: here I put a simple 3D white sprite with a 90° rotation on X for demonstration. bug_3d particle emitter 2

here is the texture used for the 3D box corrupt_zone

CLEDU007 avatar May 09 '24 16:05 CLEDU007