Bokeh Effect -- Can It Be Done?

Share your Inkscape tricks and tutorials here.
volomike
Posts: 9
Joined: Thu May 22, 2008 5:29 am

Bokeh Effect -- Can It Be Done?

Postby volomike » Sat Jan 23, 2010 2:40 am

Can the Bokeh Effect be done in Inkscape? Specifically I'm wanting to flesh out how the background on this site was done, but do it in Inkscape.

http://www.friskdesign.com/

More info on the Bokeh Effect is here:

http://en.wikipedia.org/wiki/Bokeh

Other sites doing the Bokeh Effect are here:

http://inspiredology.com/bokeh-effect-in-web-design/

And if you think I need to combine both Inkscape and Gimp together, then fine -- let me know. Thanks!

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Bokeh Effect -- Can It Be Done?

Postby prkos » Sat Jan 23, 2010 5:54 am

You can do this very easily in Inkscape, use Tiled clones to create circles with varying opacity and blur, you can probably use tiled clones to make the rays too or create lines and rectangles and blur them.

Use tweak tool to scatter the circles in directions you like.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
syllie
Posts: 48
Joined: Fri Jan 15, 2010 3:51 pm
Location: Sydney, Australia
Contact:

Re: Bokeh Effect -- Can It Be Done?

Postby syllie » Sat Jan 23, 2010 5:56 am

prkos beat me :)

There is currently no filter in Inkscape that creates this effect. It is however possible to define your own filters. As Bokeh is basically a convolution of the base image with the shape of the diagfragm, it should be possible to create such a filter through the filter dialog. However, I am not yet advanced enough with this to tell you for sure that it can be done and certainly not how. I understand that for a good lens blur a fourrier transformation is required and I am not sure that can be done within Inkscape filters.

The effect you show on the website could be quite easily simultated by using circles in different transparencies, scatter them using tiled clone, use them as a pattern along a path and then apply selective blurs - as it does not resemble a true Bokeh.

And finally a tutorial how to do a type of Bokeh in GIMP.

I hope others can add more useful information.

Cheers,
Syllie
Life is the art of drawing without an eraser. (John W. Gardner)

http://verysimpledesigns.com - graphics resources
http://syllie.com - personal website

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: Bokeh Effect -- Can It Be Done?

Postby heathenx » Sat Jan 23, 2010 6:53 am

I was just talking with one of our viewers regarding this same effect. I think prkos nailed it on the head. I would use tiled clones with random blur, opacity, and size as well. You might want to start out in outline mode first though. It will run much faster. When finished just flip back to normal mode to see the rendering. ;)


Return to “Tricks & Tutorials”