Hi all,
I have a fairly simple question. How can I render a z-pass depth map in Luxcorerender? I want to use it to apply mist in Photoshop instead of the compositing tab. I'm not getting great results with the mist feature under the camera settings, so I don't want to do that.
Many many thanks
J
Z-pass depth map
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: Z-pass depth map
I believe it's "depth" pass you are looking for.
Re: Z-pass depth map
I think so too, but when I try to do that, I get a very flat result (see attached).
Re: Z-pass depth map
The depth AOV is an HDR image, I have the feeling you assume the values are between 0.0 and 1.0 (while it is between 0.0 and +INF).
Re: Z-pass depth map
Where can I change those settings? I don't see anything about it in the documentation.
Re: Z-pass depth map
There are no settings for the depth AOV.
If you need another range, you will have to remap the values into it, for example in the Blender compositor (it has a remap node).
If you need another range, you will have to remap the values into it, for example in the Blender compositor (it has a remap node).
Re: Z-pass depth map
Cycles does the same thing.
As noted, you must remap it to your 'intent'.
Generally, the easiest way is to 'Normalize' it (pass it through Vector > Normalize node).
Enjoy
As noted, you must remap it to your 'intent'.
Generally, the easiest way is to 'Normalize' it (pass it through Vector > Normalize node).
Enjoy
-
- Posts: 116
- Joined: Mon Oct 26, 2020 11:42 am
Re: Z-pass depth map
Hi guys. I have a problem with depth of the background. I set HDRI background (I have tested with constant color too) and the strange thing is, that the distance for all pixels covered by sky is 0. I thought that I will find there something like infinity. After normalize, in my opinion, the sky should be white. Am I missing some settings for background?
If this is not a trivial thing, let me know and I will send you my scene.
BTW it would be nice to have a possibility to publish on a forum exr files directly without zip. I know that it is not trivial to display it, but it could work like with zip files.
The png depth image is normalized. In attachment you can find exr that is the original output from luxcore. If this is not a trivial thing, let me know and I will send you my scene.
BTW it would be nice to have a possibility to publish on a forum exr files directly without zip. I know that it is not trivial to display it, but it could work like with zip files.
- Attachments
-
- depthBuffer_depth.zip
- (85.15 KiB) Downloaded 117 times
-
- Posts: 116
- Joined: Mon Oct 26, 2020 11:42 am
Re: Z-pass depth map
It is more than strange. I have created simple scene in blender. Open image with composer and made normalization:
Everything is OK. Than I export the scene with Luxcore FileSaver and render with standalone. Open with gimp:
As you can see in Blender the sky is white, in gimp black.Re: Z-pass depth map
The value is set to infinity: https://github.com/LuxCoreRender/LuxCor ... r.cpp#L426
However there are many conversions and factors from there that may affect your end result like FP 32 to 16, etc.
However there are many conversions and factors from there that may affect your end result like FP 32 to 16, etc.