ARTICLE DETAIL:

Simple Depth-of-field in Processing

by pixelpusher on Friday 25 June 2010
[Blog]

I hacked up an example of doing depth-of-field in Processing, based in part on the Bloom example that comes with the GLGraphics library, and heavily in part on Memo’s pervious experiment with DOP.  It does depth-of-field based solely on the brightness of the pixels, and relies on the fact that the background is white, but heck it’s decent.  I’ll use this for an upcoming black-and-white realtime Processing project.  Note: this won’t run on an old minimac or Macbook or netbook, I tried and it fails because of lack of OpenGL shader support.

Code at http://stuff.openlabworkshops.org/dof_test_2.zip

No Comments Digg del.icio.us

No comments have been added to this post yet.

Leave a comment




Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI

 
pixelpusher

Promote Your Page Too