1.0.29
Moderator: Graf Zahl
- Enjay
- Developer
- Posts: 4723
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Brightmaps allow certain pixels on a sprite to be bright rather than the all or nothing approach of fullbright sprites.
It looks like the way to do it is to make a graphic the same size as the main sprite. You make pixels that you want on the original sprite to be bright light colours (eg white) and pixels that you want to be dull dark colours (eg black) and then map the graphic to the original sprite using a control lump. Graf has included an example in the latest distribution. Load up brightmaps.pk3 and have a look (switch off dynamic lights to make it more obvious). You'll see things like enemies having bright gun flashes but the rest of the sprite being normally lit etc.
It looks like the way to do it is to make a graphic the same size as the main sprite. You make pixels that you want on the original sprite to be bright light colours (eg white) and pixels that you want to be dull dark colours (eg black) and then map the graphic to the original sprite using a control lump. Graf has included an example in the latest distribution. Load up brightmaps.pk3 and have a look (switch off dynamic lights to make it more obvious). You'll see things like enemies having bright gun flashes but the rest of the sprite being normally lit etc.
- Azure Agony
- Posts: 71
- Joined: Fri Aug 24, 2007 6:40
- Location: Somewhere in HANGAR or E4M7
- Enjay
- Developer
- Posts: 4723
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
That would be very nice! I can't check it ATM but I think the control lump references the actor that has the sprites. If so, and if that is an essential part of the definition, then the system couldn't do it at present. However, from a layman's POV it does seem like it should be an easy extension to the current system if it isn't already in. Let's hope so.
- Tormentor667
- Stronghold Team
- Posts: 3555
- Joined: Sun Nov 13, 2005 23:15
- Location: Germany
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Enjay wrote:That would be very nice! I can't check it ATM but I think the control lump references the actor that has the sprites.
No, it doesn't. It references the sprite frame by its texture name. In any case, since a sprite is just a texture like anything else for the renderer there's nothing to prevent brightmaps from other types of textures. In fact, for Strife this is already done internally to create the fullbright colors in the palette.
- Enjay
- Developer
- Posts: 4723
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Good news, I'll have to try that too. Real Life is just getting in the way ATM so I still haven't had a chance to try my own stuff yet.
long shot... I don't suppose model skins can also work? Somewhat ironically, you've just given us the power to specify individual bright pixels on a sprite and now I'm looking at some model replacements that I have only just recently made and they look very odd being totally bright when only certain areas of them should be - especially when I now have such control over sprites.
long shot... I don't suppose model skins can also work? Somewhat ironically, you've just given us the power to specify individual bright pixels on a sprite and now I'm looking at some model replacements that I have only just recently made and they look very odd being totally bright when only certain areas of them should be - especially when I now have such control over sprites.
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
- mundungu
- Posts: 8
- Joined: Sun Oct 16, 2005 17:31
When attempting to run The Ultimate Torment/Torture with this newest version, I get an error
Code: Select all
Script error, "DEC_CLAS" line 36:
Expected string constant but got identifier 'AltSkinDeath' instead.
- 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:
More the fact that despite my clear announcement of this fact there were 2 mods released by the same person who still released the version with the old syntax - and worse, for calls that should have been deleted to begin with because they not only were unnecessary, they even might have caused problems if they had worked as intended!
- 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:
- ChupaReaper
- Posts: 202
- Joined: Fri Jun 15, 2007 16:35
- Location: England
- Contact: