OpenGLES iPhone Depth Blending problem
Posted
by user359103
on Stack Overflow
See other posts from Stack Overflow
or by user359103
Published on 2010-06-05T08:57:22Z
Indexed on
2010/06/05
9:02 UTC
Read the original article
Hit count: 203
Hi,
I am trying to make an OpenGLES 2.0 cube application. The idea was to have a texture (with an alpha 75%) applied to all 6 faces of the cube. This would mean that even if I rotate the cube i would be able to see all 6 faces at any given frame. Now I have enabled depth test(my app needs this!!) and blending. The Depth func is LEQUAL and blend func is SRC_ALPHA, ONE_MINUS_SRC_ALPHA.
Now, the issue is that at some cube faces don't show the underlying faces. I am not able to understand this because the logic works fine with the other cube faces. Just for the record, I have disabled CULL_FACE.
Thanks in advance.
Regards,
Puzzler
© Stack Overflow or respective owner