CGTalk > Techniques > Compositing and Editing
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 10-11-2012, 06:52 PM   #1
JaredTaylor
Technical Artist
 
JaredTaylor's Avatar
portfolio
Jared Taylor
Wellington, New%2BZealand
 
Join Date: Jan 2007
Posts: 1,230
Proper DOF in Nuke

I'm working on a scene, but zblur is really really ugly, it's not even proper depth of field it just smudges my image. Defocus looks a lot closer but can't be used with a zdepth pass afaik.

Is there a way for me to get a proper depth of field pass that I can turn on/off in nuke?

I was hoping I can render it out of vray + maya and use as a separate image to merge into my composition.

This here is the scene I'm working on if seeing it helps at all. It has that ugly zblur in it. During school for my still life project I ended up just suffering an 11.5 hour render time so as to not have to use zblur... I NEEDED the shape to match a camera's.

 
Old 10-12-2012, 01:39 AM   #2
JamesNZ
Frequenter
portfolio
James W
Wellington, New Zealand
 
Join Date: Jun 2012
Posts: 166
Defocus w/ a Z-depth pass as mask is working fine over here:

What's does your Z map look like? Remember that if it's a floating point image you'll probably have to lower the gain values to get the data to appear.
__________________
"For what is a man profited if he gains the whole world but loses his own soul?"

- Jesus
 
Old 10-12-2012, 01:44 AM   #3
JaredTaylor
Technical Artist
 
JaredTaylor's Avatar
portfolio
Jared Taylor
Wellington, New%2BZealand
 
Join Date: Jan 2007
Posts: 1,230
My zdepth map is fine, it works properly, it's zblur that produces an ugly result. I want the filter shape, zblur has this option but it doesn't work well at all.

I'm trying to get a good bokeh effect and zblur just smudges an image which doesn't look like proper DOF at all.

Should end up something like this, not a guassian blur

I will try defocus again... but not sure I know how to make it work. I'm not good with nuke, a year ago or more when I was doing this I was told it couldn't work in that way; so how do you do it?


Last edited by JaredTaylor : 10-12-2012 at 01:50 AM.
 
Old 10-12-2012, 03:27 AM   #4
ndeboar
Lord of the posts
 
ndeboar's Avatar
CGSociety Member
portfolio
Nick Deboar
Lighting TD
AU
 
Join Date: Nov 2004
Posts: 1,184
 
Old 10-12-2012, 03:31 AM   #5
JaredTaylor
Technical Artist
 
JaredTaylor's Avatar
portfolio
Jared Taylor
Wellington, New%2BZealand
 
Join Date: Jan 2007
Posts: 1,230
Quote:
Originally Posted by ndeboar


I'll look into that, cheers.
 
Old 10-12-2012, 08:56 AM   #6
pingking
Expert
portfolio
michael vorberg
digital compositor
freelance
stuttgart, Germany
 
Join Date: Sep 2009
Posts: 638
the zblur node does just a blur based on the depth channel (as the names tells you), a proper depth defocus doesnt come with nuke (well, the upcoming nuke7 has one). you have to look into plugins like the one posted already or the frischluft lenscare plugin.

the zblur in nuke can give you some circle bokehs if you set the filter shape slider to 1. this works best if you have higlights with values above one and a very strong blur value

a workaround without plugins:

you can use a zslice to cut your scene into different depth slices, defocus them and merge them back together.
 
Old 10-12-2012, 08:56 AM   #7
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:11 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.