We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Sprite (hardware): Difference between revisions

From SnesLab
Jump to: navigation, search
(fixed table)
(added last two combinations)
Line 2: Line 2:


{| class="wikitable"
{| class="wikitable"
!colspan="3"|OBJ Size Select
!colspan="3"|OBJ Size Combination Select
|+
|+
| 000 || 8 dot || 16 dot
| 000 || 8 dot || 16 dot
Line 15: Line 15:
|+
|+
| 101 || 32 dot || 64 dot
| 101 || 32 dot || 64 dot
|+
| 110 || 16 dot x 32 dot || 32 dot x 64 dot
|+
| 111 ||| 16 dot x 32 dot || 32 dot x 32 dot
|}
|}
The last two non-square size combinations are not documented in the official dev manual.


== Limitations ==
== Limitations ==

Revision as of 17:05, 16 July 2023

On the SNES hardware, a sprite is an image drawn at a specific part of the screen. Unlike regular layers, each sprite image can move independently from each other. Furthermore, sprites also always use 4bpp graphics, no matter which BG mode is used. Only two different sprite sizes can be used at the same time, the two size available depend on bits 5, 6 and 7 of $2101. In SMW, the two sizes used are 8x8 and 16x16. The sprite data is stored in OAM, the graphics for them are stored in VRAM and the palette in CGRAM.

OBJ Size Combination Select
000 8 dot 16 dot
001 8 dot 32 dot
010 8 dot 64 dot
011 16 dot 32 dot
100 16 dot 64 dot
101 32 dot 64 dot
110 16 dot x 32 dot 32 dot x 64 dot
111 16 dot x 32 dot 32 dot x 32 dot

The last two non-square size combinations are not documented in the official dev manual.

Limitations

Only 32 sprites can be used on the same scanline (this is refered to as 'Range Over')

Only 34 sprite tiles (8x8) can be used on the same scanline (this is refered to as 'Time Over')

The OAM can only hold up to 128 sprites.

Sprites are never hi-res.

Reference

  1. page 2-2-1 of Book I of the official Super Nintendo development manual
  2. page 2-27-1 of Book I lbid