Quake3World.com
https://www.quake3world.com/forum/

Dynamic lights in Quake 3
https://www.quake3world.com/forum/viewtopic.php?f=10&t=45788
Page 1 of 1

Author:  Eraser [ 05-06-2011 04:02 AM ]
Post subject:  Dynamic lights in Quake 3

Well, sort of:


It's light emitting func_train entities actually. This should've been possible in vQ3 but isn't due to a bug in the client game code, which I've fixed in EntityPlus (at least, in the upcoming 0.5 release).

Unfortunately it's effect is an effect on top of the current lightmap. It looks like it's some multiplication blend func, don't really know the technical mumbo jumbo here. The point is that it can't be used to actually light areas, because a dark lightmap will not show much of an effect when a dynamic lighteffect is added to it. It's actually the same functionality used by rockets, quads and flags to give a glow around them.

It's certainly not entirely useless, some pretty neat things can be done with it that we haven't seen before in Quake 3. No idea why id Software never bothered to fix this problem.

Author:  DaEngineer [ 05-06-2011 05:54 AM ]
Post subject:  Re: Dynamic lights in Quake 3

Very nice, that can come in handy. But what about the scaling of these dynamic lights on the z-axis? They have the correct size on floors, but are extremely stretched on vertical surfaces. Was that done by id on purpose or is there a technical reason for it and it is unwanted? IF it is unwanted, can you configure it in a way it has the same scaling factor on all axes?

Author:  obsidian [ 05-06-2011 06:09 AM ]
Post subject:  Re: Dynamic lights in Quake 3

It works by texture projection along the z-axis. Not easily fixed for vertical surfaces, you would have to determine which surfaces are affected by the effect, calculate the surface normal of each affected surface and use that to determine projection axis.

Author:  Eraser [ 05-06-2011 06:12 AM ]
Post subject:  Re: Dynamic lights in Quake 3

That's all code in the engine, which I have no access to, at least, not without writing an engine mod.

Author:  VolumetricSteve [ 05-06-2011 06:31 AM ]
Post subject:  Re: Dynamic lights in Quake 3

For one, this is awesome, I'm glad someone finally did this, I was actually surprised to find that more things weren't given these dynamic-ish lights in-game. I figured at a minimum it could be used to add some life to flashing lights which the single player game is full of. Very, very cool Eraser.


DaEngineer wrote:
Very nice, that can come in handy. But what about the scaling of these dynamic lights on the z-axis? They have the correct size on floors, but are extremely stretched on vertical surfaces. Was that done by id on purpose or is there a technical reason for it and it is unwanted? IF it is unwanted, can you configure it in a way it has the same scaling factor on all axes?


What Obsidian said. I doubt it was wanted, as it looks insane, but on a non-technical note, I feel like this glitch adds a charm to Quake 3 that...personally, I wouldn't ever want totally removed. It would be cool though if someone crafty found a way to fix it, and offer some kind of command line switch to toggle dynamic light processing mode.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/