Player Skin Error

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
Assassin of Purity
Posts: 178
Joined: Thu May 10, 2018 10:55 am
Graphics Processor: Not Listed

Player Skin Error

Post by Assassin of Purity »

Hello. There's something wrong with my personal player skin someone fixed for me. When playing Doom, it appears fine. However, when playing Heretic, it looks bugged. Could it be a GZDoom problem?
Attachments
How it is in Heretic.
How it is in Heretic.
2018-07-19-11-14-04-1.png (24.47 KiB) Viewed 609 times
How it appears in Doom 2.
How it appears in Doom 2.
2018-07-19-15-00-37-1.png (20.24 KiB) Viewed 609 times
Last edited by Assassin of Purity on Thu Jul 19, 2018 2:42 pm, edited 1 time in total.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Player Skin Error

Post by drfrag »

No, that's becouse it's using the Doom palette and not the Heretic one. That skin is for Doom.
Assassin of Purity
Posts: 178
Joined: Thu May 10, 2018 10:55 am
Graphics Processor: Not Listed

Re: Player Skin Error

Post by Assassin of Purity »

drfrag wrote:No, that's becouse it's using the Doom palette and not the Heretic one. That skin is for Doom.
Thanks.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Player Skin Error

Post by Enjay »

Part of the problem is that the skin sprites are in Doom format. This format does not contain its own palette but, rather, each point in the image is mapped to a location on the game palette. Change the palette and the appearance (colour) of the image displayed will change. That's what happens when you load the skin in Heretic, it's using Doom palette references, but these are being mapped against the Heretic palette and these are mostly not suitable 1 for 1 replacemsnts with regards to palette order etc.

If you convert the sprites to PNG format (Slade can do this reasonably simply), then GZDoom will do a better job of displaying them because it will use the colours in the PNG and try to map them to the game palette*. This can be a bit hit or miss for an image intended for another game but usually it works out quite well. The biggest concern in this situation is that Doom player skins with a lot of green often don't work out very well in Heretic and certain player colour options can look quite bad. However, on this particular skin, the colour-adjustable green area is limited to the narrow bands of colour on the shoulder pads, so it will probably work out reasonably well.

*Non-player PNG sprites do not get mapped at all in GZDoom - they just use their own colours, but the player sprites are handled differently to accommodate the ability to adjust colours.

For illustration - a Doom skin, in Doom graphics format, in Heretic:
Spoiler:
The same skin converted to PNG format, still in Heretic:
Spoiler:
Messing with the colour sliders to make the green problem less obvious (also still in Heretic):
Spoiler:
[edit] Oh, and of course, what it looks like in Doom - it's a very green sprite:
Spoiler:
Assassin of Purity
Posts: 178
Joined: Thu May 10, 2018 10:55 am
Graphics Processor: Not Listed

Re: Player Skin Error

Post by Assassin of Purity »

Thank you so much for that information, Enjay. =D
Post Reply

Return to “Assets (and other stuff)”