*blog... kind of... *rss 



Depth of Field with Papervision3D + Sources


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!
5 comments

Hello, I'm curious as to which pv3d release this was used with? I have the latest release and this thing isn't being too friendly
Uhm, I don't remember. You can try using that flash tracer for Firefox. So you can see the traces of a movie. Papervision3D used to do a trace on init saying the version...
hello mr. doob! i love the first example above and downloaded you fla and testing on it.. i would love to try having different 'pearls/mappings' flying around but i cant get it done. How would you do this?? could you give me a hint? thank you very much.
Well, if all of the sprites are the same, maybe is because the effect has that limitation... ;)

If you want to have different images, then maybe you could just have 1 level of blur and fadein/out based on the sz. That's how it was done for the ices on the new Jagermeister site.

Hope this works as a hint.
dude, Very nice work, clean. I like it

Can find a way to migrate as a desktop wallpaper...