PDA

View Full Version : DOF and hair


SystemofaDown
09-21-2007, 06:32 AM
Is it possible to have depth of field effects with hair? No matter what I do the whole scene turns blurry. I tried to put spheres where the hair is suposed to be to check if i my DOF settings were wrong, but it came out the way i wanted. But when i replace the spheres with hair objects, the whole image became a blur. So my question is: Can i have depth of field effects when there are hair objects in my scene? Also if there is a transparent object C4D ignores it and leaves it in focus.

the whole AR system needs to be updated:rolleyes:

bobtronic
09-21-2007, 07:33 AM
Hair and DOF can not be used together. You have to render out a depthmap and do the DOF in PS, AFX etc.

cheers,
Bob

LucentDreams
09-21-2007, 07:39 AM
sadly no. Hair is a volume effect and thus the DOF which is just a post effect doesn't see the volumes. You can set the hair object to generate geometry an use the hair channel shader instead of the hair material for the shading. this can look very good but uses a lot of memory as the hair is actual physical geometry. It will work with all post effects though.

Only other option is to render depth passes and do it in post, which honestly I'd say is better than rendering using cinema's DOF post effect.

SystemofaDown
09-21-2007, 08:28 AM
Thanks for the replies guys. I tried making a depth map and doing it in AFX but it didnt look too good since both of my objects are hair objects and are in front of each other. I have another idea though. Rendering out the background with the object furthest from the camera. And rendering another one out with the object nearest to the camera with an alpha map. That way ill have two layers in AFX and i can blur them seperatly.

Thanks again for the quick reply.

Uncle-Ox
09-21-2007, 08:33 AM
If you don't have an app with which you can do the DOF in post, you could use zBlur by 3D Attack (http://www.3dattack.com) which will allow you to use DOF with hair. It even has a little gizmo that'll give you the option to do a post DOF.

SystemofaDown
09-21-2007, 05:57 PM
If you don't have an app with which you can do the DOF in post, you could use zBlur by 3D Attack (http://www.3dattack.com) which will allow you to use DOF with hair. It even has a little gizmo that'll give you the option to do a post DOF.

My first attempt was with zblur, It didnt work so i thought zblur didnt support hair. So i tred with the c4d dof and that didnt work. I also tried using object buffer to render out each object seperetly so i can blur it in afx, that didnt work either. Hair looks invible to the c4d camera lol.

CGTalk Moderation
09-21-2007, 05:57 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.