Author Topic: Dof creates edge bleed with Screen mapping  (Read 8043 times)

2019-08-22, 11:38:44

JoachimArt

  • Active Users
  • **
  • Posts: 233
    • View Profile
    • JoachimArt
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?

2019-08-22, 11:55:55
Reply #1

pokoy

  • Active Users
  • **
  • Posts: 1991
    • View Profile
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 :)

2019-08-22, 14:06:10
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9296
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Didn't test it, but i think that setting background U and V tiling to slightly lower values, should help to avoid edge bleeding.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-08-22, 14:09:39
Reply #3

JoachimArt

  • Active Users
  • **
  • Posts: 233
    • View Profile
    • JoachimArt
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.

2019-08-22, 16:29:44
Reply #4

pokoy

  • Active Users
  • **
  • Posts: 1991
    • View Profile
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.

2019-08-30, 19:03:53
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13777
  • Marcin
    • View Profile
We have this logged as a bug.

(internal id=353726053)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us