Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: JoachimArt on 2019-08-22, 11:38:44

Title: Dof creates edge bleed with Screen mapping
Post by: JoachimArt on 2019-08-22, 11:38:44
Hi, when environment map is set to screen and the camera has Depth of Field the borders of the render gets a brighter edge. If I turn off DOF the brighter edge disappear. If I increase the DOF the edge becomes stronger. If I turn the environment into cylindrical or spherical the white edge bleed disappear.

I assume this is a bug?
Title: Re: Dof creates edge bleed with Screen mapping
Post by: pokoy on 2019-08-22, 11:55:55
In screen space, the pixels outside of the frame are black (or whatever the renderer assumes) thus blurring appears wrong. Indeed the renderer should bleed those border pixels outside of the frame so DOF is 'stable'.

I've requested a long time ago that we get a way to disable DOF calculation on background and matte object's used as backdrop. I guess it's buried under 20 tons of other requests :)
Title: Re: Dof creates edge bleed with Screen mapping
Post by: romullus on 2019-08-22, 14:06:10
Didn't test it, but i think that setting background U and V tiling to slightly lower values, should help to avoid edge bleeding.
Title: Re: Dof creates edge bleed with Screen mapping
Post by: JoachimArt on 2019-08-22, 14:09:39
Didn't test it, but i think that setting background U and V tiling to slightly lower values, should help to avoid edge bleeding.

thanks I tried this, it doesn't change anything.
Title: Re: Dof creates edge bleed with Screen mapping
Post by: pokoy on 2019-08-22, 16:29:44
You could as well use a plane as backdrop with the map that you are using now in screen space (and using a override mat that doesn't do anything except for direct visibility), make sure the plane exceeds the frame to work OK with DOF.
Title: Re: Dof creates edge bleed with Screen mapping
Post by: maru on 2019-08-30, 19:03:53
We have this logged as a bug.

(internal id=353726053)