About dynamic light intensity

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Post Reply
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

About dynamic light intensity

Post by D2JK »

I've seen GzDoom screenshots where a high light intensity can make the affected surfaces to become very bright and white, such as in this screenshot:

Image

Yet, when I stack a huge amount of lights in an area in my game, I only get this:

Image

In dynamic light options, I've tried toggling "Clip lights" on and off, but something must be wrong, because it doesn't seem to make any apparent difference whatsoever, not even in an extreme scenario such as this one. Are there any other related options or measures I should give a try?
User avatar
AFADoomer
Posts: 1324
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: About dynamic light intensity

Post by AFADoomer »

Do you have bloom enabled?

You have to use the GL renderer - setting is 3/4 the way down the Options/Display Options/OpenGL Renderer option menu (or set the 'gl_bloom' cvar to true in the console.)
dpJudas
 
 
Posts: 3040
Joined: Sat May 28, 2016 1:01 pm

Re: About dynamic light intensity

Post by dpJudas »

D2JK wrote:Yet, when I stack a huge amount of lights in an area in my game, I only get this:
The total sum of light allowed by the GL renderer is 1.5x that of a fullbright texture. Stacking multiple lights therefore will not brighten the area further. However, if you launch the software renderer you'll notice a different behavior, which is probably closer to what you had hoped for.

The BoA screenshot relies on the fact that the ground texture is almost white in a dark scene with the bloom pass enabled. In such a situation the bloom pass will most likely start to bloom the area.
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

Re: About dynamic light intensity

Post by D2JK »

Ah, so that's the problem. I was aware that the ground texture in the first screenshot is pretty white to begin with, but I figured the end result is beyond fullbright... but now, the 1.5x cap explains everything. And yes, the software rendering was closer to what I expected.

Bummer. I suppose this won't be addressed in any way in the future, either? Would it be possible to make the capping factor to depend on a console variable?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: About dynamic light intensity

Post by Graf Zahl »

Ideally the capping factor should be part of the texture's material. For some stuff it makes sense to cap at 1.0 but for other 2.0 may be better, but without a working material system it's a bit hard. You also should not forget that for textures that contain colors the necessary clipping may lead to discolorization.
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

Re: About dynamic light intensity

Post by D2JK »

Yes, in software rendering I was getting false colors in overbright areas (until I disabled "Software truecolor mode").

The effect I'm interested in is best illustrated in these Unity engine screenshots. Even a texture with somewhat dark colors originally, is allowed to clip to white.
Post Reply

Return to “Technical Issues”