i am curious if it is possible to use the defocus node with render results made with yafray.
is there a way to do that? as far as i can see the defocus node works with values Blenders internal engine is providing (z information etc.) and thus this might explain why I was not able to get it working with yafray.
Yes, you can use the defocus node with yafray. Yafray does pass depth info to blender. Always has.
However, composite nodes don’t work the normal way. You have to use a workaround by using the ‘Re-render this layer’ button of the Render Result composit node (the small icon button in the lower right corner of the panel).
If you have set yafray as render engine in the render options , then with the camera selected go to the camera edit buttons (F9), there you will find a ‘Yafray DoF’ panel with all required settings for focal blur.
I noticed the trick for applying compositing node settings to a Yafray-rendered image with the ‘re-render’ button…
You have to use a workaround by using the ‘Re-render this layer’ button of the Render Result composit node (the small icon button in the lower right corner of the panel).
… but what if you want to apply these settings to an animation? The trick does not work when you press “Anim”, that is, when you render more than one frame and want to aplly the compositing effects to all output pictures. Is there a less tedious way than render each separate frame with the re-render button, save picture, go to next frame, re-render, etc… :eek: ? I’m asking this cause it gets really frutrating to know there IS that feature, only it seems not to work properly! Actually I am very happy ther’s a way to do it, but I would be more than happy if I could let blender do it automatically !
You can load your yafray render and apply the defocus node/filter to it, using the z info from a internal blender render (attacked image shows how one would set/link it up, sorry I don’t have time to make any renders but I’ve done it before & know it works ;)).