From: 006809c AT iceberg DOT acadiau DOT ca (Andrew Cheyne) Newsgroups: comp.os.msdos.djgpp Subject: Re: palette & Allegro Date: 24 Jul 97 14:10:58 GMT Organization: Hub.Org Public Access Unix Server Lines: 39 Message-ID: <33d76272.0@131.162.2.91> References: <33d76086 DOT 0 AT 131 DOT 162 DOT 2 DOT 91> NNTP-Posting-Host: iceberg.acadiau.ca 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) wrote: : 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 whoops.. and, since I'm using Allegro, is there any way to load palette info from a .PAL file directly into a PALETTE array in Allegro? I know it's not hard to write one, but am just wondering. I have also tried using the grabber, but it only seems to like grabbing palettes from imported bitmaps.. although I suppose I could import my large all-palette image and take the palette from that.. gotta love how my brain is so slow somedays. :) Andrew -- .. . . . . . . . . . . . . . . . ( Andrew Cheyne / 006809c AT dragon DOT acadiau DOT ca ) o O ( http://dragon.acadiau.ca/~006809c/ ) ( .. . . . . . . . .. . . . . )