Claxon Posted January 28, 2014 Share Posted January 28, 2014 Hi again. I'm working with particle systems at the moment and have a specific effect that I need. Essentially it is a sun that has been created with one particle system inside of a nebula which is another particle system. The problem is that they are not depth sorted in anyway, so particles from one system will always be drawn in front of the other system. The order is determined by the particle system creation order; the last system is always drawn over the previous system. Does anyone know if BabylonJS has the ability to specify sorting for particles? I can't find anythin in the particle system code, but thought there might be something more generic elsewhere, or will I need to add support for that myself? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 28, 2014 Share Posted January 28, 2014 You're right: the particles are drawn with depth writing disabled I can create a new parameter for particles system in order to activate depth write for this specific system Quote Link to comment Share on other sites More sharing options...
Claxon Posted January 29, 2014 Author Share Posted January 29, 2014 Cool Thanks. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 29, 2014 Share Posted January 29, 2014 Could you try this version: http://www.babylonjs.com/forumpics/babylon.zip You have a new property called particleSystem.forceDepthWrite = true Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.