Animated Textures - Power of 2 in size?

Blitz3D Forums/Blitz3D Programming/Animated Textures - Power of 2 in size?

Matty(Posted 2004) [#1]
Good Afternoon (well it's afternoon here anyway),

Given textures should usually be powers of 2 in both width and height dimensions what is the case with animated textures. Is it the individual frames that should be a power of 2 or the original texture that the frames are taken from, or should it be both?

For example if I have an animated texture with 3 frames each of 64 x 64 pixels, should the complete texture be
128x128 containing 4 frames - one of them blank.

Or is it okay to have a texture which is 192x64 in size containing 3 64x64 frames?

On my PC I've never had problems with odd sized textures but I'd rather not risk it with other people's machines.


Ross C(Posted 2004) [#2]
I'm pretty sure blitz breaks the texture down into single frames anyway, so as long as each frame is a proper power of 2 size, it should be fine :o)


IPete2(Posted 2004) [#3]
Matty,

I think you'll be okay making one large bit map with your textures on it.

So if for simple example you have 4 textures which are 32x32 textures a 128*32 or for 8 textures 256*32 would be okay. Just remember to put the correct info into the load command - use F1 help to decide that.

IPete2.


Matty(Posted 2004) [#4]
Thanks,