Hi!
I have a scene where I'm trying to match the depth of field characteristic of a macro lens.
The red channel behaves differently than the green and blue depending on the distance from the focus plane.
When far away from the focus plane there is a cyan fringe and when closer to camera than focus plane there is a red fringe (see attached images).
Far:
Near:
I'm trying to setup a network where I'm changing the aperture map going into a vray physical camera depending on distance from focus plane, but with no success.
I have tried to switch aperture map based on path length in sampler info and also based on a ramp projection parented to the focus plane.
The only thing that happens is that a small part of the bokeh gets one of the maps, and the other part gets the other independent of distance to focus plane.
My guess is that the vray physical camera selects the aperture map in screen space before shooting out rays, is this correct?
If so, is it possible in some way to change aperture map based on distance to camera.
/Simon
I have a scene where I'm trying to match the depth of field characteristic of a macro lens.
The red channel behaves differently than the green and blue depending on the distance from the focus plane.
When far away from the focus plane there is a cyan fringe and when closer to camera than focus plane there is a red fringe (see attached images).
Far:
Near:
I'm trying to setup a network where I'm changing the aperture map going into a vray physical camera depending on distance from focus plane, but with no success.
I have tried to switch aperture map based on path length in sampler info and also based on a ramp projection parented to the focus plane.
The only thing that happens is that a small part of the bokeh gets one of the maps, and the other part gets the other independent of distance to focus plane.
My guess is that the vray physical camera selects the aperture map in screen space before shooting out rays, is this correct?
If so, is it possible in some way to change aperture map based on distance to camera.
/Simon
Comment