• Create Account

### #ActualTheChubu

Posted 28 December 2012 - 09:31 AM

Yes! Got it! Though there is something terribly wrong with my depth test I think.

GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glCullFace(GL11.GL_BACK);
GL11.glFrontFace(GL11.GL_CW);

GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glDepthFunc(GL11.GL_GEQUAL);
GL11.glDepthRange(0.0f, 1.0f);

If i change it to GL_LEQUAL seems like every depth test fails and I see nothing. Probably there is something wrong with the data or my perspective matrix, maybe I'm not drawing in the correct order.

### #1TheChubu

Posted 28 December 2012 - 09:30 AM

Yes! Got it! Though there is something terribly wrong with my depth test I think.

GL11.glEnable(GL11.GL_CULL_FACE);
</p><div>GL11.glCullFace(GL11.GL_BACK);</div>
<div>GL11.glFrontFace(GL11.GL_CW);</div>
<div> </div>
<div>GL11.glEnable(GL11.GL_DEPTH_TEST);</div>
<div>GL11.glDepthRange(0.0f, 1.0f);