Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Changes request
Home

Re: [Freeciv-Dev] Changes request

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Changes request
From: Mark Nettle <markn@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Jul 1999 12:26:52 +1000 (EST)

On Tue, 13 Jul 1999 hop@xxxxxxxxxxxxxxxxx wrote:

> At 11:05 PM 7/13/99 +0100, you wrote:
> >Artur Biesiadowski wrote:
> >
> >> 3) Image data. Xpm is not very good format (as it is noted in some doc)
> >> and other format should be used. Plain RGBA (either 5-5-5-1 or 8-8-8-8)
> >> seems reasonable to me.
> >
> >PNG seems good to me.  It's an open, free format which offers lossless
> >compression.  Free code exists to read it in C, and I imagine Java.
> 
> -- snip snip --
> 
> Just remember, that Xpm has built-in capability for making transparent
> pixels so your images can be non-rectangular in shape. If you don't have
> built-in support for transparent images, it plain sucks doing it the hard
> way. And by the hard way, you have to build a bitmask that tells which
> pixels should be drawn, then bitwise AND the bitmask with the current
> display, then XOR'ing the resulting image with the icon you want to draw.
> Using a format with built-in support for transparent pixels is very
> nice because then you don't have to use customized drawing routines,
> just xpm library calls.
> 
> I don't think PNG can have transparent pixels. I hope I'm mistaken.
> If PNG doesn't support transparent pixels, then you'll have to use
> another format that does use transparent pixels, or roll your own
> parser for the XPM format (whee!).

PNG supports alpha channels. Gamma correction info too, for those who
think the trident tileset is too dark :)

http://www.cdrom.com/pub/png/

Oh, and I think the point against rotating tiles was good too. Especially
if someone decided to try a 3d ISO view or something.

        Mark


[Prev in Thread] Current Thread [Next in Thread]