Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   render out z depth (https://simplymaya.com/forum/showthread.php?t=25411)

Radical Edward 12-03-2007 11:21 AM

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.

jsprogg 12-03-2007 11:35 AM

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.

farbtopf 13-03-2007 02:04 AM

@jsprogg

god thank you sooo much, i've been looking for an answer to that question quite a while now.

j5ive 13-03-2007 03:25 AM

What is this useful/purpose for?

farbtopf 13-03-2007 03:47 AM

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.

Radical Edward 13-03-2007 06:17 AM

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?

Radical Edward 14-03-2007 04:47 AM

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.

danotronXX 01-04-2007 05:23 AM

Quote:

Originally posted by farbtopf
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.
could u also use the zdepth file to do a faded look at the objects farthest to the camera? if so how would u do it with after effects?
tks

farbtopf 01-04-2007 06:36 AM

Quote:

Originally posted by danotronXX
could u also use the zdepth file to do a faded look at the objects farthest to the camera? if so how would u do it with after effects?
tks

I think you are talking about depth of field. The thing is I never got it to work in AEF. But somehow you can. My problem was that I was never able to get Maya to include the z-depth into my files, regardless of what I did.
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 ;)

mircbone 29-10-2016 11:49 AM

Quote:

Originally Posted by jsprogg (Post 229386)
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.

how do you get the depth values from this process ? :)


All times are GMT. The time now is 06:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018