[3D particle emitter] Z-Fighting? Rendering issue with transparency and other 3D objects #1280
Open
1 task done
Labels
⚠ Issue with an extension
An issue with an extension that is already on the extension store
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](https://private-user-images.githubusercontent.com/145852624/329312714-a032b08c-cf3f-4e68-8a9b-94ac825b9c7f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjYzNDAsIm5iZiI6MTcyNTQyNjA0MCwicGF0aCI6Ii8xNDU4NTI2MjQvMzI5MzEyNzE0LWEwMzJiMDhjLWNmM2YtNGU2OC04YTliLTk0YWM4MjViOWM3Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNFQwNTAwNDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYTExNjU4MTE3ZWRiOWUyYjdiYTk1MzYyYjBkMjFiM2Q2NTQzZGQ2ZmZjMTlmNjk0NjdjZTRjMTkzY2UyMmZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oRbtMHKfYPvw30wNAsS66UT428KVzUCGgt_Cgu5CWuM)
Steps to reproduce
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](https://private-user-images.githubusercontent.com/145852624/329315421-1a1d7d53-5ce5-4fcf-b663-98f3ce121a96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjYzNDAsIm5iZiI6MTcyNTQyNjA0MCwicGF0aCI6Ii8xNDU4NTI2MjQvMzI5MzE1NDIxLTFhMWQ3ZDUzLTVjZTUtNGZjZi1iNjYzLTk4ZjNjZTEyMWE5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNFQwNTAwNDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZmUxOTNkNDY3M2E2MjBkZDkyMWMzN2ZlZDIxNWQ5NDIwNzE0MWUyMjk3YTNjZDY4N2JmYjI1M2Y3Mjk0NTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.GbvmUthXUxBtnF-rUb3aI9d49cGpZotOw313Ro0AeuY)
here is the texture used for the 3D box
![corrupt_zone](https://private-user-images.githubusercontent.com/145852624/329318934-8805066f-daa1-4f20-b304-968a13999abf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjYzNDAsIm5iZiI6MTcyNTQyNjA0MCwicGF0aCI6Ii8xNDU4NTI2MjQvMzI5MzE4OTM0LTg4MDUwNjZmLWRhYTEtNGYyMC1iMzA0LTk2OGExMzk5OWFiZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNFQwNTAwNDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02YjA5ZmVjYWE1M2JkZTE0NTYyNjQyZWQ1MWQzOGU1OGNkNmEzNjc0Y2E2NzYzNWI4ZjE5MTdkNmUyYmFjMDcwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.khX-j4OIfV3_tH5vf-3oEe32ll0tfyzo1GcVl3OksSc)
The text was updated successfully, but these errors were encountered: