Sprite sizes

BlitzMax Forums/BlitzMax Beginners Area/Sprite sizes

cbmeeks(Posted 2006) [#1]
I am trying really hard to keep my textures at 256x256. I am also shooting for 320x240 res which means one texture could have 256 tiles.

I have a sprite that is at most 25x38 pixels. There are about 50+ frames for the sprite...let's just call her...ah...Samus. ;-D

Anyway, 256 / 25 = 10 sprites
256 / 38 = 6 sprites which gives me 60.

But, how will such an odd size work out for so many video cards? I usually try to keep sprite frame sizes on multiples of 8 or 16 (or 32)??

I've seen where using an odd size causes the sprite to only partially render.

How safe will I be using a texture size of 512x512? Then, I could keep each frame maybe 32x64 so there is a multiple of 16? That would give me 128 sprites which would be more than enough.

Oh, I am definately trying to keep this cross platform. The idea of releasing Metroid Classic on the PC, Mac and Linux really excites me. :-)


ImaginaryHuman(Posted 2006) [#2]
512x512 is probably okay. Most cards can do 2048x2048 from what I've seen around the forums. Apparently after the NVidea GeForce 2 you could do bigger than 256x256 sizes. ?


Grisu(Posted 2006) [#3]
512 sould be ok, also keep in mind by the time your game is finished newer hardware will be available. So I won't "aim" at the lowest spec today!