DepthOfField causes a weird highlight on SurfaceGuis

Reproduction Steps

Today I noticed that some SurfaceGuis inside my game had a weird highlight based on the distance of my camera. After a bit of digging, I found out it’s due to DepthOfField for some reason. I’ve created a reproduction place that you can visit here or you can download the reproduction file provided.

Reproduction Steps

  1. Create a part within workspace that contains a SurfaceGui
  2. Add a GuiObject of some kind that’s visible to the SurfaceGui, like an ImageLabel
  3. Ensure that the SurfaceGui has AlwaysOnTop set to false
  4. Insert a DepthOfField object underneath Camera or Lighting
  5. Move your camera around and observe how the SurfaceGui has a weird highlight

System Information

AMD Ryzen 7 2700X Eight-Core Processor @ 3.95 GHz, 16GB, NVIDIA GeForce RTX 2070 SUPER

Reproduction Files

DepthOfField Bug.rbxl (39.5 KB)

Expected Behavior

I expect DepthOfField to cause no weird highlight on SurfaceGuis that have AlwaysOnTop set to false.

Actual Behavior

DepthOfField causes a weird highlight on SurfaceGuis that have AlwaysOnTop set to false.

DepthOfField Bug

Issue Area: Engine
Issue Type: Display
Impact: Moderate
Frequency: Constantly
Date First Experienced: 2022-10-27 15:10:00 (-07:00)

3 Likes

Thanks for the report! We’ll follow up when we have an update for you.

1 Like

this bug is still happening, is there any new updates on this?

Hi @YashuYoshida, thank you again for reporting this issue. After looking into it, we found that the issue was that your GuiObject’s BackgroundTransparency was set to 0 (which is the default value).

This means that the GuiObject shows through the BackgroundColor (which is [255, 255, 255] by default) when the depth of field effect blurs and blends together the SurfaceGui elements.

To achieve your desired result, in the GuiObject element inside the SurfaceGui, change the BackgroundTransparency to 1. This will mean the white BackgroundColor is fully transparent and will not cause the highlight you were experiencing when depth of field is applied.

Let us know if that fixed the problem or if you experience any other issues!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.