The Game Modding Community - Since 2001

Light seemingly passing through doors

A Forum Thread for Half-Life 2: Episode Two

okay, so ive been working on this little map for a few weeks and have a couple of prop_door_rotating in the map, with a dulled down light source behind it (accompanied by a static fluorescent light prop) so it doesn't flood the level out with excessive light, but i have this stupid problem where it seems the light cast off from a light_spot or even just a light, protrudes through the door, like it was non existent which is not what i want. is this because the light is not dynamic?

Posts

  • 4y
    will2k avatar
    will2k username pic Joined 8y ago
    Super Moderator
    Offline
    29,857 points Ranked 142nd
    30 medals 2 legendary 7 rare
    • 1st Place - Tutorials Contest Medal icon
    • 500 posts awarded Exemplary Feedback Medal icon
    • 50 posts awarded Exemplary Feedback Medal icon
    • 100 posts awarded Exemplary Feedback Medal icon
    • 200 posts awarded Exemplary Feedback Medal icon
    • Achieved Super Moderator clearance Medal icon
    will2k avatar
    will2k
    Map Critic
    You're in a tight spot here because of the way Source handles lights. Your light or light_spot is calculated during vrad compile and the static lightmaps are baked onto the textures. VRAD does not not take prop_door_rotating into consideration when calculation lights/light obstruction as far as I know and the light will pass through the door as if it is not there. there are some solutions but they're not optimal: you can insert a "blocklight" thin brush (1 unit) inside the door so your light_spot doesn't go behind the door or you can play around with the falloff settings (50% and 0%) so that the light practically dims to zero when it reaches the door. In both cases, there is a downside in that when you open the door, the other side will not have light casting because of the blocklight or falloff. You can tweak the light intensity or add some dim lights at the other side of the door to cover this effect but this is up to you to decide depending on the map geometry, other lights and goal of the map. Hope this helps Will2k
    cosa dici! avatar
    Mantra
    cosa dici!
  • 4y
    kin37ik avatar
    kin37ik Joined 6y ago
    Offline
    hmmm, i see. *rubs chin* taking into consideration that it might look too weird, it may not be out of the question to use a dynamic light, it will most likely be the only dynamic light in the map, so i guess it cannot hurt to use a dynamic light
    Rooty tooty point n shooty

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Author

kin37ik avatar
kin37ik Joined 6y ago
Offline

kin37ik
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 3,296 Views
  • 2 Posts
  • 4y Submitted
  • 4y Modified

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel