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: HL BSP but this time OpenGL too!

  1. #1
    Junior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Sofia,None,Bulgaria
    Posts
    107

    HL BSP but this time OpenGL too!

    Well this time nobody can tell me nothing since the HL BSP question is connected with OpenGL.Some of the textures that need to be blended have BLUE color as background.Can some one tell be what combination of blend functions must i use in order to blend the *****' BLUE color.I have something in mind.In the WAD loader the convert the pure blue(0,255,0) color of each texture than must be blended to black(0,0,0) and then i'll use default blending.If anybody can help than do it now.

    Thanks and bye!
    The pain is coming...THIS SUMMER!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2002
    Location
    Espoo, Finland
    Posts
    599

    Re: HL BSP but this time OpenGL too!

    Hi,

    It's better to add the alpha component, set alpha=0 at the blue texels, and elsewhere alpha=1. Then it's easy to do blending based on the alpha values.

    -Ilkka

  3. #3
    Junior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Sofia,None,Bulgaria
    Posts
    107

    Re: HL BSP but this time OpenGL too!

    10x a lot.I was thinking about that too but i'll have to change some code at the WAD loader.And can you tell me what do you think of the WAD files.Can they be usefull for me???
    The pain is coming...THIS SUMMER!

Posting Permissions

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