You most probably ran into a sorting problem. To display transparent geometries correctly the faces of the object have to be sorted from back to front Unfortunately there is no built-in support for that in opengl-es (or in any gfx-library in existance). The only possibility is to sort your polygons, recreate your object each frame and draw it with correctly ordered faces A workaround would be using additive transparency instead of normal transparency.
Additive transparency is an order independent calculation. You have to remember to turn off z-buffer writes while drawing because otherwise some geometry may be ocluded Additive transparency is achieved by setting both blendfunc values to GL_ONE.
You most probably ran into a sorting problem. To display transparent geometries correctly the faces of the object have to be sorted from back to front. Unfortunately there is no built-in support for that in opengl-es (or in any gfx-library in existance).
The only possibility is to sort your polygons, recreate your object each frame and draw it with correctly ordered faces. A workaround would be using additive transparency instead of normal transparency. Additive transparency is an order independent calculation.
You have to remember to turn off z-buffer writes while drawing because otherwise some geometry may be ocluded. Additive transparency is achieved by setting both blendfunc values to GL_ONE.
I don't have a transparent hierarchy. Opacity of the polygons are same. My problem is with the texture.
I have transparent . Png . Which is opaque for the first drawn surface of the cube.
I have also cleared the CGcontext . – Vignesh Aug 18 at 13:58 could you upload a screenshot somewhere? Maybe that could help finding the problem.
– Tobias Schlegel Aug 18 at 14:04 Ya. I will do that. – Vignesh Aug 18 at 14:08 I have uploaded the image!.
The red side is opaque. The red polygon is drawn first. If I draw the yellow face first it becomes opaque.
– Vignesh Aug 18 at 14:23 1. I corrected a mistake, I meant back to front, not front to back. 2.
That pretty much looks like the problem I described. The first face you draw is blended with the black background and then looks opaque. If that face is indeed the face that is farest away, everything looks ok, until you rotate the cube.
Then the first face is drawn "opaque" (it's not blended with anything on the screen) and the others are hidden behind that face because of z-buffer clipping. – Tobias Schlegel Aug 18 at 14:30.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.