Jump to content
  • 0

Check PLAYPAL for duplicates


Krull

Question

6 answers to this question

Recommended Posts

  • 2

Well, as it turns out, there is a way!

You can import your palette in that and then sort by R, then G, then B (or whatever order you want) and it'll put your duplicates next to each other.

 

 

Standard issue disclaimer about deduplicating colors: the ZDoom port assumes that there will be at least one color that's duplicated and use it to get a transparent color index.

Share this post


Link to post
  • 1

The post by Urthar in this thread outlines hard duplicates, and also gives suggestions for other not so necessary color entries that could be replaced. Interestingly the duplicates of a single color are used seemingly randomly in different sprites / textures / menu graphics, and none of them are by default completely unused.

 

Also, the post by Ribbiks in this thread has some good pointers regarding hardcoded automap color slots in the palette.

Share this post


Link to post
  • 0

IIRC it's specifically 8-bit software mode in ZDoom derivatives. 32-bit mode (truecolor) has a full alpha channel for translucency and doesn't need to sacrifice one palette index since after all it doesn't use the palette anyway. But paletted mode does because, in order to use flats on walls and other image formats such as PNG, it can't make use of Doom's native patch format (which handles transparency by skipping over transparent pixels) and so use the crutch of a transparent pixel index. My general recommendation is to just put pure black (#000000) in both palette index 0 and 255. The rest can be unique colors.

Share this post


Link to post
  • 0
2 hours ago, Krull said:

What about Boom-derivative ports?

They shouldn't be concerned by the need for one duplicate color. Unless they made the same move as ZDoom to have  a unified texture manager, perhaps. Only Eternity fits this case and I don't know how it's handled internally in that port.

 

2 hours ago, Krull said:

Does it have to be entry #255?

No.

 

2 hours ago, Krull said:

Does this mean every image must be converted to use the same palette entry for transparency?

Every image already uses the same palette, by definition, as for the transparent color, ZDoom does take care of this part automatically.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...