Main Menu

Rotate colors? (palette?)

Started by Draco9898, January 26, 2005, 10:19:38 PM

Previous topic - Next topic

Draco9898

I've seen this effect in very many videogames, and even those which don't have a set palette, AKA only like 24 chosen different colors on the screen...

http://www.fortunecity.com/skyscraper/wind...4/planimex.html



Any ideas on how to do this? It's a very awesome effect :) I can't find an example of a sprite or anything online though :(
DualCore Intel Core 2 processor @ 2.3 ghz, Geforce 8600 GT (latest forceware drivers), 2 gigs of ram, WIN XP home edition sp2, FireFox 2.

"You'll no doubt be horrified to discover that PlayBasic is a Programming Language." -Kevin

kevin

Yeah,  I've been thinking about a palette mapped mode for sprites for a while now.  However, you couldn't do anything else with them but draw them.   Perhaps rotate them..

 All those old systems and even 8bit VGA/SVGA modes on the PC are palette mapped..  So doing  the old 'raster' style effects were a lot easier with palette mapped support.  Where you used to use raster interrupts to change the colours scan line by scan line.  Fun stuff .. ahh memories :)

 A nice by product is reduces the size of your artwork on disc and in memory.   The issue is really making the images/ palettes user-friendly.  As the palette mapped image would be treat like any other image in PB, but the sprite would need to be pointer at the palette for this sprite to use.   So you could have the same images drawn using different palettes.  That'd be really nice for stuff like fighting games.   Not sure how fast it's be though.  So you could blit hundred of palette mapped images on screen at once.

 I've got a list render features a mile long, some of which might just appear in  V1.07, but prolly most in 1.08..

Draco9898

#2
Drawing stuff with a pallette sounds neat :D Here comes super-saiyan bunny LOL, or level tilesets drawn with a pallete  :lol: that'd be cool, could have different colored water/grass and stuff  :o

And that's how I compress all my graphics is PNGS with a optized median-cut pallete, my game right now is only a megabyte  :lol:
DualCore Intel Core 2 processor @ 2.3 ghz, Geforce 8600 GT (latest forceware drivers), 2 gigs of ram, WIN XP home edition sp2, FireFox 2.

"You'll no doubt be horrified to discover that PlayBasic is a Programming Language." -Kevin

kevin

if it appears, it'd prolly just be a sprite thing, for a maps you'd have to assign palette to each tiles..      The issue as always is render speed, so until we try it, we shouldn't really get overly hyped about it...

Draco9898

#4
I mean a one-time Image-altering function you could apply to any image like the level graphics perhaps :)
DualCore Intel Core 2 processor @ 2.3 ghz, Geforce 8600 GT (latest forceware drivers), 2 gigs of ram, WIN XP home edition sp2, FireFox 2.

"You'll no doubt be horrified to discover that PlayBasic is a Programming Language." -Kevin

kevin

#5
Oh, yeah you could load tiles and build a map out of them, but they'd be normal 16/32bit blocks inside the map  obviously though.

Draco9898

#6
QuoteOh, yeah you could load tiles and build a map out of them, but they'd be normal 16/32bit blocks inside the map  obviously though.


Of course, I'm saying instead of constantly altering the level tiles pallette every loop you just apply a command like SetImageToPallette(ImageNum, Some paramiters)  :D

then use the MakeMapGrx command on the altered image
DualCore Intel Core 2 processor @ 2.3 ghz, Geforce 8600 GT (latest forceware drivers), 2 gigs of ram, WIN XP home edition sp2, FireFox 2.

"You'll no doubt be horrified to discover that PlayBasic is a Programming Language." -Kevin