Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Opacity and blending FBOs problem

$
0
0

@SebastianSobotka wrote:

I am trying to blend two FBOs and change the opacity of blending effect.
If I set a lower alpha value (blendOpacity parameter), the image becomes brighter. It makes me confused a little bit.
What am I doing wrong?

Here is a pseudo code:

        fbo1.begin()
            something...
        fbo1.end()

        fbo2.begin();
            ofClear(255, 255, 255, 0);
            fbo1.draw(0, 0);

            ofEnableBlendMode(blendMode); //OF_BLENDMODE_MULTIPLY
            ofSetColor(255, 255, 255, blendOpacity);
            pic.draw(0, 0);
            ofSetColor(255, 255, 255);
            ofDisableBlendMode();
        fbo2.end();

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929