Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sprite colors all mixed up  (Read 3307 times)

0 Members and 1 Guest are viewing this topic.

Kenan

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • Generic Amiga User
Sprite colors all mixed up
« on: June 29, 2013, 04:47:16 PM »

Hello!

I'm currently reading the AMOS manual (I have a 2.0 Amos Pro) and so far couldn't find the answer to my problem. When I load up the sprite in Amos using the Sprite and Get Sprite Palette commands, the colors of the sprite are mixed up, they do not match the prefered ones in Object Editor. Same happens if I grab sprite images from an IFF file - in the Object Editor colors are fine but as soon as I load it in Amos, what was once say, a green sprite, it's now purple etc.

What am I doing wrong and how do I fix this problem?

Thanks in advance.

p.s.
Not sure if it matters, I'm running Amos on my real A1200 with an ACA1220 accelerator (hard disk install).
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Sprite colors all mixed up
« Reply #1 on: June 29, 2013, 08:48:24 PM »

If you're using a 32 or 64 color image for your screen, palette entries 17-31 are the 15 colors in the sprite palette.  The sprite palette isn't independent of the screen palette.
Logged

KevG

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 87
Re: Sprite colors all mixed up
« Reply #2 on: June 29, 2013, 08:48:40 PM »

Hi there.

Sprites (Hardware sprites) use colour registers 16 to 31. Also, the first colour in each sprite is transparent so colours 16,20,24,28 are all transparent when using hardware sprites. So avoid using these colours. One way to make things easier is to draw your hardware sprites in DPaint (32 colour mode). Only use colour registers 16 to 31 while avoiding the transparent colours. Save the file as an IFF then load it in to AMOS then use the get sprite command. Use the palette command to change colours 16 to 31 to the same values in your IFF file.

There are probably easier ways to do it though.  Anyone?........
« Last Edit: September 22, 2013, 08:55:50 AM by KevG »
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022