Z Depth map gives white only
Moderators: ChrisHekman, aoktar
- aggiechase37
- Posts: 214
- Joined: Tue Jan 13, 2015 6:39 am
Can't get a grey scale out of the z depth map. Only outputs white. Brought into After Effects to play with exposure but still only white. No greyscale detail. What am I missing?
Chase
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
- stratified
- Posts: 945
- Joined: Wed Aug 15, 2012 6:32 am
- Location: Auckland, New Zealand
Try playing with z-max. Z-max defines which depth is mapped to white in a tonemapped image. Every object that has z further away than z-max is mapped to white so try to increase this value. As an alternative, render the passes untonemapped which stores the original depth value.
cheers,
Thomas
cheers,
Thomas
- aggiechase37
- Posts: 214
- Joined: Tue Jan 13, 2015 6:39 am
Thanks. Any good heuristics for what z-max values typically yield good results?
Chase
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
- stratified
- Posts: 945
- Joined: Wed Aug 15, 2012 6:32 am
- Location: Auckland, New Zealand
There's not really a heuristic here - you only need to make sure that the z-max is larger than the z-depth of the object furthest away from the camera in the scene. You will need to fiddle with the slider a bit to figure out this distance. The z-depth max is only there to normalize depth values so that they can be stored in LDR images. It's a hack.
If you want to be correct, you need to save your depth pass in EXR (disable tonemapping and use color space linear). In this case, the values in the EXR will be the original depth values of the scene instead of normalized values.
cheers,
Thomas
If you want to be correct, you need to save your depth pass in EXR (disable tonemapping and use color space linear). In this case, the values in the EXR will be the original depth values of the scene instead of normalized values.
cheers,
Thomas
- aggiechase37
- Posts: 214
- Joined: Tue Jan 13, 2015 6:39 am
So exr is the way to go for z depth passes. Learn something every day. I'll give that a go. Thanks so much.
Chase
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
- aggiechase37
- Posts: 214
- Joined: Tue Jan 13, 2015 6:39 am
I give up. Tried variety of z depth max, tonemap, not tonemap, exr, not exr. I either get complete black, or only white objects. If I render a single frame it seems to work, but the instant I render an image sequence it falls apart. Can someone end my nightmare? Hell I even tried to switch to the C4D physical renderer, still nothing. I'm pissed at this point.
- Attachments
-
- uncompromised grounding.zip
- (10.33 MiB) Downloaded 276 times
Chase
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Hi,
it works as expected here, I have only disabled the "Overwrite kernel settings" option, otherwise the infochannel kernel can't do his job: here is the 35 frame: ciao beppe
it works as expected here, I have only disabled the "Overwrite kernel settings" option, otherwise the infochannel kernel can't do his job: here is the 35 frame: ciao beppe
- aggiechase37
- Posts: 214
- Joined: Tue Jan 13, 2015 6:39 am
Thanks guys. I got it working using the info channels kernel. It took quite a bit of messing around, but I'm good now. But certainly stay tuned for the next episode of chase is a nit wit.
Chase
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16
http://www.luxemediaproductions.com
- elisabettagiovi
- Posts: 12
- Joined: Fri Apr 29, 2016 2:23 pm
This z-depth setting is a constant pain in the A**... I know there is a workaround in overwrite kernel settings, but it always comes back, and I wish some of the next updates resolves this issue. It looks like it's not a big deal, but actually it is big deal for all of us that use z-depth for compositing. Cheers.