Sprite (hardware): Difference between revisions
(added link to official dev manual) |
(added object size select table) |
||
Line 1: | Line 1: | ||
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]]. | 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]]. | ||
{| class="wikitable" | |||
!colspan="2"|OBJ Size Select | |||
|+ | |||
| 000 || 8x16 | |||
|+ | |||
| 001 || 8x32 | |||
|+ | |||
| 010 || 8x64 | |||
|+ | |||
| 011 || 16x32 | |||
|+ | |||
| 100 || 16x64 | |||
|+ | |||
| 101 || 32x64 | |||
|} | |||
== Limitations == | == Limitations == | ||
Line 15: | Line 31: | ||
=== Reference === | === Reference === | ||
* [https://archive.org/details/SNESDevManual/book1/page/n59 page 2-2-1 of Book I] of the official Super Nintendo development manual | * [https://archive.org/details/SNESDevManual/book1/page/n59 page 2-2-1 of Book I] of the official Super Nintendo development manual | ||
* [https://archive.org/details/SNESDevManual/book1/page/n114 page 2-27-1 of Book I] lbid |
Revision as of 16:50, 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 Select | |
---|---|
000 | 8x16 |
001 | 8x32 |
010 | 8x64 |
011 | 16x32 |
100 | 16x64 |
101 | 32x64 |
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
- page 2-2-1 of Book I of the official Super Nintendo development manual
- page 2-27-1 of Book I lbid