demonixis 3 Report post Posted April 18, 2014 Hi there, I'm working on the port of a webgl app using Babylon and Ejecta. It seem that i've a z-buffer issue but I don't know if the problem is from Babylon or from Ejecta. I made a video that you can watch here which show you the problem. I tested different configurations with camera projection (minZ and maxZ) but it hasn't solved my problem. Have you an idea ? In fact I don't know where to start to debug this issue. Thanks for your answers Yann. Quote Share this post Link to post Share on other sites
Deltakosh 4313 Report post Posted April 18, 2014 Is anti-aliasing on?Are they transparent objects? Quote Share this post Link to post Share on other sites
demonixis 3 Report post Posted April 19, 2014 Hi, Anti-aliasing is on and exteriors walls can be transparents but interior walls aren't. Quote Share this post Link to post Share on other sites
Deltakosh 4313 Report post Posted April 20, 2014 Can you try without aa and transparency? just to be sure Quote Share this post Link to post Share on other sites
amerkoleci 0 Report post Posted April 22, 2014 The issue is that sometime Babylon.js during clear does not test if depthMask is enabled, this is known OpenGL stuff, something like this would fix this issue:var depthWriteMask = this._gl.getParameter(this._gl.DEPTH_WRITEMASK);// Enable depth mask when clearing depth buffer. if (!depthWriteMask) this._gl.depthMask(true); this._gl.clearDepth(1.0);.. clear// Reset buffer write stateif (!depthWriteMask) { this._gl.depthMask(false); } Quote Share this post Link to post Share on other sites
Deltakosh 4313 Report post Posted April 22, 2014 I'll fix that for next version! Quote Share this post Link to post Share on other sites
demonixis 3 Report post Posted April 23, 2014 Thanks for this tips, I'll try to patch our babylon build asap and see if it solve the problem Quote Share this post Link to post Share on other sites
demonixis 3 Report post Posted April 23, 2014 The problem is still here after applied this patch. Quote Share this post Link to post Share on other sites
Deltakosh 4313 Report post Posted April 23, 2014 Crap! Quote Share this post Link to post Share on other sites
demonixis 3 Report post Posted April 24, 2014 Don't worry, we'll find why it's not working and we'll solve it Quote Share this post Link to post Share on other sites
meiroo 0 Report post Posted March 2, 2015 Don't worry, we'll find why it's not working and we'll solve it hi, demonixis, Have you fixed this issue? I have got this problem too. will you share your solution? Quote Share this post Link to post Share on other sites