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

Simple blend mode question

$
0
0

@aaa wrote:

ofImage img1;
img1.load("postit0.png");
ofImage img2;
img2.load("postit4.png");

img1.draw(0,0);
ofEnableBlendMode(OF_BLENDMODE_ADD);
img2.draw(100,100);
ofDisableBlendMode();

This should blend the two images, right? I've been pouring through forum questions like this and haven't come across anything that has worked. I feel like I'm misunderstanding something fundamental here. I use blending in lots of other applications, can't seem to get it with OF. Alpha blending is enabled, have tried it disabled, too.

I've also tried adding some things such as img2.setImageType(OF_IMAGE_COLOR_ALPHA);
in case the blend was only being applied to the alpha channel for some reason. Still stuck.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles