Zdoom sprite/texture color problem?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Bloodfury
Posts: 36
Joined: Wed Feb 17, 2010 3:45 am

Zdoom sprite/texture color problem?

Post by Bloodfury »

Jello!

I've been struggling for days now..

My problem is that when I try to import sprites or textures
to my hexen wad, (I use XWE) the colors are fucked up!
No matter what I try, the colors are always something beyond understanding.
I've tried to paint my sprites with variable palettes, Doom, Strife etc.
And always the same result, colors are incorrect, total mess!
Even painting with hexens own palette makes no difference.
I havent changed the main palette in wad.
But strangest thing is that when I merge someone elses monster,
Example Knight Archer from realm667, it works fine, though the colors in XWE
look odd.

Could someone make me clear why this is so hard? :)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Zdoom sprite/texture color problem?

Post by Graf Zahl »

My guess would be that XWE being stupid is working with the Doom palette and converts your graphics to that without asking.
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: Zdoom sprite/texture color problem?

Post by .+:icytux:+. »

try out SLumpEd, its much better with handling sprite/texture importing. as it pretty much ignores the pallette.
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Zdoom sprite/texture color problem?

Post by Sephiron »

I've had this problem before. Switching to SLADE worked fine. With slade, even if it gets the wrong palette, you can convert them in the editor without having to put it into an image editor.
Bloodfury
Posts: 36
Joined: Wed Feb 17, 2010 3:45 am

Re: Zdoom sprite/texture color problem?

Post by Bloodfury »

No no, the pictures are fine in the XWE! But when I start the game the colors are all fucked up!
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Zdoom sprite/texture color problem?

Post by Ceeb »

Okay, I have to ask/suggest a few things based on your post.

1) You're not loading stuff right into hexen.wad, right? Because that's a no no.

2) Try extracting PLAYPAL from Hexen as an ACT file, and put it in XWE's palette folder. When you go to import stuff into your Hexen PWAD (NOT the IWAD), first select Hexen's palette from the drop-down palette menu. This should force XWE to use Hexen's palette and not Doom's by default.

3) The forum auto word-wraps. Stop hitting enter.
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Zdoom sprite/texture color problem?

Post by Sephiron »

Bloodfury wrote:No no, the pictures are fine in the XWE! But when I start the game the colors are all fraked up!
Yeah, If It's a hexen game and you're loading graphics with a DOOM format, you have to convert them into hexen format. I'm just saying that Slade is the easiest way to do so. It shows up fine in XWE because XWE is automatically set to show the doom palette.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Zdoom sprite/texture color problem?

Post by NeuralStunner »

Sephiron wrote:Yeah, If It's a hexen game and you're loading graphics with a DOOM format, you have to convert them into hexen format.
There is no Hexen graphic format.

Converting the graphics to PNG in SLumpEd or Slade3 is the simplest way to make cross-palette graphics.

- In Slade3, first hilight all the graphics you want to convert.
- Right click on one of them, and choose "Convert GFX to..." from the menu.
- in the box at the top, choose "PNG Format (8bit Paletted)"
- Underneath both Current and Graphic, set the box underneath to the correct palette.
- Click "Convert All".
- Look through the converted graphics and make sure you got everything right, then save the wad.

Now, while the PNGs are technically paletted to a specific game, that palette information is contained in the PNGs themselves. ZDoom won't have to rely on the IWad palette to know what each pixel should be. Instead, it is able to convert each of the PNG's colors to the closest match in the IWad palette. (If you play in GZDoom's GL mode, it won't even force them into the Iwad palette at all. :) )
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Zdoom sprite/texture color problem?

Post by Sephiron »

NeuralStunner wrote:
Sephiron wrote:Yeah, If It's a hexen game and you're loading graphics with a DOOM format, you have to convert them into hexen format.
There is no Hexen graphic format.

Converting the graphics to PNG in SLumpEd or Slade3 is the simplest way to make cross-palette graphics.

- In Slade3, first hilight all the graphics you want to convert.
- Right click on one of them, and choose "Convert GFX to..." from the menu.
- in the box at the top, choose "PNG Format (8bit Paletted)"
- Underneath both Current and Graphic, set the box underneath to the correct palette.
- Click "Convert All".
- Look through the converted graphics and make sure you got everything right, then save the wad.

Now, while the PNGs are technically paletted to a specific game, that palette information is contained in the PNGs themselves. ZDoom won't have to rely on the IWad palette to know what each pixel should be. Instead, it is able to convert each of the PNG's colors to the closest match in the IWad palette. (If you play in GZDoom's GL mode, it won't even force them into the Iwad palette at all. :) )
That's exactly what I meant :\

You still need to choose the palette you're converting and the palette you're converting it to.
In this case, selecting "DOOM" under the first image and "HEXEN" under the second should do the trick.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Zdoom sprite/texture color problem?

Post by NeuralStunner »

Sephiron wrote:In this case, selecting "DOOM" under the first image and "HEXEN" under the second should do the trick.
Like I said, it's best to leave the palette as-is, and let ZDoom do any changing that's needed. This way you don't end up with a sadly poor palette conversion in GZDoom as well.
User avatar
Sephiron
Posts: 300
Joined: Mon Jun 28, 2010 1:56 pm
Location: Michigun, pew pew!

Re: Zdoom sprite/texture color problem?

Post by Sephiron »

NeuralStunner wrote:
Sephiron wrote:In this case, selecting "DOOM" under the first image and "HEXEN" under the second should do the trick.
Like I said, it's best to leave the palette as-is, and let ZDoom do any changing that's needed. This way you don't end up with a sadly poor palette conversion in GZDoom as well.
Well then, I guess I messed up. Oops.
Bloodfury
Posts: 36
Joined: Wed Feb 17, 2010 3:45 am

Re: Zdoom sprite/texture color problem?

Post by Bloodfury »

Okay.. that enlightened me a little.. I shall try.. Is there a some place I could download that hexen palette "act" file or what it was? :D
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Zdoom sprite/texture color problem?

Post by NeuralStunner »

Slade3 comes with a Hexen palette. Also, if you have Hexen (even the demo would work), open it up and find an entry called PLAYPAL. Export this to a file, name it HexenPal.act or some such. Format is the same.
Locked

Return to “Editing (Archive)”