zdepth with black and white gradient ?

   17678   13   1
User Avatar
Member
39 posts
Joined:
Offline
Hi ,

I used zdepth passes with pz and P image palnes using exr . When compositing i got weird results . Then to make sure i used other 3d application's zdepth and it's fitting OK . What's wrong with Houdini pz channel ? Should i add extra information ?

Regards .
User Avatar
Member
4140 posts
Joined: July 2005
Offline
You'll need to give a little more information, indicate your methodology. Houdini generates typical depth maps. Did you change the depth layer to Float from the default Vector?

Cheers,

J.C.
John Coldrick
User Avatar
Member
39 posts
Joined:
Offline
Hi ,

I just add an extra image plane and add the vex variable Pz in houdini . In Nuke i tried differents combinations and nodes . The results always lead to crossing lines in the intersections of the two images or misalignement axis or somtimes rough edges . I used Modo and got very smooth and accurate composite without hassle (just adding a zdepth layer).

Regards
User Avatar
Member
4140 posts
Joined: July 2005
Offline
I use depth from mantra in Nuke all the time. You didn't answer my question - did you switch from the default Vector to Float? You need to tell mantra the specifics of the layer you are writing out…

Cheers,

J.C.
John Coldrick
User Avatar
Member
39 posts
Joined:
Offline
If your talking about the Pz vex variable type , i just kept it as vector .
User Avatar
Member
696 posts
Joined: March 2006
Offline
it should be float
Stephen Tucker
VFXTD
User Avatar
Member
39 posts
Joined:
Offline
I converted the Pz to float , but in nuke i got no changes except the fact that i had 3 Pz channels . The results in compositing are the same . I made a test in fusion too and nothing special .

Regards .
User Avatar
Member
606 posts
Joined: May 2007
Offline
Screenshots from Houdini and Nuke.
It shows up as “depth.Z” in Nuke.

If you render to Mplay, do you see the Pz correctly
there as a layer?

eetu.

Attachments:
Pz-n.png (68.0 KB)
Pz-h.png (68.5 KB)

User Avatar
Member
39 posts
Joined:
Offline
Hi ,

Yes i got the zdepth channel in the mplay , but it's just a black and white image exactely like the alpha channel . Here are the iamges and and source hip file .

Attachments:
zdepth.rar (1.3 MB)

User Avatar
Member
606 posts
Joined: May 2007
Offline
Because your camera in the scene is fifty units away from the globe, the
depth values in you depth buffer will be >50

By default, mplay will display colors as 0.0 == black, 1.0 == white, and so
your globe will look all white. You can either adjust the brightness values by
hand, or click the “Adapt to Full Pixel Range”-button on the lower left. That
will display the smallest value in the image as black and the brightest value
as white. This is for display only, the file will still save with the actual depth
values.

The same is true for Nuke. (You can see in the previous screenshot how
I've adjusted the viewer brightness to get the value differences visible).

This is good for depth compositing. Some applications might export a
depth buffer with the actual values normalized to 0…1 range, but in that
case you lose the actual magnitude and depth order information.

eetu.

Attachments:
Pz-mplay.png (43.0 KB)

User Avatar
Member
39 posts
Joined:
Offline
I just sent an image of a hole animation to the forum , so how can i adjust the hole exr sequence in nuke ? I'm not intersted in mpaly and pic format .

Thanks .
User Avatar
Member
606 posts
Joined: May 2007
Offline
With for example a Grade, Multiply, ColorCorrect or ColorLookup node,
working on depth.Z instead of rgb.

For correct depth compositing, the depth values should not be modified, but
if you're compositing with material that has been normalised to the 0…1 range,
I guess you have no choice :\

eetu.
User Avatar
Member
39 posts
Joined:
Offline
Thanks eetu for your kind help . Can you tell me how do you monitor the zdepth changes on a nuke network nodes ?

Regards .
User Avatar
Member
606 posts
Joined: May 2007
Offline
Set the viewer alpha channel to depth.Z as shown in the Pz-n.png above, and
press ‘a’ to toggle between viewing RGB and depth. If the depth range is not
nicely visible, you can see the depth value under the mouse pointer in the
lower right corner of the nuke viewer (the white value to the right of the r g b
values)

Or, you can adjust the viewer gain/gamma to have a better visual idea of what the depth looks like.

eetu.
  • Quick Links