Sega Genesis Spriting

Talk about anything else you want

Moderator: BigEvilCorporation

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Tue Aug 16, 2011 1:01 am

Shadow/hilite is really stupidly complicated on the Genesis.

First case: if no sprites are overlapping, scroll layer A can shadow B (or the background G color if B is transparent) if the priority of both is 0.

Second case: if overlapping sprite with sprite pixel NOT color palette 3, index 14 or 15, the sprite will shadow A/B/G if all the priorities are 0, or A will shadow B/G if the sprite priority is 1 and A and B are 0.

Third case: if overlapping sprite whose pixel is palette 3, index 14, the sprite pixel will hilite any layer beneath it as long as the priority bit for A and/or B are set. The sprite pixel acts as transparent since it's used as a flag, not an actual pixel.

Fourth case: if overlapping sprite whose pixel is palette 3, index 15, the sprite pixel will shadow the overlapping pixel unless the priority for A and B are both 1 and the priority for S is 0, in which case it only shadows G. Again, the sprite pixel is transparent since it's used as a flag, not an actual pixel.

Jony
Interested
Posts: 12
Joined: Tue Jul 26, 2011 3:16 pm
Location: Portugal

Post by Jony » Mon Aug 22, 2011 8:09 am

:roll:
Last edited by Jony on Mon Aug 22, 2011 8:11 am, edited 1 time in total.
"I'm looking for some alien toilet to park my bricks, who's first?"

letoulousain
Interested
Posts: 42
Joined: Fri Sep 24, 2010 11:32 pm
Location: toulouse

Post by letoulousain » Mon Aug 22, 2011 11:05 am

Jony wrote: When making MD graphics, how can i know which colors are supported and which ones aren't?
freeware PalAdjust.exe (for win) color Mode 3Bits

http://www.yaronet.com/posts.php?s=136586

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Mon Aug 22, 2011 11:40 am

great one....
my old GOP also did this

Post Reply