A.D.A. Amiga Demoscene Archive

        Welcome guest!

  

  

  

log in with SceneID

  

Demos Amiga Demoscene Archive Forum / Coding / independent 16 color palette for every attached sprite?

 

Author Message
PeabrainC64
Member
#1 - Posted: 20 Mar 2016 13:20
Reply Quote
hello,

i have 64x64 pixel 16 colored sprites. the amiga takes the 16 colors from the second table (color 16-31).
is it possible to change the position of this colortable in the palette? maybe sprite (0/1) from color 16-31 and
sprite (2/3) from color 32-47?

best regards
ZEROblue
Member
#2 - Posted: 5 Apr 2016 16:54
Reply Quote
You have some control over this on AGA: bits 0-3 in BPLCON4 select the 16-color page used for odd-numbered sprites, and bits 4-7 are for even-numbered sprites, so it's possible to give each sprite its own palette.

When sprites are attached they all use the same page unfortunately, the one selected for odd-numbered sprites, but at least you're able to break them out of the usual 16-31 range.
rloaderror
Member
#3 - Posted: 8 Jul 2016 04:27
Reply Quote
Thanks for this! :)

A neat thing about this colour banking is that one can put a HAM8 background with 64 base colours carefully chosen. And then put a sprite layer on top using colours 64 and upwards! Thus not disturbing the HAM8 background image by altering its base colours.

 

  Please log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0