Output ZDepth from ...
 

Output ZDepth from Point Render  

  RSS

(@camvfx)
New Member
Joined: 3 months ago
Posts: 1
12/09/2019 5:55 pm  

I’ve been diving into the toolset and can’t seem to figure out if you are able to output zdepth info from the point render node in order to use your own Zdefocus tools (custom bokeh) in nuke. Is there an easy way to do this?

Cheers. 


Quote
(@solfx)
New Member
Joined: 3 months ago
Posts: 1
13/09/2019 9:56 pm  

I believe its currently not available, but will be in the 1.1 update.


ReplyQuote
(@rgray)
New Member
Joined: 3 months ago
Posts: 1
16/09/2019 4:11 am  

If you really want to get the zdepth to work in the current version, you could try having a second Point render node in facet render mode, world position mode and depth buffer turned on. This will give you world position pass of your point cloud rendered through the camera (if it doesn't crash!). Then multiply the inverse camera matrix by the world position pass to normalize the position data to the camera, then the blue channel becomes the depth channel! It doesnt always work but may be fun to play with. I attached an example script below: https://drive.google.com/open?id=12zrLiD27R-8WQCD7tsQnC-nmQ4YtLLWX


ReplyQuote
 mads
(@mads)
Member Admin
Joined: 2 years ago
Posts: 19
17/09/2019 7:50 am  

As rgray point's out you do need a second point render node to output depth.

Sadly blinkscript does only allow you to output 4 channals, and as Red Green Blue and Alpha is needed, I need to run the whole render a 2nd time just to get depth out, but that is an option in the 1.1 update (just around the corner).


ReplyQuote
Share: