OpenGL problems..

Linux specific questions.
Post Reply
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

OpenGL problems..

Post by joseywales72 »

Hi,
I compiled and ran some very basic examples from Stormy's tutorials on Windows XP. They all worked smoothly. But on Linux (PCLinuxOS 2007 Final with KDE 3.5.7 and 2.6.18.1 Kernel) a window appears and then goes out. And a new title bar with the caption of "KDE" appears on top of the screen. I'm using Beryl 0.2.0 with latest Ati drivers. I think Beryl is the culprit here. Any ideas?
Btw, I'm using FBC 0.17, and there is no such problem with FBGFX.
Thank you.
Stormy
Posts: 198
Joined: May 28, 2005 17:57
Location: Germany
Contact:

Post by Stormy »

Hey there, I will investigate in your problem, but I can tell you that my examples worked both in windows and linux fine and so it should work for your system as well since I used fb .17b on linux too when I created this tutorial with all its examples.

Could you hand me some screenshots demonstrating your problem (such as this new title bar titled 'KDE' ?
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

Post by joseywales72 »

Thanks for the reply Stormy. I'm at work now, I'll post some screenshots as soon as I get home.
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

Post by joseywales72 »

Sorry for the late reply... I'm almost sure that the culprit is Beryl,3D compositing manager.. I tried the same executables on other machines and there is no problem. It seems that OpenGL implementation of FB does not like a OpenGL compositing manager.
Anyway, I'm attaching a screenshot. Do you notice the title bar on top of the desktop. It appears after a GL enabled FB program executes. FB program just opens a window and closes instantly.
Thanks for help... Btw, your tutorials are very enlightening and great. I do not know any German but Google Translate made them accessible to me.(Translation of Google is not very good, so an English version would be great)

Edit. I just found out that the programs do not terminate as they should but keeps running in the background. Same source works flawlessly in Windows...

Image
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

When I enabled a 3D desktop on my Linux box it disabled hardware acceleration of all OpenGL applications. You can test to see if hardware acceleration is enabled by typing glxinfo in a terminal and then scrolling back up to the top to see if direct rendering is enabled.
[root@localhost garvan]# glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes <<<<OK
<snip>
If it is not enabled then don't bother running any OpenGl apps.

If you do have direct rendering, then Beryl is still very new (it's not default in most distro's yet) so it could be a bit buggy, or/and it may be a video driver problem.

Garvan
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

Post by joseywales72 »

Thanks for the info Garvan... It seems that you are right, glxinfo yields "direct rendering no".
I guess I must find a workaround now.
Beryl, once one got used to, is not counter-productive as a lot of people say. On the contrary, it makes using Linux a lot more fun and intuitive.
Thanks again.
Anil
Post Reply