OpenGL Alpha problem.

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

  1. OpenDL macrumors newbie

    Joined:
    Jan 31, 2014
    #1
    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.

    [​IMG]

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

    Joined:
    May 16, 2013
    #2
    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

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

Share This Page