Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Jpjapers on 2021-03-18, 17:23:41

Title: [Solved] Zdepth showing strange vignetting
Post by: Jpjapers on 2021-03-18, 17:23:41
Im rendering a large flat sheet and using either camera environment ranges or max min values, i get strange vignetting on the zdepth pass.
Is this a known bug?
Title: Re: Zdepth showing strange vignetting
Post by: TomG on 2021-03-18, 17:57:35
Sorry, not sure what I am looking at here - is this the zdepth? What is strange about the vingetting (darkening at edges)? Given that the ZDepth is real 3D distance, the points on the plane at the edge will be further away so would be expected to be darker etc. depending on your min max distances for the ZDepth. So I am not sure what is unexpected here, can you explain more please? Thanks!
Title: Re: Zdepth showing strange vignetting
Post by: Jpjapers on 2021-03-18, 18:51:32
Sorry, not sure what I am looking at here - is this the zdepth? What is strange about the vingetting (darkening at edges)? Given that the ZDepth is real 3D distance, the points on the plane at the edge will be further away so would be expected to be darker etc. depending on your min max distances for the ZDepth. So I am not sure what is unexpected here, can you explain more please? Thanks!

Ah that makes sense i assumed zdepth was calculated only by distance along one axis but youre saying its calculated by total ray distance and so the corners of the plane being further than the center will appear darker?

I thought that given im rendering from directly above the plane it would have all been calculated to be the same level as its the same distance on the Z axis?
Title: Re: Zdepth showing strange vignetting
Post by: TomG on 2021-03-18, 19:00:24
Right, it's actual, absolute distance, from the point the camera is at - so the distance from the camera to one of the corners is longer than the distance from the camera to the point directly below it (in the center of the image). It's not a measure of distance from the plane the camera occupies, but from the point it is at :)
Title: Re: Zdepth showing strange vignetting
Post by: Jpjapers on 2021-03-18, 19:07:18
Right, it's actual, absolute distance, from the point the camera is at - so the distance from the camera to one of the corners is longer than the distance from the camera to the point directly below it (in the center of the image). It's not a measure of distance from the plane the camera occupies, but from the point it is at :)

That makes perfect sense i assumed it was calculated a different way :)
Title: Re: Zdepth showing strange vignetting
Post by: romullus on 2021-03-18, 19:33:17
You need to switch to ortho camera if you want to bake maps from flat plane. Corona camera has very convenient ortho mode where it lets you to set-up render area precisely.
Title: Re: Zdepth showing strange vignetting
Post by: Jpjapers on 2021-03-18, 22:39:17
You need to switch to ortho camera if you want to bake maps from flat plane. Corona camera has very convenient ortho mode where it lets you to set-up render area precisely.

Amazing! Thank you :)