Game Development Community

Sprite-sheet Size

by Carpenter Software · in Torque Game Builder · 02/28/2008 (8:37 am) · 3 replies

The image sequence has 36 images with a size of 256 pixels by 256 pixels. I place these images into a photoshop file by 1536 pixels by 1536 pixels with an alpha channel. Does the (1536 pixels by 1536 pixels) sprite-sheets have to be a certain size? When looking at memory, is there an optimum size for TGB? I know for textures for 3D objects should be powers of 2 but is there a size criteria for images used in TGB?

Thanks
Carpenter Software

#1
04/13/2008 (12:12 am)
If your image is not already sized to a power of 2, then TGB will automatically size it up to the next power of 2, thus wasting all that extra space. 36 frames in a 256x256 image is a HUGE animation. That's close to all the texture space I use in an entire game. Do you really need your sprite to be so big?
#2
04/13/2008 (2:47 pm)
So if my image is 1536 pixels by 1536 pixels then its size is set to 2048 by 2048!? So the best way to use memory in the best way to reduce images from 256 to 128 place two or more sets of images that gives approximately 64 images per sprite sheet with a size of 1024 pixels squared. The problem is I use a HD Cinema monitor (23") that affects image resolutions. The image quality of a 128 pixel image lacks detail.

Computer monitors today use flat high definition screens.... What are we to do?

Carpenter Software
#3
04/13/2008 (3:20 pm)
You might find some useful information in this thread. In there I post two links to methods you can implement to help reduce memory usage.