PureBasic OpenGL Version?

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

PureBasic OpenGL Version?

Post by J. Baker »

What version of OpenGL does PureBasic use for 2D?
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
Fred
Administrator
Administrator
Posts: 16617
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic OpenGL Version?

Post by Fred »

The one which comes with your drivers. About the commands, it's 1.2 + some extensions.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

Fred wrote:The one which comes with your drivers. About the commands, it's 1.2 + some extensions.
Yes, the commands version is what I was looking for, thanks! ;)
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

Just curious, is one of the extensions to allow for png with alpha support? Or was this already supported by OpenGL? I noticed that DirectX 7 didn't support this.
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
Thorium
Addict
Addict
Posts: 1271
Joined: Sat Aug 15, 2009 6:59 pm

Re: PureBasic OpenGL Version?

Post by Thorium »

DirectX7 do supports alpha channel of png. It just have to be a Sprite3D.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

Thorium wrote:DirectX7 do supports alpha channel of png. It just have to be a Sprite3D.
Hmm, I think I had already known that but forgotten. Thanks Thorium! But I believe that leaves me with only images that are square, as opposed to 512x128 for instance. I will do some testing. ;)
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

Cool, odd sizes do work with Sprite3D, such as 512x128. Just as long as an older graphic card can support images up to 512 pixels.
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: PureBasic OpenGL Version?

Post by blueznl »

Just don't be too sure it will work everywhere, and if you start rotating things get worse rather quickly...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
DarkDragon
Addict
Addict
Posts: 2218
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: PureBasic OpenGL Version?

Post by DarkDragon »

blueznl wrote:Just don't be too sure it will work everywhere, and if you start rotating things get worse rather quickly...
Well once upon a time we've found out that PureBasic used NV_texture_rectangle.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

blueznl wrote:Just don't be too sure it will work everywhere, and if you start rotating things get worse rather quickly...
You are correct. An older card such as a Voodoo 3 will only support square textures at a max of 256x256 and 16bit screen. At least for the Sprite3D on my older pc. But some older cards are fine as long as the width and height is divisible by 2, 4, 8, ect. Such as 512x128, 64x256, ect.
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

After getting further development within my game, I'm noticing that OpenGL is much slower then DirectX 9. I'm guessing it's because of the out-dated version of OpenGL. Which is fine with old school style games, just like DirectX 7. But now I'm wondering how well will the game play on Linux and Mac, since they use OpenGL? I will be able to test it on Ubuntu soon but has anyone done a comparison test between Windows and Mac with OpenGL?
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

I believe I found the issue. If I use StartDrawing(ScreenOutput()) in OpenGL, the game runs super slow. But it doesn't effect DirectX. Should I post this in the bugs section?
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


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

Re: PureBasic OpenGL Version?

Post by DarkDragon »

Pixelaccess is slow. PureBasic uses DirectDraw for such things in DirectX subsystem which speeds it up a bit, but its old and shouldn't ever be used anymore. You can't change this until you've learned how to use shaders.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: PureBasic OpenGL Version?

Post by J. Baker »

DarkDragon wrote:Pixelaccess is slow. PureBasic uses DirectDraw for such things in DirectX subsystem which speeds it up a bit, but its old and shouldn't ever be used anymore. You can't change this until you've learned how to use shaders.
Thanks DarkDragon. But I think I'll create some numerical sprites to display the text I'm wanting for now since I don't know much about shaders yet. ;)
www.posemotion.com

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

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: PureBasic OpenGL Version?

Post by flaith »

Sorry to dig up this post, but I need to know if Purebasic still use OpenGL 1.2 because I tried with my old laptop (OpenGL 1.4) and the sprite system no longer works.
He could be useful to check the OpenGL version and to have a function for this or a warning from the compiler :)
“Fear is a reaction. Courage is a decision.” - WC
Post Reply