1. How can I work with different bitmaps ?

How can I display more than one bitmap (each bitmap has it's
own pallete) in Euphoria ?

        Thanks,

new topic     » topic index » view message » categorize

2. Re: How can I work with different bitmaps ?

On Thu, 5 Sep 1996, Ricardo Niederberger Cabral wrote:
>
>               How can I display more than one bitmap (each bitmap has it's
> own pallete) in Euphoria ?
>
All bitmaps displayed on the same screen at the same time need to have the
same palette.  You must create a palette suitable for all images, then
remap all the images to that palette.  Autodesk Animator Pro has a nifty
feature for doing that. I'm sure other programs do as well.

Euphoria can only display up to 256 colors on any screen.

If you want to display the images sequentially, one at a time, just do an
all_palette(pal) where pal is the palette sequence for the image you are
displaying next.   If you are using read_bitmap() to load bmp files, you
need to divide the palette by 4 before doing all_palette().

Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp
A Crash Course in Game Design and Production
http://exo.com/~lgp/euphoria

new topic     » goto parent     » topic index » view message » categorize

3. Re: How can I work with different bitmaps ?

Ricardo Niederberger Cabral wrote:

>               How can I display more than one bitmap (each bitmap has it's
> own pallete) in Euphoria ?

If you mean: i'm working in (for example) a 256 color mode, and want to display
two 256 color images, each with it's own color palette... you can't. If that is
the case you should arrage the images, the palette or both to display the
bitmaps. On the other hand if you are working in a grphics mode wich is capable
of displaying more colors than your image has, then you may "map" one images
palette to a diferent part of the "screen" palette than the other image. Then
you modify the image to display the "new" colors.
Well, thsi problem is not only in Euphoria, it is common to all languages, and
i guess it's not even a problem, but a limitation of the hardware.

Hope i help you a bit. Bye,
--

            ************************************
            This message sent by Daniel Berstein
            ************************************
     email: architek at geocities.com
 homepages: http://www.geocities.com/SiliconValley/Heights/9316
            http://www.cybercity.hko.net/silicon_valley/architek

new topic     » goto parent     » topic index » view message » categorize

4. Re: How can I work with different bitmaps ?

On Thu, 5 Sep 1996 21:19:55 -0300 Ricardo Niederberger Cabral
<rnc at INFOLINK.COM.BR> writes:
>
>              How can I display more than one bitmap (each bitmap has
>it's
>own pallete) in Euphoria ?
>
>        Thanks,
>
I am working on it !
I have already created a Color_Used() function and
a Color_Unused() function.  I am working on a
MixPalette() function.

256 different colors are available at any given time.
Most pictures don't use all 256.
64x64x64 = 262,144
So there are a total of 262,144 Colors accessable using (R,G,B)
values.  I've done the math.  You have to make the palettes
and pictures agree with each other.


--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu