This bug only came to my attention after one of my players reported that they saw the highlight object through walls when they shouldn’t have. So I spent a bit of time trying to figure out what happened and this seems to be the problem:
Reproduction Steps
- Turn on OpenGL in Roblox Studio (File > Studio Settings > Rendering > Graphics Mode > OpenGL)
- Restart Roblox Studio for the changes to be made
- Insert a part into a place file with a highlight object inside it
- Set the highlight object’s DepthMode to Occlude
- Look at the highlight object through any part and you’ll still see it
System Information
AMD Ryzen 7 2700X Eight-Core Processor @ 3.95 GHz, 16GB, NVIDIA GeForce RTX 2070 SUPER
Reproduction Files
Highlight Bug.rbxl (41.8 KB)
Expected Behavior
I expect the highlight object to be occluded with OpenGL when the DepthMode is set to Occluded.
Actual Behavior
The highlight object is not occluded when the DepthMode is set to Occluded and when the Rendering Mode is OpenGL.
On a side note, you can also see that the outline for the highlight object is also not rendered for OpenGL. I have no clue if that’s a limitation or not.
Issue Area: Engine
Issue Type: Display
Impact: High
Frequency: Constantly
Date First Experienced: 2022-05-18 13:05:00 (-07:00)
Date Last Experienced: 2022-05-20 11:05:00 (-07:00)