StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
147 stars 3 forks source link

Bug: prop_indicator_panel is rendered as if it were translucent #655

Open FrozenDragon0 opened 3 years ago

FrozenDragon0 commented 3 years ago

Describe the bug

The prop_indicator_panel entity does not render correctly behind glass as shown here: image

If you move your camera very close to the glass however the indicator_panel entity does start to render properly behind the glass: image

To Reproduce

Steps to reproduce the behavior:

  1. Make a custom map with a prop_indicator_panel entity close to a glass brush.
  2. Launch in-game and you'll notice that the panel is not rendering correctly behind the glass from a far distance.

Expected behavior

The panel should be rendering correctly behind glass from any distance that the camera is and you shouldn't be having to put your camera right next to the glass brush to see the render work properly.

Operating System (Optional: Only if OS Specific)

vrad-exe commented 3 years ago

This is just a problem with translucent things in general, it's very difficult to sort them correctly. What you want to do is convert the glass back to a world brush if it's currently detail, that splits the glass and the indicator panel into separate visleaves, which makes sure they're sorted correctly.

vrad-exe commented 3 years ago

Although actually indicator panels aren't translucent, so the issue here would be the fact that they're being treated as such.

FrozenDragon0 commented 3 years ago

The glass brush isn't a func_detail at all, just checked the map now and it's the default world brush.

vrad-exe commented 1 year ago

How is this portal 1 compat???