demonixis Posted April 18, 2014 Share 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 Link to comment Share on other sites More sharing options...
GameMonetize Posted April 18, 2014 Share Posted April 18, 2014 Is anti-aliasing on?Are they transparent objects? Quote Link to comment Share on other sites More sharing options...
demonixis Posted April 19, 2014 Author Share Posted April 19, 2014 Hi, Anti-aliasing is on and exteriors walls can be transparents but interior walls aren't. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 20, 2014 Share Posted April 20, 2014 Can you try without aa and transparency? just to be sure Quote Link to comment Share on other sites More sharing options...
amerkoleci Posted April 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
GameMonetize Posted April 22, 2014 Share Posted April 22, 2014 I'll fix that for next version! Quote Link to comment Share on other sites More sharing options...
demonixis Posted April 23, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
demonixis Posted April 23, 2014 Author Share Posted April 23, 2014 The problem is still here after applied this patch. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 23, 2014 Share Posted April 23, 2014 Crap! Quote Link to comment Share on other sites More sharing options...
demonixis Posted April 24, 2014 Author Share Posted April 24, 2014 Don't worry, we'll find why it's not working and we'll solve it Quote Link to comment Share on other sites More sharing options...
meiroo Posted March 2, 2015 Share 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 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.