animated textures

Blitz3D Forums/Blitz3D Programming/animated textures

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well, your textures (images) should be a power of two for height and width. I'm talking about one frame here mind.

So one frame of animation should be:

Height: 2,4,8,16,32,64,128,256,512 etc etc
Width : 2,4,8,16,32,64,128,256,512 etc etc

try and keep the ratio of height to width under 8:1 and vise-versa.

Png is usually very good for textures, as it has good compression and lossless compression, unlike jpg.

Bitmap file format is ok to use too, as in memory, the texture is converted to an uncompressed image, so the difference between png ,bmp and jpg is nothing.

So keep you textures to a square power (single frame, the whole texture strip can be what you want), and i think png is the best texture format to use. Some ppl use tiff, as it has an alpha channel :)