DRD Team

drdteam.org forum

Player skins - are brightmaps supported?

[Home]

Moderators: Graf Zahl, Gez

Player skins - are brightmaps supported?

Postby Enjay » Mon May 14, 2012 17:51

Can't check ATM but can player skins have brightmaps allocated to them?
User avatar
Enjay
DRD Team Admin
 
Posts: 4191
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Title: There is no dark side in the moon, really...

Re: Player skins - are brightmaps supported?

Postby Enjay » Tue May 15, 2012 21:05

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
Enjay
DRD Team Admin
 
Posts: 4191
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Title: There is no dark side in the moon, really...

Re: Player skins - are brightmaps supported?

Postby Gez » Tue May 15, 2012 21:25

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 skin and version history for ZDoom 1.16. That's why there are some limitations and restrictions.
User avatar
Gez
Dev Builds Team
 
Posts: 1169
Joined: Mon Oct 22, 2007 16:47

Re: Player skins - are brightmaps supported?

Postby Enjay » Tue May 15, 2012 22:02

That all makes sense. Thanks for the explanation.

If you ever have more than nil interest in skins... ;)
User avatar
Enjay
DRD Team Admin
 
Posts: 4191
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Title: There is no dark side in the moon, really...


Return to GZDoom

Who is online

Users browsing this forum: No registered users and 2 guests