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: Addtive texture transparency

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2000
    Posts
    4

    Addtive texture transparency

    hi!

    how can i get additive transparency when drawing my textures? i use Blend( ONE, ONE ); but it doesn´t work as i expected.

    i want saturated add:

    Rs+Rd = (Rs+Rd) > 255 ? 255 : (Rs+Rd);

    thx!

    PD: do i have to use any extension like env_combine?
    [m u r c i]

  2. #2
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,444

    Re: Addtive texture transparency

    Well ... glBlend(GL_ONE,GL_ONE) actually works that way (at least should work that way)

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2000
    Posts
    4

    Re: Addtive texture transparency

    i've found the problem...it was the zbuffer, (cause i'm not using to use zbuffering) that 'was eating' some pixels from the triangle...

    thx anyway!!!
    [m u r c i]

Posting Permissions

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