[CF List] PNG Images

Mark Wedel mwedel at scruznet.com
Fri Jun 30 22:08:29 CDT 2000


Jeffrey Hantin wrote:
>
     
      One thing I did notice as an advantage of xpm: a single xpm can
     
     >
     
      support multiple colormaps for different color depths, thus allowing
     
     >
     
      the client to choose a colormap appropriate to its visual and depth.
     
     >
     
      This also eliminates the need to have separate monochrome xbm images,
     
     >
     
      unless they're used to deal with downlevel clients-- and I don't know
     
     >
     
      that clients that old are supported.  So for that matter, why not drop
     
     >
     
      the xbm?
     
     
 Actually, png can also do this.  I don't think the images as currently
distributed have this set up.

 I remember asking about xbm a while ago, and apparantly there will still a
number of people out there playing on monochrome x-terminals and the like. 
While xpm worked on those, you didn't gain much, but using them took up more
bandwidth and memory, so xbm worked fine.

 Png at least doesn't use up nearly the space of png, but still a bit more than
xbm (you can't really look at the ones in the arch distribution, as those are
the text representation.  In the crossfire.xbm file, they are converted to
binary, and each one is 72 bytes).  With pngs, the space isn't quite so bad
(from a limited sample, it looks like the png's are roughly 3 times the xbm, and
the xpm is 3-4 times bigger than the png)


>
     
      I think part of the issue is whether the graphics should look iconic
     
     >
     
      or photographic.  In 24x24 or even 32x32, I think it's a small enough
     
     >
     
      space to warrant iconic style, which also copes well with a restricted
     
     >
     
      colormap.
     
     
 I believe a lot of it was simply because the original 24 colors was not a
really good represenation of the colors - it basically covered the 12 or so
colors of the original game and I filled in some more, but I believe there were
some colors that were basically absent that David wanted to use.

 I don't think even at 32x32 you can every really get them looking photographic
- if you try that, more likely it will just appear as a blur.

    
    


More information about the crossfire mailing list