Page 1 of 1
power of 2
Posted: Sat Oct 16, 2010 6:57 am
by J. Baker
Ok, I just tested out Waponez ll on my old pc, that has an old voodoo card. But I noticed the sprites for that game don't all use the power of 2. I know it's necessary to use the power of 2 for textures (including Sprite3D) but does this not include regular sprites as well? I believe I know the answer but am surprised as I thought all game graphics used power of 2.
Re: power of 2
Posted: Sat Oct 16, 2010 7:03 am
by DarkDragon
Sprites didn't have to be Power of 2 in the DirectX7 subsystem. I don't if it is still like this with DirectX9, but I don't think so as PureBasic doesn't use DirectDraw there anymore IIRC.
Re: power of 2
Posted: Sat Oct 16, 2010 7:13 am
by J. Baker
DarkDragon wrote:Sprites didn't have to be Power of 2 in the DirectX7 subsystem. I don't if it is still like this with DirectX9, but I don't think so as PureBasic doesn't use DirectDraw there anymore IIRC.
So are you saying DirectX9 displays your sprite on a single poly similar to Sprite3D?
Re: power of 2
Posted: Sat Oct 16, 2010 7:26 am
by DarkDragon
J. Baker wrote:DarkDragon wrote:Sprites didn't have to be Power of 2 in the DirectX7 subsystem. I don't if it is still like this with DirectX9, but I don't think so as PureBasic doesn't use DirectDraw there anymore IIRC.
So are you saying DirectX9 displays your sprite on a single poly similar to Sprite3D?
Yes I think so. I'm not very familar with DirectX but I thought they'd removed DirectDraw since DX9.
Re: power of 2
Posted: Sat Oct 16, 2010 7:30 am
by J. Baker
DarkDragon wrote:J. Baker wrote:DarkDragon wrote:Sprites didn't have to be Power of 2 in the DirectX7 subsystem. I don't if it is still like this with DirectX9, but I don't think so as PureBasic doesn't use DirectDraw there anymore IIRC.
So are you saying DirectX9 displays your sprite on a single poly similar to Sprite3D?
Yes I think so. I'm not very familar with DirectX but I thought they'd removed DirectDraw since DX9.
Thanks and I believe you're right.
Re: power of 2
Posted: Sat Oct 16, 2010 7:34 am
by DarkDragon
Well but I can tell you that purebasic even tries to find extensions of the graphicscard for using non power of 2 textures (with OpenGL at least - which is similar to Direct3D). So the chance to find someone without such a graphicscard is very small.
Re: power of 2
Posted: Sat Oct 16, 2010 7:40 am
by J. Baker
DarkDragon wrote:Well but I can tell you that purebasic even tries to find extensions of the graphicscard for using non power of 2 textures (with OpenGL at least - which is similar to Direct3D). So the chance to find someone without such a graphicscard is very small.
Yeah, I like OpenGL. It also supports 32bit png, where DirectX 7 doesn't. At least not in PureBasic anyway.