blurring shape boundaries

Mar 18, 2009 at 4:29pm

blurring shape boundaries

Hi all,
This is probably a ridiculously simple question, but I haven’t done much (any?) work in creating images in gl (I’m usually creating images outside jitter and playing back in jitter). I’m creating a simple circle (right now using jit.gl.sketch) and controlling scaling, position, and color. What I am trying to add is a blurring/feathering of the border, e.g. much like a radial blur in photoshop. And…I would love to be able to control the amount of blurring…otherwise I’d just create the image in photoshop.

Any pointers? Just not sure what object(s) to use to produce the desired effect.

Thanks!!

David

#42910
Mar 18, 2009 at 5:03pm

not as simple as you’d think. the best/only way to post-process opengl (such as blurring) is to capture to texture and run your texture through a slab with a blur shader.

this recent post does just that. my response at the end shows how to correctly do alpha-blending of multiple textures.

http://www.cycling74.com/forums/index.php?t=msg&th=38251

see if that gets it going for you.

#153647

You must be logged in to reply to this topic.