Aaron_ Posted December 6, 2013 Share Posted December 6, 2013 Hi folks, I'm rendering depth pass and was wondering how can i control near and far on depth pass? black and white color Quote Link to comment Share on other sites More sharing options...
anim Posted December 6, 2013 Share Posted December 6, 2013 it's much better to leave Z as raw floating point distance from the camera than remap to some arbitrary range 0-1 which doesn't tell you anything to do proper DOF in comp you need real values otherwise you'll be just guessing but if for any reason you need custom range just remap it in comp, much more flexibility 1 Quote Link to comment Share on other sites More sharing options...
Aaron_ Posted December 6, 2013 Author Share Posted December 6, 2013 Thanks for the reply. I'm using default, real values but when doing depth in comp, something is wrong, it blurs everything incorrect and also depth pass is too dark. Any advice? Quote Link to comment Share on other sites More sharing options...
anim Posted December 6, 2013 Share Posted December 6, 2013 if you're using Nuke then in ZDefocus you need to set Math parameter to depth instead of default far=0 or if you really want to remap depth in nuke to normalize certain range to 0-1 then append Grade node acting on your zdepth channel and adjust blackpoint and whitepoint in other words if you want to depth range of 10-80 to become 0-1 then set blackpoint to 10 and whitepoint to 80 1 Quote Link to comment Share on other sites More sharing options...
Aaron_ Posted December 9, 2013 Author Share Posted December 9, 2013 I'm using after effects. Don't know how to do that in after effects:( any idea? Quote Link to comment Share on other sites More sharing options...
Guido Zanni Posted January 8, 2014 Share Posted January 8, 2014 Hi folks, I'm rendering depth pass (Open EXR) from Houdini 13 to Nuke 8 the extra image planes Pz. My problem is that Nuke interprets the depth of field incorrectly: gives the red color to the background, while it should be blue. Do you have the same problem ? (in ZDefocus, I set Math parameter to depth) Quote Link to comment Share on other sites More sharing options...
DanBode Posted January 8, 2014 Share Posted January 8, 2014 It's probably because the background is giving you a depth of zero. I'm assuming the alpha in that area is also zero? You can try overing the zdepth on a really high number constant in Nuke, or maybe just un-preumult before the defoucus and premult after. Quote Link to comment Share on other sites More sharing options...
Guido Zanni Posted January 9, 2014 Share Posted January 9, 2014 Thanks for the reply! yes, alpha in that area is zero. If I put the un-preumult before the defoucus and premult after, the background becomes (black color) like an alpha channel where the effect is not applied. Quote Link to comment Share on other sites More sharing options...
Guido Zanni Posted January 9, 2014 Share Posted January 9, 2014 my dirty solution is to create a black box as a background, but is so strange it does not work automatically. Pz in Houdini: Quote Link to comment Share on other sites More sharing options...
anim Posted January 9, 2014 Share Posted January 9, 2014 it works automatically perfectly, but maybe you expect something else so if you render your scene and apply ZDefocus based on depth channel it will blur it nicely and since there is nothing outside of alpha region of the beauty pass as well as nothing out of the alpha region of the depth pass it will work together and it will even nicely blur the alpha edge if out of focus if you are however trying to apply rendered depth channel to already composited image (so your render over some background) it will not do it correctly as there is no depth information on the background pixels and you can't expect houdini to fill the empty portions of the image with infinite depth since there is not always the case it's very easy to composite the depth channel over plane of certain depth to get exact background depth as you want (if there is no bg depth information in the first place) so no need to render it like that from H however the most common is to composite the depth channels from all elements together so you can get combined depth channel that you can use to apply z-depth to the final composited image at the end Quote Link to comment Share on other sites More sharing options...
Guest tar Posted January 10, 2014 Share Posted January 10, 2014 A step up from ZDefocus is pgBokeh - it can use real world camera info and use Deep for much better edges. http://peregrinelabs.com/bokeh/ Quote Link to comment Share on other sites More sharing options...
Guido Zanni Posted January 10, 2014 Share Posted January 10, 2014 Thanks for the reply guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.