Author Topic: Depth map in Multi pass  (Read 4322 times)

2019-01-23, 03:20:26

Davie

  • Active Users
  • **
  • Posts: 6
    • View Profile
I am a new Corona for c4d user and for the most part everything works as expected. I am however struggling to set up a working depth map in the corona multi pass, alpha, reflection, refraction and beauty are working as expected. I know I am missing a checkbox or a workflow step somewhere but I quite can't quite figure it out.

I have attached snips of the settings where I imagine the setting should be with an actual render with depth rendered into the beauty pass as shown in the images. Any help is highly appreciated.

2019-01-23, 14:12:13
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6144
    • View Profile
Most likely need to adjust the scale - looks like the default sizes in C4D are pretty big, with cubes being 200 cm (at least, in the way I have C4D set up). For me, a couple of cubes needed a Max Z in the 1000s of cm to show up due to that.

Also, not sure what you mean by "actual render with depth rendered into the beauty pass" - it doesn't change the beauty pass at all, but creates a separate multipass render with a greyscale image (white is close, black is far away, things in between are grey) which can be used in post processing.

EDIT - note to self, in case we consider changing the default value, internal 311268425
« Last Edit: 2019-01-23, 14:44:34 by TomG »
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-01-23, 14:36:32
Reply #2

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6144
    • View Profile
Here's something I just learned :) You can get the Max Z to calculate automatically based on selected object, or whole scene bounding box - see attached image. Probably worth doing this whenever you set up the Z-Depth pass and it should then set an ideal value, e.g. using Whole scene will mean it reaches full black at the farthest range of the scene. There are similar settings for the Min Z too.

Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-01-23, 19:46:08
Reply #3

Davie

  • Active Users
  • **
  • Posts: 6
    • View Profile
Most likely need to adjust the scale - looks like the default sizes in C4D are pretty big, with cubes being 200 cm (at least, in the way I have C4D set up). For me, a couple of cubes needed a Max Z in the 1000s of cm to show up due to that.

Also, not sure what you mean by "actual render with depth rendered into the beauty pass" - it doesn't change the beauty pass at all, but creates a separate multipass render with a greyscale image (white is close, black is far away, things in between are grey) which can be used in post processing.

EDIT - note to self, in case we consider changing the default value, internal 311268425

Thank you so much for the reply, really really appreciated.

2019-01-23, 19:55:43
Reply #4

Davie

  • Active Users
  • **
  • Posts: 6
    • View Profile
Here's something I just learned :) You can get the Max Z to calculate automatically based on selected object, or whole scene bounding box - see attached image. Probably worth doing this whenever you set up the Z-Depth pass and it should then set an ideal value, e.g. using Whole scene will mean it reaches full black at the farthest range of the scene. There are similar settings for the Min Z too.

I have just done a quick test and the depth map is now showing, I am over the moon right now (clapping emoji)! Thank you so much TomG, you are the best.

PS. I'd have loved to send a cool emoji your way

2019-01-23, 20:35:07
Reply #5

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6144
    • View Profile
Good you have it working! We will consider changing the default (maybe even in Max too) just so that something shows up by default and it doesn't seem broken, even if might still need some extra tweaking to match it to the scene (e.g. manually setting a different value, or using one of the super handy automatic settings I just learned about today lol). Cool emoji icon imagined, and it's the thought that counts!
Tom Grimes | chaos-corona.com
Product Manager | contact us