power of 2

Advanced game related topics
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

power of 2

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: power of 2

Post 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.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: power of 2

Post 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?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: power of 2

Post 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.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: power of 2

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: power of 2

Post 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.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: power of 2

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply