Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #7669

Re: how 2 compress Fat Bitmap

Newsgroups comp.programming
Date 2017-03-28 15:19 -0700
References <215856a8-c1a4-4a0e-a43f-69f860c2094c@googlegroups.com> <83b023c0-2a8f-4802-9337-1dff9f2e73d9@googlegroups.com> <2ulldcliq96se346fpqks8osqrs91u51u0@4ax.com>
Message-ID <3a8c88ea-e7c3-4af9-9f84-515eafe08751@googlegroups.com> (permalink)
Subject Re: how 2 compress Fat Bitmap
From fir <profesor.fir@gmail.com>

Show all headers | View raw


W dniu wtorek, 28 marca 2017 23:39:35 UTC+2 użytkownik robert...@yahoo.com napisał:
> On Tue, 28 Mar 2017 10:26:33 -0700 (PDT), Ed Prochak
> <edprochak@gmail.com> wrote:
> 
> >On Monday, March 27, 2017 at 12:13:33 PM UTC-4, fir wrote:
> >> i get a little big tired when coding roguelike and
> >> maybe i could rest coding a side problem 
> >> 
> >> in my roguelike i use now 24bpp bitmap to store a tile map, 
> >> it is 2000x2000 pixels (as pixel is something like 'big meter' 
> >> in game world (something like 1.5 m x 1.5 m) this would
> >> be like a 3 km x 3 km square of land 
> >[]
> >> 
> >> it is 12 MB bmp file and loading it makes 1 second
> >> delay at game startup (on my hdd, on some more new
> >> hdd could be faster) 
> >> 
> >
> >[]
> >> the question is - what algorithm to use to pack it
> >> - it could be reasonably simple to write but also maybe
> >> something more effective then if i would just turn
> >> colors to palette entries? 
> >> 
> >> 
> >> what do you think?
> >
> >Why don't you check out open sources for algorithms like
> >jpeg compression? Sure you did not write it, but it is
> >sometimes very helpful to learn from someone else's code.
> 
> 
> The reference code for libpng has a very permissive license, as does
> the required zlib.  And you can trivially test how well those will
> work by opening the bitmap in your favorite image editor and saving it
> as a PNG.

dont you see i wrote on this post above? gif works 
well png not so much, jpg quite bad

Back to comp.programming | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-27 09:13 -0700
  Re: how 2 compress Fat Bitmap JJ <jj4public@vfemail.net> - 2017-03-28 08:06 +0700
    Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 00:43 -0700
      Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 01:02 -0700
  Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-03-28 10:26 -0700
    Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:19 -0700
      Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:25 -0700
        Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 12:33 -0700
        Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-03-30 13:40 -0700
          Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 13:50 -0700
            Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 13:54 -0700
              Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-30 15:10 -0700
            Re: how 2 compress Fat Bitmap Ed Prochak <edprochak@gmail.com> - 2017-04-03 07:11 -0700
              Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-04-03 08:20 -0700
    Re: how 2 compress Fat Bitmap Robert Wessel <robertwessel2@yahoo.com> - 2017-03-28 16:40 -0500
      Re: how 2 compress Fat Bitmap fir <profesor.fir@gmail.com> - 2017-03-28 15:19 -0700

csiph-web