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: blendfunc grey + grey = black?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    7

    blendfunc grey + grey = black?

    Hello, excuse my bad english in advance..

    I've a problem:
    I wanna make some shadows on a plane, and there are some shadow-objects which overlap. I wanne make them kind of grey and when they overlap they should get darker. I am trying to use blending for solving this. I know there is the math-function, behind it, and i've seen this constants which i can give at blendfunc. (i tried them randomly). Before i get out my calculator, does anybody know how to get the blendfunc to make quite the opposite. I wanna have the objects become darker when they overlap, but they turn brighter.

    regards && tia
    tito_h

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2009
    Location
    Beyond the Third Dimension
    Posts
    12

    Re: blendfunc grey + grey = black?

    This is only a guess, but could you pass a negative value into one or both parameters of glBlendFunc?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    7

    Re: blendfunc grey + grey = black?

    I tried this with a lot of modfications.

    One thing i would need is to reverse the colours. What is brighter needs to be darker etc.

Posting Permissions

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