Tile size map size questions, SNES

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
User avatar
dougeff
Posts: 2876
Joined: Fri May 08, 2015 7:17 pm
Location: DIGDUG
Contact:

Tile size map size questions, SNES

Post by dougeff »

I see that tiles can be 8x8 or 16x16. Is that true for all modes?

Wouldn't 16x16 tiles take up 4x as much VRAM space?

I see that tilemaps can be 32x32, 32x64, 64x32, or 64x64. Is that true for all modes?

Is direct color available to all modes?

That's alot of variability.

Edit...
Most tile editors have a 8x8 tile window. If I want 16x16 tiles, how would they be arranged in...lets say TLP or YY-CHR

If I want this (in game)...ie, a 16x16 tile

A,B
C,D

Would it look like this (in 8x8 editor) ?

A,B,C,D

Or would it be interleaved?
Last edited by dougeff on Mon Sep 05, 2016 10:13 am, edited 1 time in total.
nesdoug.com -- blog/tutorial on programming for the NES
User avatar
Drew Sebastino
Formerly Espozo
Posts: 3496
Joined: Mon Sep 15, 2014 4:35 pm
Location: Richmond, Virginia

Re: Tile size map size questions, SNES

Post by Drew Sebastino »

dougeff wrote:I see that tiles can be 8x8 or 16x16. Is that true for all modes?
I'm pretty sure it's true for all modes, except for Mode 7.
dougeff wrote:Wouldn't 16x16 tiles take up 4x as much VRAM space?
Yes. 16x16 tiles are really just 4 8x8 tiles put together to where it's like $00, $01, $10, $11. Even the tile selection still goes by 8x8.
dougeff wrote:I see that tilemaps can be 32x32, 32x64, 64x32, or 64x64. Is that true for all modes?
I'm also pretty sure this is true, except for Mode 7.
dougeff wrote:Is direct color available to all modes?
Only ones with an 8bpp layer. I doubt it works for Mode 7 though.
AWJ
Posts: 433
Joined: Mon Nov 10, 2008 3:09 pm

Re: Tile size map size questions, SNES

Post by AWJ »

dougeff wrote:I see that tiles can be 8x8 or 16x16. Is that true for all modes?

Wouldn't 16x16 tiles take up 4x as much VRAM space?
16x16 tiles are available in all modes except Mode 7. Each tile takes up 4x as much VRAM as an 8x8 tile, but it also covers four times as many pixels. The main advantage of 16x16 tiles is that you need fewer tilemap entries to cover the same screen area. Depending on the design of your game, a 64x32 or 32x64 tilemap with 16x16 tiles might be enough for an entire section of a level (meaning no need to update the tilemap as the screen scrolls)
I see that tilemaps can be 32x32, 32x64, 64x32, or 64x64. Is that true for all modes?
Again, all except mode 7. The Mode 7 tilemap is always 128x128 8x8 tiles (which, coincidentally, is the same number of pixels as the largest possible non-mode7 tilemap)
Is direct color available to all modes?
Direct color is only available at the 8bpp depth. Meaning BG1 of Mode 3, Mode 4, or Mode 7.
Most tile editors have a 8x8 tile window. If I want 16x16 tiles, how would they be arranged in...lets say TLP or YY-CHR
Each 16x16 tile is made up of 8x8 tiles n, n+1, n+16 and n+17, where n is the tile number specified in the tilemap. If you set your tile viewer/editor to display 16 tile columns, 16x16 tiles and all sizes of sprites will line up correctly.
Nicole
Posts: 218
Joined: Sun Mar 27, 2016 7:56 pm

Re: Tile size map size questions, SNES

Post by Nicole »

Direct color can indeed be used on mode 7, though it's kind of pointless in comparison to other modes. Normally it takes the 8-bit pixel color and 3-bit tile palette number to choose a color, allowing for 2048 colors on-screen (each tile having a particular set of 256 colors). However, mode 7 doesn't have tile attributes, so it only allows for 256 preset colors, which is generally worse than using the normal 256-color palette, which you can define any way you want.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Tile size map size questions, SNES

Post by tepples »

At least direct color doesn't have to coexist with the sprite palette. Is RGB332 worse than a 128-color palette?
Nicole
Posts: 218
Joined: Sun Mar 27, 2016 7:56 pm

Re: Tile size map size questions, SNES

Post by Nicole »

Ah, that's true. Personally, I'd probably still say the 128-color palette is better, but that's certainly a matter of opinion.
93143
Posts: 1371
Joined: Fri Jul 04, 2014 9:31 pm

Re: Tile size map size questions, SNES

Post by 93143 »

Direct colour doesn't affect EXTBG, which uses the bottom half of CGRAM. So there's that...

...also, from personal experience, even if you don't want any colours common between sprites and BG, it's not unreasonable for the Mode 7 layer to use the zero colours in the sprite subpalettes. This gets you an extra 8 colours in normal Mode 7. Could actually be relevant if you need a bunch of palettes for a Mode 1 area or something like that (direct colour solves the problem, but at the cost of precision in colour choice)...
Post Reply