Jump to content

how do I get a z depth pass?


Recommended Posts

Easiest way is to use a Mantra ROP Output driver and generate an extra image plane. In the VEX Variable parameter choose Pz. That way you don't need to render an extra pass. You generate this for free (well the time it takes to write the extra image information to disk).

When you render to ip (Mplay) you will see an extra image plane that is your Pz render under the C-A... chooser at the top left.

Only .rat, .pic (sesi format) and openEXR (.exr) support extra image planes rendered to a single image format.

To generate a separate image you first have to render the primary image to disk. Doing that enables the checkbox to generate each extra image plane to disk as a discrete file. You can use whatever image format is supported by Houdini.

Settings for the Extra Image Plane to generate a good Pz channel as a separate image sequence to disk:

- set to render to disk in the Output Picture parameter

- Add an Extra Image Plane

- VEX Variable: Pz

- VEX Type: Float Type (Pz is a single float)

- Channel Name 1: Zdepth (whatever you want here to identify the image)

- Toggle on Different File and type in name of image sequence: Zdepth.$F4.tif

- Pixel Filter: minmax min (choose Closest Sample Filtering. This will ensure that the image does not have any antialiasing which will screw up your depth comp)

-jeff

Link to comment
Share on other sites

Easiest way is to use a Mantra ROP Output driver and generate an extra image plane. In the VEX Variable parameter choose Pz. That way you don't need to render an extra pass. You generate this for free (well the time it takes to write the extra image information to disk).

When you render to ip (Mplay) you will see an extra image plane that is your Pz render under the C-A... chooser at the top left.

Only .rat, .pic (sesi format) and openEXR (.exr) support extra image planes rendered to a single image format.

To generate a separate image you first have to render the primary image to disk. Doing that enables the checkbox to generate each extra image plane to disk as a discrete file. You can use whatever image format is supported by Houdini.

Settings for the Extra Image Plane to generate a good Pz channel as a separate image sequence to disk:

- set to render to disk in the Output Picture parameter

- Add an Extra Image Plane

- VEX Variable: Pz

- VEX Type: Float Type (Pz is a single float)

- Channel Name 1: Zdepth (whatever you want here to identify the image)

- Toggle on Different File and type in name of image sequence: Zdepth.$F4.tif

- Pixel Filter: minmax min (choose Closest Sample Filtering. This will ensure that the image does not have any antialiasing which will screw up your depth comp)

-jeff

How do I control the depth??

and I am using this as Top View. which is Y-Axis.. , right?

So, I cant use Pz, right? should I use Py or P??

or is there any camera option that I have to change?

or in renderer???

perhaps, is there any example scene??

Thanks a lot!!!!!

-J

Edited by Jae Yoo
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...