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: Bilboarding whaddahell? need help.

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2003
    Posts
    6

    Bilboarding whaddahell? need help.

    I cant get glAlphaFunc() to work.

    I use *.TGA 32bpp texture with an alpha channel. Alpha bits are written correctly (checked with debugger)
    But it looks like every fragment is processed like it's alpha == 1.0

    • - mode is RGBA
      - alpha test IS performed
      - glAlphaFunc(GL_EQUAL, 1.0) draws everything
      - (GL_LESS, 1.0) draws nothing.


    I wonder what might go wrong?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: Bilboarding whaddahell? need help.

    Do you upload the texture as RGBA(8)?
    what kind of texture environment mode?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2003
    Posts
    6

    Re: Bilboarding whaddahell? need help.

    Yeah.. I found out. thanx.
    one more thing:
    Remember, boys & girls, dont go easy, always use the code you've written yourselves, because someone else's code contains dangerous bugs and can be hazardous to your health.

Posting Permissions

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