Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to make character sets transparent?  (Read 1994 times)

1v0ry_k1ng

  • Bay Watcher
    • View Profile
How to make character sets transparent?
« on: August 14, 2014, 07:57:13 am »

Here is a character set I have attempted to convert from BMP to transparent PNG, as I like their simplicity and readability.



Unfortunately, these appear in game with a black background instead of a transparent one.

I have mucked around with various transparency settings to no avail. The CLA character sets, also in my game, are transparent and working without issue.

Could someone please point me towards the method used to make these transparent ingame?

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: How to make character sets transparent?
« Reply #1 on: August 14, 2014, 08:24:45 am »

If you're trying to make the floor visible beneath the unit, then you should know that that's impossible - no matter what, only one single tile can ever be displayed in a given location.

The only thing transparency does is allow a proper background color to be applied, such as brown for "prone", blue for "drowning", purple for "wrestling", or light blue for "projectile".
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

1v0ry_k1ng

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #2 on: August 14, 2014, 08:39:40 am »

I know -- my issue is that my colors.txt makes the background color dark tan grey, whilst the tileset has a background color of black, which looks silly.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: How to make character sets transparent?
« Reply #3 on: August 14, 2014, 08:45:03 am »

Your tileset image appears to be RGB, most likely with a full alpha channel - just for fun, try converting it to palette-based to make it use simple transparency data and see if it works any better. pngout should be able to do that automatically.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

1v0ry_k1ng

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #4 on: August 14, 2014, 09:04:59 am »

that shrunk the files, and they still have a transparency layer, but now they just appear with white backgrounds ingame - looks even worse  :(

can anyone please help?
« Last Edit: August 15, 2014, 03:29:05 am by 1v0ry_k1ng »
Logged

1v0ry_k1ng

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #5 on: August 15, 2014, 04:11:27 am »

Anyone? Sorry to bump but I am really eager to fix this!

Nero1024

  • Bay Watcher
  • Terrible majestry
    • View Profile
    • DeviantArt
Re: How to make character sets transparent?
« Reply #6 on: August 15, 2014, 08:20:57 am »

Did you try setting the background color to hot pink (255,0,255)? What image editor are you using?
Logged

GFXiNXS

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #7 on: August 15, 2014, 09:03:25 am »



Does this help?
Logged
Intel i7 980X 6-Cores @ 3.8GHz
6GB DDR3 8-8-8-24 @ 2000MHz
Radeon 5970 - Stock Clocks

1v0ry_k1ng

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #8 on: August 15, 2014, 09:57:35 am »

Nope, those still appear with a black background for me.

Compared with CLA graphics, which have the transparent background (compare animals to dwarves):



CLA

  • Bay Watcher
    • View Profile
Re: How to make character sets transparent?
« Reply #9 on: August 16, 2014, 04:20:04 pm »

Are the raws set to AS_IS or ADD_COLOR?

If all else fails, just give the background of your graphics the same value as the BLACK value of your colors.txt.
Logged
CLA - an ASCII-like Graphic Pack with simplified letter-like creature graphics. The simple and clean looks of ASCII with distinct creature graphics - best of both worlds!

http://www.bay12forums.com/smf/index.php?topic=105376.0