Golden Sun Hacking Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A small community of people who enjoy tinkering with the code in the Golden Sun games.
 
HomeHome  PortalPortal  Featured HacksFeatured Hacks  GalleryGallery  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Image Palettes

Go down 
2 posters
AuthorMessage
Role
Magister
Magister
Role


Posts : 313
Join date : 2009-10-11
Age : 36
Location : Austin, Texas

Image Palettes Empty
PostSubject: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 8:13 am

Okay, so after finding out about the 16 color palette in the icons, I'm curious as to the OTHER palette restrictions.

For example, what about for Face Portraits, Overworld Sprites, and Battle Sprites?
Back to top Go down
Atrius
Admin
Admin
Atrius


Posts : 90
Join date : 2009-09-10
Age : 36
Location : Earth

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:11 pm

Face portraits each have their own 16 color palettes (one of which is always transparent, but not used so far)

Overworld, and Battle sprites all use the same 224 color palette.

Image Palettes SpritePalette

You may notice that the first 16 colors of this palette are the exact same as the 16 color palette for icons, this is no coincidence. The GBA has room in memory for a 256 color background palette, and a 256 color sprite palette. The remaining 32 colors in the sprite palette are reserved as room for loading up to two face portraits.

The background palette consists of 224 colors that are customized for each area in the game, and 32 for menu/HUD graphics. In battle it uses 128 for the background, 64 for attack graphical effects, and 64 for the menu/HUD (Each of the normal colors has a brighter version so it can highlight the panel for the character whose turn it is.)
Back to top Go down
http://forums.goldensunhacking.net
Role
Magister
Magister
Role


Posts : 313
Join date : 2009-10-11
Age : 36
Location : Austin, Texas

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:16 pm

What are all the possible colors for the Face Portraits?
Back to top Go down
Atrius
Admin
Admin
Atrius


Posts : 90
Join date : 2009-09-10
Age : 36
Location : Earth

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:24 pm

Any color you want, their palettes are saved individually with them. The GBA only uses 5 bits for each RGB color channel though, so their values can only be multiples of 8.
Back to top Go down
http://forums.goldensunhacking.net
Role
Magister
Magister
Role


Posts : 313
Join date : 2009-10-11
Age : 36
Location : Austin, Texas

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:26 pm

I'm guessing it's a standard 256 color palette, or was my calculator not lying to me when it said 32768 (32^3)?
Back to top Go down
Atrius
Admin
Admin
Atrius


Posts : 90
Join date : 2009-09-10
Age : 36
Location : Earth

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:41 pm

Your calculator is correct. You're limited to 16 colors per portrait, but there are 32768 possibilities for each of those colors.
Back to top Go down
http://forums.goldensunhacking.net
Role
Magister
Magister
Role


Posts : 313
Join date : 2009-10-11
Age : 36
Location : Austin, Texas

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:53 pm

...Yeaaah... I'm not gonna ask you for a palette sample then. It'd take up half the page. :x
Back to top Go down
Atrius
Admin
Admin
Atrius


Posts : 90
Join date : 2009-09-10
Age : 36
Location : Earth

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 7:55 pm

Any color is good so long as the individual RGB values are divisible by 8.

0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248.
Back to top Go down
http://forums.goldensunhacking.net
Role
Magister
Magister
Role


Posts : 313
Join date : 2009-10-11
Age : 36
Location : Austin, Texas

Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes EmptyWed Oct 14, 2009 8:03 pm

True, though it's always helpful to have a sample palette.
Back to top Go down
Sponsored content





Image Palettes Empty
PostSubject: Re: Image Palettes   Image Palettes Empty

Back to top Go down
 
Image Palettes
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Golden Sun Hacking Community :: Hackers Corner :: Golden Sun Hacking-
Jump to:  
Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com