Re: Seeking Help with OpenGL Depth Buffer Issue
Posted by xghost on Oct 14, 2014; 12:05pm
URL: https://forum.jogamp.org/Seeking-Help-with-OpenGL-Depth-Buffer-Issue-tp4033219p4033343.html
Hi all,
I was able to find the root-cause of the depth testing-related problem I was having. It was the near clip plane value, which was, at some point, (re)set to 0.0. The near clip plane value being set to 0.0 causes OpenGL to happily behave as if there's no depth testing enabled. OpenGL does not raise errors in the case when the clip plane values are outside of their expected range. I had read about this several times and I remember checking for these values specifically a while back. Perhaps I had the change in a different branch and I threw it away at some point so it never occurred to me that it would be there. Anyway, I still managed to keep the issue there somehow, but it's now fixed 😐
Regards,
-x
PS: The math was correct ;)