« Depth of Field + Tw... Mr.doob to be acqui... »

Depth of Field with Papervision3D + Sources

Aug 28th, 2007



http://mrdoob.com/lab/pv3d/dof/05

Yep, depth of field. It's the effect we get with real life cameras where a Z range from the camera view gets focused and the rest gets blurred. I wanted to implement a little trick for achieving the effect with PV3D for a while, so, what can you do if you're sick and you can't sleep? :)

!!! Warning: The effect is done in a brute force !!! It generates 200 different images of the same bitmap and changing the planes textures based on the Z to the camera. If this needed to be used for a real website tricks for optimising the amount of images should be introduced.

Here it's another test with it:



http://mrdoob.com/lab/pv3d/dof/04


UPDATE:
And if that wasn't enough... another test ;)



http://mrdoob.com/lab/pv3d/dof/06


Also, as usual, source files available:
http://mrdoob.com/lab/pv3d/dof/04/dof04.fla
http://mrdoob.com/lab/pv3d/dof/05/dof05.fla
http://mrdoob.com/lab/pv3d/dof/06/dof06.fla

Enjoy!

#permalink

Share:
Digg! ~ del.icio.us ~ Stumble ~ Furl ~ Reddit
Webs / Print / Logos... everything I do will be listed here.



If you're looking for my Actionscript experiments, here you have: