View previous topic :: View next topic |
Author |
Message |
kuschelkriterium n00b


Joined: 16 Nov 2004 Posts: 33
|
Posted: Fri Aug 11, 2006 9:28 am Post subject: [Dropped] On what does glx version depend? |
|
|
Today, I wanted to check out Project Looking Glass. In the instructions, it reads:
Quote: | Check to see if OpenGL 1.3 or later is supported:
% glxinfo | grep "GLX version"
GLX version: 1.3
|
So I did. Here is the relevant part of my glxinfo output:
Code: | direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
client glx vendor string: SGI
client glx version string: 1.4
GLX version: 1.2
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 915GM 20050225 x86/MMX/SSE2
OpenGL version string: 1.3 Mesa 6.5
|
As you can see, I have only GLX 1.2.
My system is running ~x86, with Xorg 7.1, current mesa and current drivers for my intel915.
So I wonder: On what packages/programs does the glx version depend - especially the server version? Do they depend on the capabilities of my hardware? What do I have to wait for in order to get LG running as expected? I tried to search the net and read some articles in wikipedia, but I'm still not sure about the whole thing.
So I would appreciate it if anyone could shed some light on this for me.
Last edited by kuschelkriterium on Fri Aug 18, 2006 1:25 pm; edited 1 time in total |
|
Back to top |
|
 |
sish n00b

Joined: 07 Aug 2006 Posts: 18
|
Posted: Fri Aug 11, 2006 9:38 am Post subject: |
|
|
You are mixing OpenGL and GLX here. GLX is the part that enables X applications to use OpenGL.
If you're looking for the OpenGL Version:
Code: |
OpenGL version string: 1.3 Mesa 6.5
|
Its 1.3 |
|
Back to top |
|
 |
kuschelkriterium n00b


Joined: 16 Nov 2004 Posts: 33
|
Posted: Fri Aug 11, 2006 10:54 am Post subject: |
|
|
Thanks for your answer. But I'm still confused...
If it is like you said: Then why do the Java people want me to check the GLX version, instead of the OpenGL version?
And, moreover, why does starting looking glass give me the following:
Code: | Java 3D WARNING : reported GLX version = 1.2
*** JAVA 3D: WARNING OpenGL 1.2 is no longer supported.
*** JAVA 3D: WARNING OpenGL 1.2 is no longer supported.
|
?
There must be some connection between the two of them... |
|
Back to top |
|
 |
drhirsch n00b

Joined: 08 May 2004 Posts: 66 Location: Germany
|
Posted: Fri Aug 11, 2006 11:31 am Post subject: |
|
|
The driver for your graphics card does indeed support OpenGL 1.3.
The version depends only on the driver. Besides, 1.3 is pretty ancient... 2.0 is currently in widespread use, and 2.1 soon to be expected. I don't know details about the 915, you may get better results with a proprietary driver from Intel. Otherwise you'll have to get some "real" 3D hardware.
GLX is a extension to OpenGL, and you have 2 possible sources: Either it comes bundled with the X server or bundled with the graphics driver. The latter is usually the better choice (if there is a vendor supplied graphics driver at all).
To switch between the implementations, use
So why do they want you to check GLX instead of OpenGL? They probably don't have a clue (Java guys... ). |
|
Back to top |
|
 |
sish n00b

Joined: 07 Aug 2006 Posts: 18
|
Posted: Fri Aug 11, 2006 12:04 pm Post subject: |
|
|
I was curious, so I downloaded it. I've got the same problem as you:
Java 3D WARNING : reported GLX version = 1.2
lg3d-app keeps crashing, while lg3d-dev works fine.
Code: |
server glx version string: 1.2
client glx version string: 1.3
GLX version: 1.2
OpenGL version string: 2.0.5946 (8.27.10)
glu version: 1.3
|
Quote: | Check to see if OpenGL 1.3 or later is supported: |
Maybe they meant to say: Check to see if GLX 1.3 or later is supported. |
|
Back to top |
|
 |
kuschelkriterium n00b


Joined: 16 Nov 2004 Posts: 33
|
Posted: Fri Aug 11, 2006 2:56 pm Post subject: |
|
|
Just checked my desktop, running ~x86, Xorg 7.1, RADEON 9500 Pro with up-to-date ati-drivers, showing the same:
Code: | direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
client glx vendor string: ATI
client glx version string: 1.3
GLX version: 1.2
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9500 Pro Generic
OpenGL version string: 2.0.5946 (8.27.10)
|
Still, server glx is version 1.2.
So I guess it really is the Java devs meaning GLX when saying OpenGL.
But the question remains: Which packages DO determine the glx version? |
|
Back to top |
|
 |
