From: "Marcus Persson" Newsgroups: comp.os.msdos.djgpp Subject: Re: palette & Allegro Date: 24 Jul 1997 19:44:24 GMT Organization: A customer of Tele2 Lines: 38 Message-ID: <01bc9861$3297f380$f0b0f482@marcus> References: <33d76086 DOT 0 AT 131 DOT 162 DOT 2 DOT 91> NNTP-Posting-Host: mn8.swip.net Cache-Post-Path: mn8!s-283831 AT dialup176-4-48 DOT swipnet DOT se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Andrew Cheyne <006809c AT news DOT acadiau DOT ca> skrev i inlägg <33d76086 DOT 0 AT 131 DOT 162 DOT 2 DOT 91>... > Hello.. > > I've asked this question before, but perhaps I didn't word it > correctly because I didn't really get the responses I was looking for. > > I am currently developing some sprites for a game I am writing > and am wondering how to manage the palette so that they can > all be shown at the same time as I designed them. How do I get > a constant palette with my sprites? I am creating the sprites in > POVRay and doing touch up with PAintShop Pro. I have thought of a > couple of solutions to keep a constant palette between sprites, > but they either seem like a lot of overhead or dont produce the effects > I'm looking for. Someone suggested taking all my sprites and > pasting them into a true color image in PAintShop and then reducing > the color depth to 256. This works fine to get the sprites using the > same palette and I can even get a palette file from this, but where do > I go from there? Do I have to cut and paste my sprites out of this > one large image to smaller images? If so, will they retain the > palette I extracted from the larger image? > > Thanks, > Andrew > > -- > .. . . . . . . . . . . . . . . > . ( Andrew Cheyne / 006809c AT dragon DOT acadiau DOT ca ) > o O ( http://dragon.acadiau.ca/~006809c/ ) > ( .. . . . . . . . .. . . . . ) > You got a program with allegro called grabber.exe (it should be in the TOOLS dir). In the grabber you can cut the big pic up in small pieces and save them as a dat file.You can also save tha pal and read it from allegro. Check out the allegro.txt file to see the details.