defocus node with yafray engine

hi

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.

but i am just curious if there might be a way.

no, because yafray does not export z values back to blender’s composite engine. BUT yafray has its own real focal blur function, why not just use that?

… yes i know it’s slower than defocus.

bingo!

you know what is really sad with all those cool features in blenders compositor you cannot use them as easy with external engines. that is just a pity.

of course does it makes sense that it does not work.

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).

Where is the blur function in YafRay, I can’t find it?

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.

thanks a bunch

mh checking it out

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 :smiley: !

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 ;)).

Attachments