http://mrdoob.com/lab/pv3d/dof/05Yep, 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/04UPDATE:And if that wasn't enough... another test ;)
http://mrdoob.com/lab/pv3d/dof/06Also, as usual, source files available:
http://mrdoob.com/lab/pv3d/dof/04/dof04.flahttp://mrdoob.com/lab/pv3d/dof/05/dof05.flahttp://mrdoob.com/lab/pv3d/dof/06/dof06.flaEnjoy!