Karma Depth min max pass

   2052   6   1
User Avatar
Member
52 posts
Joined: Feb. 2016
Offline
Hello,

I am new to Karma, I saw here there is an option to output depth, but I dont really understand the variables, does this mean I can define a min/max depth range somewhere? or do I set it here directly? I dont really understand this syntax, I did find this page [www.sidefx.com] but I didnt understand how it relates to this parameter.


I just saw theres some options in the dropdown, I can sort of guess at what they mean but I wonder if they are explained in detail somewhere in the documentation?
zmax means, the white value of the depth map will represent the furthest detected geometry in the scene, rather than being based on a distance unit?


edit - I have just finished a render with the following z-depth settings:
when I look at the output in davinci resolve, it looks like this:
I dont understant what zmax is supposed to mean
Edited by NNNenov - May 10, 2024 10:40:59
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
NNNenov
zmax means, the white value of the depth map will represent the furthest detected geometry in the scene, rather than being based on a distance unit?

zmax means that of the sampled hits, the furthest hit will be recorded. zmin is the opposite, recording the closest value. Neither of them affect the range of values or do any remapping. The value is recorded as raw distance.
User Avatar
Member
52 posts
Joined: Feb. 2016
Offline
jsmack
NNNenov
zmax means, the white value of the depth map will represent the furthest detected geometry in the scene, rather than being based on a distance unit?

zmax means that of the sampled hits, the furthest hit will be recorded. zmin is the opposite, recording the closest value. Neither of them affect the range of values or do any remapping. The value is recorded as raw distance.

Ah I see, thank you for the explanation.

Do you know how I could go about creating a normalized depth AOV?
User Avatar
Member
100 posts
Joined: Oct. 2021
Offline
NNNenov
jsmack
NNNenov
zmax means, the white value of the depth map will represent the furthest detected geometry in the scene, rather than being based on a distance unit?

zmax means that of the sampled hits, the furthest hit will be recorded. zmin is the opposite, recording the closest value. Neither of them affect the range of values or do any remapping. The value is recorded as raw distance.

Ah I see, thank you for the explanation.

Do you know how I could go about creating a normalized depth AOV?

did you find any answer to this?
www.rehimi.de
User Avatar
Member
9 posts
Joined: Jan. 2017
Offline
You could do it in Copernicus with a Slap Comp. Map [zmin, zmax) to [0,1) and apply to all pixels.
Edited by erichocean - Oct. 4, 2024 23:46:00
User Avatar
Member
9376 posts
Joined: July 2007
Offline
Can't you just remap it in Davinci if thats what you are using?

Its never a good idea to normalize depth in render

Since then you lose track of the real depth and whatever you are using it for (whether DOF or fog or other comp effects) will be floating all over the place depending on min and max depth of each frame of the sequence

Its much better to keep deal depth values and deal with them in comp, especially since its so easy to remap in any comp software and also DOF then can be applied using real camera properties rather than visually guessing
Edited by tamte - Oct. 4, 2024 23:57:20
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
100 posts
Joined: Oct. 2021
Offline
tamte
Can't you just remap it in Davinci if thats what you are using?

Its never a good idea to normalize depth in render

Since then you lose track of the real depth and whatever you are using it for (whether DOF or fog or other comp effects) will be floating all over the place depending on min and max depth of each frame of the sequence

Its much better to keep deal depth values and deal with them in comp, especially since its so easy to remap in any comp software and also DOF then can be applied using real camera properties rather than visually guessing

Good points!

Turns out, you can actually remap this in Davinci using the CopyAux node.

A bit of a weird name.
www.rehimi.de
  • Quick Links