ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > The Junkyard > Amiga palette and costume colour
Amiga palette and costume colour
  Author    Thread Reply to topic
M3wP



Joined: 02 Mar 2015
Posts: 3
Amiga palette and costume colour 

Heyas!

As you might be aware, I'm working on some SCUMM tools.

I have entirely written from scratch my own V2 costume reader/decoder and I'm having some issues with getting the palette correct.

Does anyone know how SCUMMVM sets up the palette or able to point me in the right direction? I'm trying to decode V2 enhanced amiga costumes.

I've tried looking at the code involved in SCUMMVM but I can't see where the indexes are converted to RGB except for where it simply fills a 16 element array with the numbers 0..15 and a constant declaration of tableAmigaPalette.

Those things don't get me the correct colours. tableAmigaPalette looks like EGA and not at all what the V2 amiga Maniac Mansion is actually using.

Also, I just can't pin down how the single palette entry in the V2 costume is utilised.

As a side note, I've found some undocumented strangeness to the costume data that's in neither the technical docs nor the SCUMMVM code. I'm wondering if I should try to post my findings?

I think the code for costume decoding in SCUMMVM is also a bit inefficient. Should I try to fix it since its used lots every frame?

Can anyone help?

TIA


Daniel.

 Reply with quote  
Post Sat Mar 07, 2015 10:37 pm 
 View user's profile Send private message
sev
ScummVM Lead


Joined: 21 Sep 2005
Posts: 1920
Re: Amiga palette and costume colour 

quote:
Originally posted by M3wP

As a side note, I've found some undocumented strangeness to the costume data that's in neither the technical docs nor the SCUMMVM code. I'm wondering if I should try to post my findings?

Absolutely!

quote:
Originally posted by M3wP

I think the code for costume decoding in SCUMMVM is also a bit inefficient. Should I try to fix it since its used lots every frame?

That would be also great, please consider submitting your patches via github.


Eugene
 Reply with quote  
Post Mon Mar 09, 2015 10:57 pm 
 View user's profile Send private message Visit poster's website
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge