Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 24-10-2008 , 07:01 AM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520

render out zDepth

hello, I just spent hours figuring out how to render out a proper zPass from maya -and I nearly went insane!!! Using the Depth channel button in render globals seems to have no effect when running on a mac, on a pc I had some luck sometimes...

HERE'S AN INSTRUCTION ON HOW TO RENDER A zPASS FROM MAYA

Create a render layer, right click on it go presets>luminance depth and that's it you can even preview it in your render window before batching, don't know if that's the "prefessional" way to do it but it's easy and it works.
Maya creates a surface shader and ataches it to all objects on your layer, it doesn't seem to do that for particles though, you'll have to do that manually.

maybe this was already a well known fact, I thought I'd share it anyway

cheers


www.animateme.me.uk
# 2 24-10-2008 , 10:26 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522

Re: render out zDepth

Originally posted by farbtopf
hello, I just spent hours figuring out how to render out a proper zPass from maya -and I nearly went insane!!! ...

Ha! That was me a couple days ago with the SAME problem, and I refused to give up and then I solved it. Thanks for sharing, because this is probably going to be an issue for someone else. user added image


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 3 25-10-2008 , 01:36 AM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Damn!

there is an easier way without worry about the render layers Luminance pass.

Tick the zdepth pass in the Globals settings and if Im correct it has to be an .iff file, check your project settings, then do a batch render, your file will come with a color, alpha and Zdepth channel

done!

Jay

# 4 25-10-2008 , 08:15 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
I did that, the file formats were a bit trial and error for me though.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 5 25-10-2008 , 11:24 PM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520
@ Jay,

I did that as well, but it never worked properly for me, sometimes it doesn't include the zpass at all when looking in fcheck sometimes it tells me files are corrupt etc.
with this method you can have a .jpg . png .tga or whatever you want and you can preview in the render view. I think that makes up for the little hassle of creating a render layer.
I never understood why ticking the zpass in render globals didn't work for me, maybe there's something wrong with my setup..


www.animateme.me.uk
# 6 26-10-2008 , 12:07 AM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Hey farbtopf

yeah thats weird mate, well at least you have the other option which is better in the long run for the comping of images

cheers
Jay

# 7 26-10-2008 , 01:31 AM
LauriePriest's Avatar
Moderator
Join Date: May 2003
Location: London
Posts: 1,001
z depth with globals is ickly. Mayas zdepth will render out to iff if you dont have a 32 bit format chosen.
Main issues are that mayas z depth doesnt render out to a visible range so you have to multiply it into the visible range somtimes.

Also its not anti=aliased, when maya renders z depth it just finds distance as an absolute. So to get around that you have to render z depth at double res and than scale it down with a filter, which is really not fun. Shader ftw.


FX supervisor - double negative
# 8 26-10-2008 , 01:41 AM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520
hi, I never needed zdepth to be that acurate, but I suppose if you work on really high res stuff it'll make sense. I really don't understand why autodesk didn't put in a better way to get your zpass I though maybe in maya 2009 but nope...

anyway for now I'm happy with how it works via render layers


www.animateme.me.uk
# 9 23-03-2009 , 09:11 PM
Registered User
Join Date: Mar 2009
Posts: 2
I love the fexibility of a z-depth map...and the luminance depth works amazingly well on geometry but for some reason my particles don't register....they completely disappear on the z-depth map, they don't render at all....why is this...and how can I fix it?


Last edited by shy_halewd; 23-03-2009 at 11:39 PM.
# 10 23-03-2009 , 10:25 PM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
Perhaps you could project a ramp from the camera and use that as a zdepth, this is the way I do my zdepth as it gives you more control over everything.

# 11 23-03-2009 , 11:42 PM
Registered User
Join Date: Mar 2009
Posts: 2

Originally posted by hammer.horror
Perhaps you could project a ramp from the camera and use that as a zdepth, this is the way I do my zdepth as it gives you more control over everything.

to be clear, do you mean like a 3d projection map of a white to black ramp with the projection node parented to the camera? I might have to try that.

Ok, tried to figure it out myself...and failed. How exactly do I get it to project from the camera?


Last edited by shy_halewd; 24-03-2009 at 12:07 AM.
# 12 24-03-2009 , 08:18 AM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520
Hey,

i've tried that before, works well but again not for particles. I think it works if you have our particles as a blobby surface and as spheres, but not for the rest.
I ended up rendering them as blobby surfaces and as normal perticles and using the image I got from the normal particles as a matte in comp on the blobby ones.
However that's a really messy sollution, if anyone knows how to get particle z depth to work please share.

not exactly sure how to project from the camera but you could connect a ramp to a surface shader. You should get the control plane for the 2d projection in your scene now, flip it so it faces your geometry and adjust it's size to fit your scene. Now parent it to your camera. Might work but agian it's probably a bit messy user added image


www.animateme.me.uk
# 13 29-05-2010 , 04:06 PM
danotronXX's Avatar
Subscriber
Join Date: Jun 2005
Location: cleveland ohio
Posts: 313

Re: render out zDepth

Originally posted by farbtopf
hello, I just spent hours figuring out how to render out a proper zPass from maya -and I nearly went insane!!! Using the Depth channel button in render globals seems to have no effect when running on a mac, on a pc I had some luck sometimes...

HERE'S AN INSTRUCTION ON HOW TO RENDER A zPASS FROM MAYA

Create a render layer, right click on it go presets>luminance depth and that's it you can even preview it in your render window before batching, don't know if that's the "prefessional" way to do it but it's easy and it works.
Maya creates a surface shader and ataches it to all objects on your layer, it doesn't seem to do that for particles though, you'll have to do that manually.

maybe this was already a well known fact, I thought I'd share it anyway

cheers


you are the man farbtopf. thank you for sharing this and saving my monitor from being smashed on the wall

user added image

# 14 07-09-2011 , 09:29 AM
billbeaumont's Avatar
Registered User
Join Date: Jul 2006
Location: Taiwan
Posts: 2

z depth with globals is ickly. Mayas zdepth will render out to iff if you dont have a 32 bit format chosen.
Main issues are that mayas z depth doesnt render out to a visible range so you have to multiply it into the visible range somtimes.

Also its not anti=aliased, when maya renders z depth it just finds distance as an absolute. So to get around that you have to render z depth at double res and than scale it down with a filter, which is really not fun. Shader ftw.


Hi Laurie,

Can you tell me more about multiplying the z depth to a visible range please?
I have my luminance depth all set up and it renders perfectly in a standard single frame render, but when I batch render or send it to backburner, the image comes out completely black!

Thanks,

Bill

# 15 07-09-2011 , 09:50 AM
billbeaumont's Avatar
Registered User
Join Date: Jul 2006
Location: Taiwan
Posts: 2

z depth with globals is ickly. Mayas zdepth will render out to iff if you dont have a 32 bit format chosen.
Main issues are that mayas z depth doesnt render out to a visible range so you have to multiply it into the visible range somtimes.

Also its not anti=aliased, when maya renders z depth it just finds distance as an absolute. So to get around that you have to render z depth at double res and than scale it down with a filter, which is really not fun. Shader ftw.





Ha ha! Solved it!
I went with this approach....
https://studiof504.blogspot.com/2010/...th-preset.html
Where you disconntect the old min and old max attributes and then changes those values. Using that method the batch redners were the same as the single image renders.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads