PDA

View Full Version : Alpha maps and z-buffer depth maps


magilla
03-25-2003, 03:59 AM
Geometry with alpha maps are not included in the depth channel?

Apart from tricky comping of alpha into depth map - does anyone know of a way to get these to render into the z-channel?

--magilla

Toby W. Allen
03-25-2003, 10:00 AM
As far as I know, you enable the Z-buffer and save the images as a TGA (TARGA) and you should be able to get the alpha of the image.

Prolly not what you're lookign for though,
Toby.

beaker
03-25-2003, 06:39 PM
I'm guessing your refering to transparency from a map on a model? No Z does not recognize transparency, only geometry. Thats why stuff like fur and paintfx has trouble with rendering behind transparent objects. Use a fake Z shader instead of the real thing. Then you get other benefits like antialiased Z.

pixho
03-25-2003, 09:24 PM
Hey,

Actually, Zdepth maps can be rendered with transparency, just make sure you select furthest distance (facing normals to cam) and set the transparency treshold to 1.

This way you'll get transparency in your z buffer, and can make (for ex) transparent shadows with dmaps...


Emmanuel

magilla
03-25-2003, 10:01 PM
Beaker - you're on the right track - I was hoping I wouldn't have to mess around with this, being an animator and not generally dealing with this stuff, it's a steep learning curve.

Is it a difficult process to convert all geom to the one shader?

(wishful thinking) anyone got a link to a mel that converts all shaders to grey etc....?

pixho - your method is intriguing yet vague! Care to shed a bit more light on this process.

thanks all for the replies.

--magilla

CGTalk Moderation
01-14-2006, 05:00 PM
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.