PDA

View Full Version : How to add a Defocus node to more than one renderlayer?


javierdl
02-13-2010, 05:30 PM
Unfortunately the tutorials I've found so far they all deal with a case of only one renderlayer, see the noodle below:

http://wbs.nsf.tc/tutorial/images/dof_11.jpg

But when you have many renderlayers, then it's not so obvious (image below). At least not to a Nodes rookie like me :(
http://a5zi3w.bay.livefilestore.com/y1pwdMYd3BBUcy4Hjjj0ZMqfKeDZCS0s8v3kmLAgBfvTxqnmbcb-nEV0Z5nhVyfo46SDFDRKgl3JMzSbmne3-XN4TXVAeVyrke6/defocusnoodle01.png
The problem with the noodle above is that the Defocus node is only being applied to the last renderlayer (J window), see prove below:
http://public.bay.livefilestore.com/y1pgEVJzvpEoO3DYXtOq8Bk5Pg44Lri3l__kyD7fY-T1ZGYoGWRxpjtAodaslg6vVQltHV0SleKr_ostoKD0l98xA/onlyglass_dofed.png

There must be some type of node that I can use to make this work. Can some Nodes expert enlighten me please?

JDL

c 4
02-14-2010, 12:19 PM
What if you take the Z channel from the Base layer instead of the one from J window ?

javierdl
02-15-2010, 04:01 AM
Yes! :bounce:
We've got a winner!

http://a5zi3w.bay.livefilestore.com/y1puX6MN1t1qGe0AkVvj7dYt0ItfJikiaVOqU7C2EJMUss6iBDBQg6req033MHESIBrGnJTryuPtttzTnQMMyTpHTUtddrcqpGB/jdlwebfoliotitle_defocused.png

http://a5zi3w.bay.livefilestore.com/y1pagxvI5mc94S6mK94UdrpjVQ7gnkyRyf1LVS7t-h5B__9Y84LtgUC7mKgkO-K115qtEscTzEA0qC7WRRxxWLv8ia-a4lw9ihA/jdlwebfoliotitle_goodnoodle.png

Thank you so much c 4 :)

JDL

c 4
02-15-2010, 10:00 PM
You're welcome, glad it worked :)

CGTalk Moderation
02-15-2010, 10:00 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.