Right now, GZDoom's lights are omnidirectional. How about some additional light types?
I was thinking of directional lights (with an argument to control the pitch), ambient light (which could probably be just a really huge light, because even at 255 size, the dynamic light just isn't big enough for some situations), and maybe a spotlight type (again, with pitch).
These additions would help level builders create more visually appealing levels (with the proper usage of course).
More dynamic light types
Moderator: Graf Zahl
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Directional lights can't be done properly with the information at hand.
Huge lights won't be done because they can kill performance faster than you can look. If you need something larger you can use Vavoom light which multiply the radius by 4.
This is Doom not some modern engine with all the needed data to process light sources efficiently.
Huge lights won't be done because they can kill performance faster than you can look. If you need something larger you can use Vavoom light which multiply the radius by 4.
This is Doom not some modern engine with all the needed data to process light sources efficiently.
-
- Posts: 125
- Joined: Wed Jul 06, 2005 17:52
- Snarboo
- Posts: 469
- Joined: Thu Jul 07, 2005 2:35
- Location: space station base of the UAC
-
- Posts: 125
- Joined: Wed Jul 06, 2005 17:52
Faking a static spotlight that never moves is easy as hell too. Just use two dynamic lights.Snarboo wrote:You can always fake it sometimes, too. Spotlights especially. Using some fancy level editing skills and dummy sectors, you might be able to fake the effect of a moving spotlight. Or you could use a sprite to simulate the effect.
-
- Posts: 20
- Joined: Sun Nov 13, 2005 3:44
Doomsday has a neat trick to do this in a really cheap but usable manner - It just lets you pick what lightmap texture gets used above, below and to the sides of an object. You can essentially use it to fake areas of shadow, and I don't see it being hard to implement (really, just a swap out of the basic blob light texture for something custom)