PDA

View Full Version : Depth Map Render


lazlow69
11-21-2002, 09:11 PM
Can anyone tell me how to render the depth map in Maya? I know you can append z-depth information into the iff format as data, but can I simply render the grayscale z-depth as a jpeg or a tiff? I want to create a scene that has the z-depth channel as the final visible information...

Any help is much appreciated!

Sean
:surprised

alexx
11-21-2002, 09:28 PM
always remember that if you render uot the z-depth image as a tiff or whatever yuo can get 16 bit at its best.. compared to floating point accuracy in a real z channel

if that is ok for you, you can check out the script i did some time ago.
it takes the near and far clipping planes from the camera to write out a 16 bit IFF depth file..

fake depth (http://bigott.gmxhome.de/scripts/createFakeDepth.mel )

cheers

alexx

and please be sure to read the header of the script, since it will overwrite stuff in your scene.. so be sure not to work with it without a backup of your scene

lazlow69
11-22-2002, 03:35 PM
Thank you kindly for the MEL script option. I was wondering, however, if there is a simple way to do it through maya? I see sometimes a demonstration or tutorial in which one of the example images is a depth render (although it is generally just used as an example to illustrate what it's function is.) Are those images the product of the use of a mel, or simply a setting within render globals?

Thanks
:)

alexx
11-22-2002, 04:01 PM
this mel script does nothing but putting together shaders and lighting that produce the wanted effect. there is no click and go solution in maya...

CGTalk Moderation
01-13-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.