Out-focusing effect?

djtoshi182's icon

Hello

I would like to ask you any good effect for adjusting out-focusing effect on webcam input.
not just blurring. I would like to make it almost look like real camera out-focusing.
ideas?

or is there any real zoom lens adjustable by digital output?

thank you

Rob Ramirez's icon

i think the term you are looking for is depth of field.
i don't believe there's a way to add dof effect to 2D images.
however it's possible with 3D scenes, although a bit complicated.

attached is an example with the necessary shaders that should work with max 5.

1167.dof-example.zip
zip
djtoshi182's icon

Thank You, Rob.