How to export Z-depth channel??

Well Vlado has said several time that this is the expected output, I got the feel ing that a few people thought it was a bug. I am not against adding greyscale depth output for V-Ray… Having the correct tools helps too :wink:

hehe I guess expected output is relative, cause it aint what I expected the first time I saw it…

for me bobos channel extractor works:
http://www.scriptspot.com/download.asp?ID=267
saves the channels of an rpf file to seperate images
runs in max 5/6

quote from bobos site:

"Based on the code of ChannelSaver, this script lets you extract 12 different optional channels from RLA and RPF to different file formats (TGA,JPG,BMP,TIFF,PNG).
Allows processing of single RLA, RPF, IFL lists containing any RLA and RPF files, and all RLA/RPFs in a single directory. "

cya,

Mike

With stills, I generally just ran the z-depth output out of the default Max scanline and composited in PS that way.

but then you don’t get any AA… or am i missing something?

aa should not be antialiased at all - it would change the depth values

actually, max does not aa zdepth and can not be forced to do it afaik

cya,

Mike

Exactly. Antialiasing a black to white edge would make it grey. This would mean that in a Zdepth channel, the edges would seem further away then the rest of the object. This is partially why Vray does a “floating point” Zdepth. To account for this (and the limitation of 255 shades of gray).

i understand that, but if the edges of the z-depth output aren’t anitialiased, does that mean it’s impossible to acurately comp in a z-depth layer onto an image with AA in post?

Render elements strangely enough lets you render z buffers with AA. No idea what id want with it. Better to render it out at 2x and let the compositing software handle the rest.

i understand that, but if the edges of the z-depth output aren’t anitialiased, does that mean it’s impossible to acurately comp in a z-depth layer onto an image with AA in post?

If you are talking about a regular greyscale zdepth, yes. Your options are to render it twice the size and scale down in post (may or may not work depending on your post app) or to use some kind of format that supports floating point zdepth, like RPF.

also…

--Jon

but then you don’t get any AA… or am i missing something?

I never had any AA issues exporting out the Zdepth from plain scanline. I usually set it to sharp quadratic and it seems to composite fine over any image using the ‘lens filter’ in PS.

Hello.
I think you need the “coverage” channel in order to get AA in the z depth.

I’m encountering a situation similar to RSF and his VrayProxies - thereby having to switch over from scanline. However, I haven’t been able to get the ‘file output’ to render out a depth from my camera using values from the camera or by manually entering them in. And I don’t have importable .rpf tools available.

see my reply to your wishlist post
(already posted the same script to this thread)

this script works fine for me (max 6 at least)

Bringing this thread back from death…have u managed to get an objectID channels with colors with the ChannelExtractor script? I only get a black and white image and some people in the team would prefer them to be clearly visible in colors…

I have tried to do it in combustion, but it seems to have some issues with hi res images (5000X2000px), it doesnt show any gbuffer channel, at all. It looks like videocard errors…

Thanks!

everyone keeps mentioning the coverage channel. i sure wish to see a tutorial on its usage

in my experience, you just include it in your rpf file and if the compositing app supports it (afik combustion, df and shake do) it gets used when doing things like z-comping

i know about that. what i want to see is a combustion scene tree that uses it. if someone could show a scne that includes DOF, Motion Blur all computer in post using coverage, z-depth and velocity channel. apparently your supposed to use z-depth when computer motion blur right?

In combustion, if the RPF has all the channels necessary, all you have to do is drop in a 3D Effect node and you’re done. Nothing special in the tree at all.