ofxBlur with alpha

Hey all,

I’m currently working on a project where I need to add a blur to a .png image.
I found out about ofxBlur which works fine with non-transparent images but as soon as I want to use a transparent one things get a little messy. Looks like some other other stuff on my GPU comes along to ‘fill up the transparency’. (image is added)

I don’t know if I’m not aware of some functionality, or if transparency is not supported in the add-on or maybe I’m just plain stupid.
In any of this cases it would be awesome if somebody here could help me out here or at least point me which of these is the case!

(I’m using OS X 10.7.2 by the way)

Thank you very much!

Cheers,
Ramon

[tt]#include “ofApp.h”

void ofApp::setup() {
ofEnableAlphaBlending();
image.loadImage(“leaf.png”);
blur.setup(image.width, image.height);
blur.setScale(0.01);
ofBackground(128);
ofSetBackgroundAuto(true);
}

void ofApp::update() {
image.update();
}

void ofApp::draw() {
blur.begin();
ofSetColor(255, 255, 255, 255);
image.draw(0,0);
blur.end();
blur.draw();
}
[/tt]

![](http://forum.openframeworks.cc/uploads/default/2306/Screen Shot 2012-05-02 at 12.16.32 .png)

I am not familiar with ofxBlur, but is ofClear() being called after the fbo.begin call? Maybe that will fix it.