drhirsch n00b

Joined: 08 May 2004 Posts: 66 Location: Germany
|
Posted: Fri Aug 11, 2006 3:33 pm Post subject: |
|
|
Maybe I wasn't clear enough.
Code: |
equery b /usr/lib64/opengl/nvidia/extensions/libglx.so /usr/lib64/opengl/xorg-x11/extensions/libglx.so
[ Searching for file(s) /usr/lib64/opengl/nvidia/extensions/libglx.so,/usr/lib64/opengl/xorg-x11/extensions/libglx.so in *... ]
x11-base/xorg-server-1.0.2-r7 (/usr/lib64/opengl/xorg-x11/extensions/libglx.so)
media-video/nvidia-glx-1.0.8178-r1 (/usr/lib64/opengl/nvidia/extensions/libglx.so)
|
The latter won't work for you, it depends on the hardware.
Code: |
glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
...
client glx version string: 1.3
...
GLX version: 1.3
...
OpenGL version string: 2.0.1 NVIDIA 81.78
|
You may try
http://downloadfinder.intel.com/scripts-df-external/Detail_Desc.aspx?agr=N&Inst=Yes&ProductID=955&DwnldID=9722&strOSs=39&OSFullName=Linux*&lang=eng |
|
Back to top |
|
 |
kuschelkriterium n00b


Joined: 16 Nov 2004 Posts: 33
|
Posted: Fri Aug 11, 2006 5:07 pm Post subject: |
|
|
Thanks for your answer, drhirsch. Still, I fear I'm a little confused, so I beg you to have some patience with me. I don't really get the difference between GLX and OpenGL.
According to the help,
chooses the OpenGL implementation. In how far is this related to GLX?
On my desktop (running the Radeon), I have 2 files libGL.so (man opengl-update says it chooses libGL) - one was in the ati-drivers-package, the other one in the mesa package. I have also 2 files libglx.so, for that matter. Both libGL.so link to libGL.so.1.2 - does this mean that both Mesa and the proprietary ati drivers have GLX version 1.2? (I'm still confused between OpenGL and GLX, as you can see).
Still, another one: What is the "server version", what is the "client version"? Which one are we talking about anyway?
PS: Thanks also for your help with the intel drivers; but my primary goal is to understand this GLX/OpenGL thing, not to run Looking Glass (I don't think it would run decently on my hardware anyway). |
|
Back to top |
|
 |
drhirsch n00b

Joined: 08 May 2004 Posts: 66 Location: Germany
|
Posted: Sat Aug 12, 2006 10:05 am Post subject: |
|
|
You might have a look at http://www.opengl.org/documentation/specs/ then
OpenGL ist a graphics library, not only for 3D, but for any graphics operation, like programming the GPU directly (for the latter a own language GLSL is used, these programs are commonly called vertex or pixel "shaders") or just drawing a simple line. It has almost no abstraction, it is very basic (but not simple ). For example you can't draw a simple cube, let alone something more complex. OpenGL ist platform independent.
The latest version is 2.1.
GLX is the X extension for OpenGL. GLX makes OpenGL usable for X. A part of it resides in the X Server, a part of it is your application. It contains function for setting up the rendering context or buffer swapping, for example. Compared to OpenGL, it is a tiny library.
The latest version is 1.4.
As you may imagine, both are strongly related
What version of which you have, depends on your hardware, on your graphics driver, on your X version.
As you see, even the developers of Looking Glass don't get it right, and the Java3D guys neither. What you want to know as a application developer is usually the OpenGL version you have. As a developer of a library you a probably interested in the GLX version, too.
I think the error message should read "GLX 1.2 no longer supported", since GLX 1.3 introduced pbuffers, which make rendering into textures simpler. |
|
Back to top |
|
 |
kuschelkriterium n00b


Joined: 16 Nov 2004 Posts: 33
|
Posted: Fri Aug 18, 2006 1:24 pm Post subject: |
|
|
Thanks again for your answer, drhirsch. Things are somewhat clearer now.
After reading more about this topic and about Looking Glass, I have decided to drop experimenting with it until
a) I have a new computer with a decent 3d graphics card (meaning nvidia, I guess )
b) Looking Glass is more evolved
Still, thanks again for helping a noob and for your patience. |
|
Back to top |
|
 |
|