Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0

GZDoom dynamic lighting


Is there a method other than one sided lines to block the dynamic lights? I was hoping for a linedef. My reason for asking is, I have a door with a light above it. The light comes through the door in such a way that it makes the door appear open when its not.


It would be really nice to be able to flag two-sided lines to block dynamic lights, or even better, be able to toggle that flag with triggers in-game.


Any ideas?

Share this post

Link to post

6 answers to this question

Recommended Posts

  • 1

First, watch this:

Skip to 3:20. This is the light tag feature for doors, originating from Boom.


Now when you link a dynamic light to sector brightness, and the sector brightness is itself linked to how open the door is, that means that you can get a dynamic light which is on when the door is open and off when the door is closed.

Share this post

Link to post
  • 0

It's not possible yet to dynamically change the shadowmap. It has been suggested, though, but so far not implemented.


A possible workaround, depending on your map layout, could be to give a smaller radius to the outside light, so that it doesn't extend inside, and light the inside with another dynamic light which is linked to sector brightness combined with the Boom lighttag feature to make the sector brighter when the door is open.


Alternatively, you could flank the door with lamps to explain away the light when it's closed.


Also keep in mind that the shadowmap can be disabled entirely for performance reasons, meaning that then even one-sided walls won't block light.

Share this post

Link to post
  • 0

The intensity of a point light is used as an absolute, independent of the factors around it. Sector based lights are additive to the light around it, so it depends on the brightness of the sector it is placed in. In this way, whereas point lights are absolute, sector lights are variable, based on the sector lighting, if that makes any sense.

Share this post

Link to post
  • 0

I've found that Spotlights are really good for cheating on stuff like this, especially if you've been specular-mapping textures.


I just pulled a trick in Membrane by putting a spotlight under the door and using ACS to operate the door and the spotlight at once.  I'll probably modify the code at some point to do some fading effects while it's happening, so the light doesn't just click on and off.  You should look into doing something like that.


Edit: Likewise, you can do that with sector lighting.

Edited by RockstarRaccoon : add

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now