(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-04-24 04:23 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - SMAS SMB1 GFX and Palettes New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
SMurf
Newcomer


 





Since: 08-13-06

Last post: 6468 days
Last view: 6468 days
Posted on 08-17-06 07:55 PM Link | Quote
After taking screenshots and encoding colour values into their 16-bit equivalents I managed to locate the palette for Mario/Super Mario in SMB1 in the SMAS ROM. The thing is, it seems to be within a big chunk of individual 16 colour palettes for different things.

How does this work? Does the code load the sprite and then find somewhere to put its palette within the larger hardware palette (128 colours isn't it), updating the references in the sprite? If the sprites are 4bpp then they can only ever refer to 16 colours, so I would assume an offset is applied...
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6284 days
Last view: 6284 days
Skype
Posted on 08-17-06 08:16 PM Link | Quote
I'm not quite sure what you're asking, but I'm sure like most things theres probably just a pointer somewhere that tells the sprite where the palette is within this "chunk". Theres probably different pointers regarding where to look for fire palette, the palettes that the star cycles though, etc..
SMurf
Newcomer


 





Since: 08-13-06

Last post: 6468 days
Last view: 6468 days
Posted on 08-18-06 07:56 PM Link | Quote
What I'm saying is that according to various hardware docs the SNES utilizes a palette that indexes 128 high colour (15 bit) values.

It would appear that each sprite has its own palette of 16 high colour values.

When different sprites are being displayed together, does the SNES map the sprites' palettes into its hardware palette?

So if I was displaying two different sprites, sprite 1's palette would be placed at indexes 0 to 15 in the hardware palette, sprite 2's palette at 16 to 31?

(This would mean that a maximum of eight palettes could be mapped and funny stuff has to be done to show additional sprites properly)
Pac

Bandit
Free Ice Man!








Since: 11-18-05
From: Ireland

Rate me

Last post: 6285 days
Last view: 6284 days
Posted on 08-19-06 12:08 AM Link | Quote
You could use ZSNES to make a savestate while playing a level, and open the savestate in YY-CHR to view the palette.

Other than that, it's not really clear what exactly you're asking for...
DarkPhoenix

Red Goomba


 





Since: 12-27-05

Last post: 6289 days
Last view: 6289 days
Posted on 08-19-06 02:29 AM Link | Quote
I'm not sure exactly what you're asking, but it seems somewhat generally along the lines of "how do sprites and palettes work?"...Or maybe more specifically "how does the game know which palette each sprite is using?" If that's the case, try playing around with Visual Boy Advance, opening up the sprite, palette, OAM, and map viewers and whatnot, and check the "Automatic Update" box in each. It should give you a pretty good idea of how it all works, much better than if I were to try to make a poor attempt at explaining it all.

Or perhaps even better, play around a bit with the deconstructulator.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - ROM Hacking - SMAS SMB1 GFX and Palettes |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.015 seconds; used 365.32 kB (max 435.18 kB)