Z Depth map gives white only

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

aggiechase37
Licensed Customer
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?
Attachments
2.JPG
1.JPG
Chase

Win 10 - Intel 4770 - 2x Nvidia 1070 - 32 gigs RAM - C4D r16

http://www.luxemediaproductions.com
User avatar
stratified
OctaneRender Team
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
aggiechase37
Licensed Customer
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
User avatar
stratified
OctaneRender Team
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
aggiechase37
Licensed Customer
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
aggiechase37
Licensed Customer
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
User avatar
bepeg4d
Octane Guru
Posts: 10321
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
it works as expected here, I have only disabled the "Overwrite kernel settings" option, otherwise the infochannel kernel can't do his job:
Screen Shot 2015-11-04 at 12.14.42.jpg
here is the 35 frame:
testB_0035.jpg
ciao beppe
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

I have checked and working here. Also you use sometings wrong.
Don't deselect "Post Effects" and don't use "Multi-Pass Image" section for saving. You'll loose some features.
Attachments
a1.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
aggiechase37
Licensed Customer
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
elisabettagiovi
Licensed Customer
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.
Post Reply

Return to “Maxon Cinema 4D”