Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: env_sun does not render properly with pitch -90 #1329

Open
Pacca64 opened this issue Jan 10, 2025 · 0 comments
Open

Bug: env_sun does not render properly with pitch -90 #1329

Pacca64 opened this issue Jan 10, 2025 · 0 comments
Labels
Type: Bug This is a problem with something that should be working one way, but isn't.

Comments

@Pacca64
Copy link

Pacca64 commented Jan 10, 2025

Describe the bug

When an env_sun has its' use_angles keyvalue set to 1 and its' pitch is -90 (or an equivalent, like 270), it becomes invisible. The entity still exists, but cannot be seen. This makes it impossible to display the entity directly overhead. Placing it ever so slightly off (like at -89.99) seems to work fine though. Tested in Portal 2 Community Edition. Apparently, the same bug has existed in other source games (at least in TF2, according to this tf2maps.net post) for a while as well.

To Reproduce

  1. create a map in hammer with visible skybox above the player
  2. place an env_sun
  3. open the properties of the env_sun, and set its' use_angles keyvalue set to 1, it's angles set to -90 0 0, and it's pitch keyvalue to -90
  4. compile the map, then look up

alternatively, this console command can be used to test the bug on any map with visible overhead skybox:
ent_create env_sun use_angles 1 pitch -90 angles "-90 0 0"

Issue Map

sun_overhead_bug.zip
map was created with P2CEs' tools, and use the Half Life 2 skybox sky_borealis01 by default (as portal 2s' content lacks normal skyboxes).

Expected Behavior

An env_sun set to appear directly overhead should be visible and function normally.

Operating System

windows 10

@Pacca64 Pacca64 added the Type: Bug This is a problem with something that should be working one way, but isn't. label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug This is a problem with something that should be working one way, but isn't.
Projects
None yet
Development

No branches or pull requests

1 participant