OpenGL Alpha problem.

Discussion in 'iOS Programming' started by OpenDL, Jan 31, 2014.

  1. OpenDL macrumors newbie

    Jan 31, 2014
    Hi, I am trying to render two partially transparent 2D sprites, with the same alpha value, one on top of the other, the transparency is achieved by setting the alpha value in the ColorArray.

    My question is this: Is it possible that the intersection area of the two partially transparent objects to have the same initial alpha value? What I have now is something like the sum of both objects alpha value...

    Please take a look at the attached image, which I think it describes the problem in a better way.


    Your help would be much appreciated.
  2. teagls macrumors regular

    May 16, 2013
    You might try disabling depth testing. That way when the particle is drawn it override what ever is in the buffer.
  3. charmofmaking macrumors member

    Feb 2, 2013
    Did you find a way to do this? I have the same problem.

Share This Page