Results 1 to 4 of 4

Thread: blending problem

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    9

    blending problem

    Hi,
    I have a problem with alpha blending
    I enable the blend function with glEnable(GL_BLEND)
    but when i enable the glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA) the command haven't effect but if i do glBlendFunc(GL_SRC_ALPHA,GL_ONE) the alpha blending is correct ... WHY???
    Thanks a lot
    Matteo

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353
    How about some more information, like the OpenGL ES implementation you are using, and the color/alpha values you are using for blending?
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    Jul 2006
    Posts
    9
    I don't understand what you have know ?
    I use two passes , first pass i draw the opaque object leand with second i
    glEnable(GL_BLEND);
    glBlandFunc(GL_SRC_ALPHA,ONE_MINUS_SRC_ALPHA);
    but there isn't effect, insted i use .....GL_ONE all is ok

  4. #4
    Senior Member
    Join Date
    May 2006
    Posts
    353
    What hardware/device/renderer are you testing this on? What alpha values are you using? And what result are you expecting, given a transparent surface of a certain color on top of another surface?
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. alpha blending problem
    By 0stress in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 10-06-2006, 09:14 AM
  2. Problem with blending,imposing of translucent polyg on solid
    By IFireman in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 09-09-2005, 05:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •