Jump to content
Lukich

Rendering Z-depth In H9 : solved

Recommended Posts

So, I was trying to create a very basic z-depth render in h9. Went to the mantra, added a plane and set the name and the vex variable to Pz. Rendered it, but the Pz channel is completely white. Shift-R didn't do anything. Do you guys know what I might be missing? Thanks,

Luka

Edit: Never mind, figured it out:)

Edited by Lukich

Share this post


Link to post
Share on other sites
Do tell, I'm having the same problem.

The values output in the Pz variable are raw, world-space camera depth so the values are very often greater than 1.0. These values are not fitted/mapped to a 0-1 range (based on the furthest point or anything else).

1. Make sure you're rendering Pz into a 16-bit or 32-bit floating point image / plane.

2. Make sure that when viewing the image, you are not viewing through a LUT in Mplay as this clamps the data upon view.

If you have these steps correct, you can gain down the image and see all your lovely depth values.

Hope this helps,

Jason

Share this post


Link to post
Share on other sites

Ah, thanks Jason. The gain was the issue.

I thought I had plenty of depth of geometry in my scene, but apparently not. I had to drop my gain way down.

Share this post


Link to post
Share on other sites

where do you add the Pz ? i cant find anything in the help... i want to render z-depth for DOF in COPs :)

Share this post


Link to post
Share on other sites
where do you add the Pz ? i cant find anything in the help... i want to render z-depth for DOF in COPs :)

you can add it as an image plane in your output driver.

Depending on your output format it is saved in an external file (eg. JPG)or in the *main image* (eg. pic or openEXR).

Georg

Share this post


Link to post
Share on other sites
you can add it as an image plane in your output driver.

Depending on your output format it is saved in an external file (eg. JPG)or in the *main image* (eg. pic or openEXR).

Georg

ahh i see - thanks :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×