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 5 of 5

Thread: alpha test on radeon 9700

  1. #1
    Junior Member Newbie
    Join Date
    May 2001
    Location
    san diego ca usa
    Posts
    8

    alpha test on radeon 9700

    I am trying to use a alpha test on a radeon 9700 but it does not work. I looked at my pixel format and it says i have 8 alphabits(not the cerial). My code works on nvidia video card. Here is an excerpt:


    glRasterPos2f( 0.0f, 0.0f );
    glEnable( GL_ALPHA_TEST );
    glAlphaFunc(GL_GREATER, 0.10f );

    BOOL bAlpha = glIsEnabled( GL_ALPHA_TEST );


    glCopyPixels( m_rcDevicePos.left, m_rcDevicePos.top ,
    m_rcDevicePos.Width(), m_rcDevicePos.Height(), GL_COLOR );

    the pixels i am trying to copy are in RGBA format. I asked for 24 bit color but got 32 bits which i expected to happened and is not a problem. I also asked for 8 alpha bits and got them.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,652

    Re: alpha test on radeon 9700

    It works fine w glDrawPixels (and geometry rendering), that's all I know.

    What exactly happens? No pixels discarded? All pixels discarded?

    Do you call glColorMask anywhere in your code?

    Does it work as expected if you 'emulate' glCopyPixels with a sequence of glReadPixels to a system memory buffer followed by glDrawPixels?

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Location
    san diego ca usa
    Posts
    8

    Re: alpha test on radeon 9700

    It will not mask anything, even when i replace the GL_GREATER with GL_NEVER.

    I am trying to copy the pixels from the front buffer to the back buffer, after drawing new line strips or quads or whatever.

    No i am not doing any color masks.

    Thanks by the way for trying it out.

  4. #4
    Junior Member Newbie
    Join Date
    May 2001
    Location
    san diego ca usa
    Posts
    8

    Re: alpha test on radeon 9700

    I just tried drawpixels and it works, but to do the drawpixels i have to do a read pixels and that is just to slow on an ati radeon card.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,652

    Re: alpha test on radeon 9700

    Just looked it up to make sure. In section 4.3.3 CopyPixels is specced to behave exactly like a ReadPixels/DrawPixels sequence (without the intermediate buffer, of course). Ie this looks like a driver bug.

    You should prepare a minimum test case application (I'd suggest using GLUT) and send that to ATI devrel along with source code and a description.

Posting Permissions

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