*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
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!
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
January 16th 2009, Jon Snyder
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.
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...
Can find a way to migrate as a desktop wallpaper...
*profile

traditional id: Ricardo Cabello Miguel
based in: London, UK
more: github, twitter, twitpic, soundcloud and flattr
*post nav
Sony Blu-ray: MMG Venue
iPod Horror
Be careful when using groups.google.com
Depth of Field + Tweener fun
Opera mini
Depth of Field with Papervision3D + Sources
Mr.doob to be acquired by Hi-ReS!
New Kenta Cho game + Done with AS3 + Sources Avaliable = Happiness
Blaze-MixtapeAugust2007.mp3
Flash player to support .h264
Maxscript to AS3 Class (PV3D, Away3D & Sandy)