Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: glBlendFunc

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    67

    glBlendFunc

    Hi
    I've 2 images. Now without special the glpoint draw is alway on top. I only can see the below with transparency. alpha 0.5 works but doesn't look very good so I wonder how to put the below above the glpoint draw image. should be possible with glBlend? but I cannot figure the right settings. Now I use :
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    which only works with alpha transparenzy 0.5
    Many thanks
    Michael

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: glBlendFunc

    Draw the point further away in Z, until it is "below".
    Or I did not understand what you want to do.

  3. #3
    Intern Contributor
    Join Date
    May 2008
    Posts
    67

    Re: glBlendFunc

    No only 2D
    I've found this but still haven't found the solution. I don't know which image is back or front...
    http://www.andersriggelsen.dk/glblendfunc.php

Posting Permissions

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