Light seemingly passing through doors

Greetings! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending kin37ik points.
  • Post: Give kin37ik your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Stop Lurking!

Join GameBanana

Already a Bananite? Login

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

  • 3y
    will2k avatar
    will2k avatar Offline
    Super Moderator Joined 7y
    29,619 points Ranked 146th
    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!
  • 3y
    kin37ik avatar
    kin37ik Offline
    Member Joined 5y
    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

Share

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

More embeddable images

Bookmark and Share

Submitter

kin37ik avatar
kin37ik Offline
Member Joined 5y

kin37ik
Send a Private Message to the submitter

Category

Stats

Posts
2
Views
2,856
Date Added
3y
Date Modified
3y
bcp.crwdcntrl.net tracking pixel