Player skins - are brightmaps supported?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4723
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Player skins - are brightmaps supported?

Post by Enjay »

Can't check ATM but can player skins have brightmaps allocated to them?
User avatar
Enjay
Developer
Developer
Posts: 4723
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Player skins - are brightmaps supported?

Post by Enjay »

Well, unfortunately, the answer seems to be no. :(

I can add a set of brightmaps for the player default skin and that works.

If, however, I create a set of brightmaps and allocate them to a skin's sprite names, changing to that skin in game does not result in the player's new appearance being brightmapped.

At least what I feared might happen doesn't. I was worried that changing to the new skin would result in the brightmaps allocated to the PLAY* sprites also being allocated to the new skin but, no, the skin simply doesn't use any brightmaps.


I wonder, if the system is already semi skin-sprite aware, would it take much to enable brightmaps for skins?

There are a few places where I wanted to use "scripted marines" with changed skins and I also wanted to use them in botmatches. In both cases, I can currently have any marine or bot that is using the base skin brightmapped but any actors not using them will be quite dull looking in comparison. :( Of course, for the former I could include the skin images as proper sprites and just clone the scripted marines...

Even if it's not an easy job, just for the sake of me knowing, would someone mind giving me an idea of how the engine regards skin sprites? By the way they are placed and defined in a WAD and from the brightmaps experiment above, it seems that skin sprites are not really following the rules that are normally associated with sprites. So does the engine see them as a special case only to be used in certain circumstances or something? Do they have their own namespace rather than being sprites? (Also, am I right in saying that the skin format is basically an import from Legacy?)
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Player skins - are brightmaps supported?

Post by Gez »

I think what would be needed would be a way to bind brightmaps to a skin explicitly. I mean, from what I've understood (but haven't actually tested because my interest in skins is next to nil), each skin is in its own namespace. So you can have a hundred different skin all using PLAY* sprites without any conflict.

And yeah, it totally comes from Legacy. See [wiki]skin[/wiki] and version history for ZDoom 1.16. That's why there are some limitations and restrictions.
User avatar
Enjay
Developer
Developer
Posts: 4723
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Player skins - are brightmaps supported?

Post by Enjay »

That all makes sense. Thanks for the explanation.

If you ever have more than nil interest in skins... ;)
Locked

Return to “GZDoom”