Issue with colors on an actor/player

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Issue with colors on an actor/player

#1

Post by Erma » Wed Feb 22, 2017 8:47 pm

Hello hello!

I have been creating a new character for my mod and stumbled on this little issue:

In the image seen below, the "model"/spawnable actor on the left is how it is supposed to look.
Meanwhile, me (or any other player playing as the character) looks different in terms of its colors.

The problem is: as you can see, the model on the left has a nice shade of black, while on the right; it has a more dark-green-ish tint (which is also visible on the front)

Any idea what may be the issue/what could potentially fix this issue?
Spoiler: Here's the actor code: (Open)
Actor Stiglitz : PlayerPawn
{
Mass 400
Player.SoundClass "Stiglitz"
Player.DisplayName "Stiglitz"
Player.ForwardMove 1.0
Player.SideMove 1.0
Player.ColorRange 112, 127
Player.StartItem "MP40", 1
Player.StartItem "MP40Reload", 30
Player.StartItem "Clip3", 400
Player.StartItem "GasGun", 1
Player.StartItem "GasBombs", 10
Player.StartItem "IsHuman", 1
Player.StartItem "Screamer", 0
DamageFactor "GhostTrap", 0.0
Damagefactor "normal", 0.9
Damagefactor "Sentinel", 0.0
Damagefactor "MechPewPews", 0.0
Damagefactor "MacheteSlicerino", 0.0
scale 1.1
PainChance 256
LimitedToTeam 0
+NOSKIN
+NOICEDEATH
+NODAMAGETHRUST
+GHOST
+QUICKTORETALIATE
States

Image
Image

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: Issue with colors on an actor/player

#2

Post by Ænima » Thu Feb 23, 2017 1:29 am

What format are the sprites in?
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Re: Issue with colors on an actor/player

#3

Post by Erma » Thu Feb 23, 2017 2:31 am

Ænima wrote:What format are the sprites in?
Wasn't exactly specified, but they're on the zdoom forums resource page a while ago.

So I digged a bit in my saved resources files in my computer itself and re-discovered the spriteset.

If they need to be in a certain format, how does one change that?

Like, "Game Doom?" in the code itself or let Slade convert it (if that option's still around and if Slade doesn't crash 90% of the times when I try to view a sprite)?

They also look fine as in, in the Slade sprite preview window as well as when you summon/spawn the actor itself (seen in the image in my first post).

[spoiler]Image[/spoiler]

I also found the original post: https://forum.zdoom.org/viewtopic.php?f=37&t=47653
Image

User avatar
President People
Forum Regular
Posts: 394
Joined: Tue Jun 05, 2012 8:12 am

Re: Issue with colors on an actor/player

#4

Post by President People » Thu Feb 23, 2017 9:12 am

From the looks of things, the sprites in your wad are truecolor PNGs. Player skins are paletted, and therefore restricted to the colors defined in the PLAYPAL lump, resulting in the differences you see in your screenshot.

While it'll never perfectly match the truecolor version, some manual editing might help produce a more satisfactory result. Exporting the images (The PLAYPAL lump itself can also be exported to PNG) to tinker with in Photoshop or the like typically offers more control and can help prevent losing colors that would otherwise be interpolated. In this case, though, SLADE's conversion to Doom's palette and Color Remap ought to do the trick.


Now that I think about it… failing full truecolor PNG support for skins, skin-specific palette lumps would be pretty great. I wonder how feasible that is.
Last edited by President People on Fri Feb 24, 2017 6:37 am, edited 1 time in total.
Image
***MARATHON SKINS PACK V1.0.7***

I have been Roland, Beowulf, Achilles, Gilgamesh.
I have been called a hundred names and will be called
a thousand more before the world goes dim and cold.

User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Re: Issue with colors on an actor/player

#5

Post by Erma » Thu Feb 23, 2017 10:50 am

Thank you for your assistance, both Aenima and President People.

I've trying to get Slade NOT to crash on me all the time and converting them to the doom's palette does do the trick.
Although it does not completely make it black like in the image, most of the green-ish tints are gone.

Thank you! :)
Image

Post Reply