Glowmaps
Moderator: Graf Zahl
- Epoch
- Posts: 69
- Joined: Sat Nov 05, 2005 14:38
- Location: Somewhere
Glowmaps
Would it be possible to implement glowmaps in GZdoom?
What I mean is make it so some parts of sprites (specifically the orange glow from the muzzle flash on zombie) always stay a certain minimum brightness, thereby allowing people to do away with the fullbright crap. This could be defined using "replacement" sprites between G_Start and G_End markers, similar to hires stuff.
What I mean is make it so some parts of sprites (specifically the orange glow from the muzzle flash on zombie) always stay a certain minimum brightness, thereby allowing people to do away with the fullbright crap. This could be defined using "replacement" sprites between G_Start and G_End markers, similar to hires stuff.
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
- Enjay
- Developer
- Posts: 4747
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
I'd like this effect (not bothered how it's implemented) for textures too - imagine textures with glowing lamps - but only the lamps - or little red dots on computery/techy textures or...
I know that, again, it could be done with a dynamic light, but I'd like to be able to specify a texture to behave like that all over a level without having to place a dynamic light each time.
I know that, again, it could be done with a dynamic light, but I'd like to be able to specify a texture to behave like that all over a level without having to place a dynamic light each time.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
- Shinjanji
- Posts: 198
- Joined: Sun Nov 06, 2005 16:45
- Location: Pennsylvania, USA
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Actually, that's the only way to do it.
Regarding the shaders, I have looked through ZDoomGL's code. I think I can do most of the stuff without problems. The only thing that won't work 100% is some exotic blending mode combinations with fog so I think I will restrict this to the safe combinations for now.
Regarding the shaders, I have looked through ZDoomGL's code. I think I can do most of the stuff without problems. The only thing that won't work 100% is some exotic blending mode combinations with fog so I think I will restrict this to the safe combinations for now.
- Caligari_87
- Posts: 45
- Joined: Tue Nov 08, 2005 18:26
- Location: Salt Lake City, Utah
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
-
- Posts: 130
- Joined: Sat Oct 08, 2005 19:22
The reason Doomsday has routines like that are to save the modder work and to add effects to resources it doesn't have definitions for. If the automatically determined values aren't what you're looking for OR they aren't "correct" - then use a DED to set them how you want.
Considering that the automatical determination of the light's origin returns correct results 90% of the time, without ANY user intervention I feel it is a very useful feature.
For example I can play old TC's like AliensTC and the lamps all have lights & halos in the correct places.
Considering that the automatical determination of the light's origin returns correct results 90% of the time, without ANY user intervention I feel it is a very useful feature.
For example I can play old TC's like AliensTC and the lamps all have lights & halos in the correct places.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
DaniJ wrote: Considering that the automatical determination of the light's origin returns correct results 90% of the time, without ANY user intervention I feel it is a very useful feature.
It would be more useful if it wasn't on by default with no way to switch it off easily. But last time I checked it was all or nothing. Either you have to bother with the automatic lights or have no lights at all. It got really nasty with the Doom64 TC. It had to have lights on due to the glows but as a result all the pickup items which were bright so that they weren't affected by the colored light also emitted some lights which looked rather odd.
-
- Posts: 130
- Joined: Sat Oct 08, 2005 19:22
I agree there should be a way to disable the automatical calculations. I'll add a CVAR to control this for 1.9.0It would be more useful if it wasn't on by default with no way to switch it off easily.
It would be nice to disable lights on full-bright objects on a per-object basis too, so I'll implement a new MF_NOLIGHTS flag also.
Yes, from what I've heard from Kaiser this was one of the reasons he created Absolution.EXE rather than keep D64TC as a dll... rather OTT IMO. He should have simply made an RFE about that and I'm sure Skyjake would have implemented a CVAR in an earlier version.It got really nasty with the Doom64 TC. It had to have lights on due to the glows but as a result all the pickup items which were bright so that they weren't affected by the colored light also emitted some lights which looked rather odd.
The fact that D64TC decided to make ALL items full-bright was a rather strange decision in my book but given how odd the lighting in the original D64 is - I can understand why.
---
I'm sorry for my outburst over at DW. Now that I've calmed down a bit, I do think I overreacted somewhat but I hope you understand why I did react.