Hi guys, I use a simple background and put an object with shadows on a plane to incrust this object in the original picture.
How can I have a depth of field applied on the background if I focus on my object ?
It seems impossible with a background object.
Thanks
depth of field with a background
Moderators: ChrisHekman, aoktar
Hi bertritude.
till 3.07-R2, you need to use this XPresso and a Visible Environment node:
viewtopic.php?f=87&t=63808
from 3.08, you can use the Calus's OSL script insted in the Projection node of the ImageTexture used in the Visible Environment node: ciao Beppe
till 3.07-R2, you need to use this XPresso and a Visible Environment node:
viewtopic.php?f=87&t=63808
from 3.08, you can use the Calus's OSL script insted in the Projection node of the ImageTexture used in the Visible Environment node: ciao Beppe
Hello Beppe !bepeg4d wrote:Hi bertritude.
till 3.07-R2, you need to use this XPresso and a Visible Environment node:
viewtopic.php?f=87&t=63808
from 3.08, you can use the Calus's OSL script insted in the Projection node of the ImageTexture used in the Visible Environment node: ciao Beppe

This is a great feature, and i was looking for ways to do this the whole day until i found this topic.
The only thing i'd like to add is that to be accurate with the dof values and results, it would be fantastic if some lines of code into the OSL, or some box to enter some value somewhere, could let us adjust the virtual distance of the backplate from the camera ( without changing its aspect ratio ) .... Because the subject pictured inside of the backplate isn't necessarily the same as the infinite distance used for this "environment texture" object.
>> this is important, to have an accurate dof result, a more or less correct distance from the subject to the camera used, and in relation to the objects in the scene. Then, the bokeh result would be adjustable with a lot more accuracy.
How could we do that please ? Thank you !
Hi,
nice to hear you find this useful
But, from what you have written, since both solutions are using the Environment node, you should need something different, like a plane parented and facing to the camera, that scales on X and Y, while moved on Z, to be used as backplate at the desired distance
ciao,
Beppe
nice to hear you find this useful

But, from what you have written, since both solutions are using the Environment node, you should need something different, like a plane parented and facing to the camera, that scales on X and Y, while moved on Z, to be used as backplate at the desired distance

ciao,
Beppe