render out z depth
How can I render out the z-depth, i.e. closeness to the camera, as a grayscale image? I've seen it done around the place but I'm not sure how to do it.
|
From the Maya docs..
To create a Depth file Turn on Depth Channel (Z Depth) in the Render Settings window. Open the renderable camera's Attribute Editor in which you want to create a depth file. Select View > Camera Attribute Editor from the current view. See View > Camera Attribute Editor. In the camera's Attribute Editor, select a Depth Type from the Output Settings section (Closest or Furthest Visible Depth). To view depth channels View the animation file using FCheck. See the Overview of FCheck in the Rendering Utilities guide for information on FCheck. Press z to see the depth channel. FCheck does not let you view the z-depth data of an .IFF file. To view z-depth data, use a non .IFF file format and then view the z-depth data stored in the separate file. If the output format is not IFF or RLA, Maya writes a separate depth file containing a black RGBA image with depth values. |
@jsprogg
god thank you sooo much, i've been looking for an answer to that question quite a while now. |
What is this useful/purpose for?
|
it is mainly for post production. You'll need it to apply certain effects in compositors like after effects shake etc. It tells them for example how far pixels have been away from the camera, so you can do a depth of field.
|
ok, well I try to follow those instructions, and I get a tower.jpg and a tower_Depth.iff. The iff I can only view in maya, and it's just a useless black square :/ any ideas what's up?
|
found the problem. The depth file has a black RGB channel and contains the depth information in an additional channel. To get it out in photoshop, install the IFF reader plugin (look on google) and open the channels box, on mine it was Apha 2 (I had an alpha channel as well)
Also for reference mental ray does not appear to produce a depth map at all, at least not one that gets saved anywhere. |
Quote:
tks |
Quote:
You might have more luck though. You ned to render your images from maya in a format that supports zdepth. .IFF does, but unfortunately after effects doesn't recognize the z in an .IFF, so don't use it. I heard that .RLA or 16bit Tiffs work. You can check if maya included a zchannel by opening the image in photoshop and looking in the channels tab. There should be something like an alpha2 channel that looks like a ghostly grayscale version of your render. So you import you footage into after effects make a comp and go effects>3dchanne>depth of field. And it should work. From now on you are on your own, because as I said I never got to that stage. But if you get it to work please let me know. good luck ;) |
Quote:
|
All times are GMT. The time now is 06:36 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018