How do I test if OpenGL is installed correctly?

Asked by LEGOManiac

I have a game (BZFlag) which I installed using Synaptic Package Manager. The game runs verrrry slowly on my 3Ghz, dual-core PC.

On a Windows PC the program requires the OPENGL drivers to be installed to get good performance on a 1.2GHz single-core PC so I'm assuming that I need OpenGL installed on the Ubuntu system.

How can I test if OpenGL drivers are installed on my system, and if they aren't, how do I install them?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Solved by:
LEGOManiac
Solved:
Last query:
Last reply:
Revision history for this message
pe3k (qyx) said :
#1

What is your graphic card?
What drivers did you intall?

There is a command line tool 'glxinfo' which outputs about OpenGL and GLX implementations ... search for the line 'direct rendering'... e.g. using 'glxinfo | grep direct'. What is the output?

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#2

The output of glxinfo is:

direct rendering: Yes
server glx vendor string: SGI
...
client glx vendor string: SGI

What I find interesting is that I suspect SGI refers to Silicon Graphics Incorporated, yet I have a VIA chipset embeded on an MSI motherboard. My gut tells me that the GLX vendor should not be reading SGI. Then again, I may simply be a reference to who wrote the OpenGL driver and not the chipset it's intended for.

I suppose what would be helpful would be the equivalent of Microsoft's DxDiag utility which tests the various functions of the DirectX installations and tells you what components are working and what aren't.

Is there such an animal for OpenGL in a Linux environment?

The only program that I believe I know uses OpenGL is BZFlag, which I've installed but it runs very poorly compared to the Windows version and that's my basis for believing OpenGL is not installed properly or is installed for the wrong chipset.

Revision history for this message
pe3k (qyx) said :
#3

1) OK, try running "glxgears" ... although it is very simple, it shows whether opengl is configured correctly ...
2) what is your graphic card, driver being used, xorg configuration?

Revision history for this message
pe3k (qyx) said :
#4

Also to see some FPS values, try running: "glxgears -info" and wait few seconds ... or try runnign GLMark
http://sourceforge.net/projects/glmark/

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#5

glxgears ran beautifully at over 120fps. I downloaded GLMark and tried to complie it with make but discovered it lots of dependencies. I tried locating them and couldn't find all of them so I gave up for a while.

For a lark, I decided to try running BZFlag with all the graphics options stripped to the minimum. Gradually, I added them back and everything works fine. I checked my desktop settings and I now have all the available display settings. I haven't conciously changed anything yet I appear to now have the full graphics capabilities of my motherboard.

Bizzare.

Thanks for your help. I'll count my luck stars and consider this closed.

Revision history for this message
razor7 (ghiamar) said :
#6

Hello, tried glmark after download and compile it, but i get this...¿?

[quote]
===================================================
    GLMark 08
===================================================
Enter screen width: 640
Enter screen height: 480
Enter screen bpp: 24
Enter '1' for fullscreen '0' for windowed: 0
===================================================
    OpenGL Information
    GL_VENDOR: DRI R300 Project
    GL_RENDERER: Mesa DRI R300 20060815 x86/MMX/SSE2 TCL
    GL_VERSION: 1.3 Mesa 7.4
===================================================
Segmentation fault
[/quote]

XOrg driver: xserver-xorg-video-ati (1:6.12.2-0ubuntu1~xup~1) jaunty
Hardware: ATi x1950pro
Dist: Ubuntu 9.04

Any idea why?

Thanks a lot!