Linux and OpenGL

Discussion about everything. New games, 3d math, development tips...
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Linux and OpenGL

Post by HardcoreWizard »

I don't know if this is the right forum to post this question, so I thought the offtopic section would be okay for this purpose :).
I have tried some of the Irrlicht examples on both Windows and Linux. It seems that some of the effects like dynamic light doesn't work on Linux. I don't have another OpenGL application to test with, so I'm not sure if it's Irrlicht, or my system setup that should be blamed.

My system specs are:
OS: Ubuntu 6.06 (Dapper Drake)
X Server: X.Org 7.0.0
Graphics adapter: ATI Radeon 9800 XT
X Driver: fglrx 8.26.18

I'm not sure if this is relevant, but fglrxinfo outputs the following information about the OpenGL renderer:

OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 XT Generic
OpenGL version string: 2.0.5879 (8.26.18)


Thanks in advance, and sorry if this has no relevance to the Irrlicht project.
cypher543
Posts: 78
Joined: Sat Apr 15, 2006 5:24 pm
Location: Missouri, USA
Contact:

Post by cypher543 »

Just in case this *was* Irrlicht, you probably should have posted this in the Beginners help forum. I don't think many people read the offtopic forum. At least not in my experiences. :P

Anyway, could you tell us which Linux distro you are running? Some distros (such as Fedora) require you to install a special version of your ATI card's drivers built for Linux. They unlock the more advanced features. I never had this problem, since my video card was older and didn't support the advanced features with or without a special driver.
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

The distro is Ubuntu 6,06 (Dapper Drake). The interesting thing is, I just found out that it's only some of the samples that produces this "error". For example, the sample 08.SpecialFX produces a very "flat" light, but the sample 11.PerPixelLighting works fine.
I guess I'm just gonna take a look at the code to see why there is a difference :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe post some screenshots so we can see what you mean.
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

Of course. Here is a screenshot of the demo running in Windows using OpenGL:
Image

An here is a screenshot from Linux, also running OpenGL (of course, heh):
Image

I noticed that dynamics shadows is also a no-no on Linux. Notice how the light produced by the star is very "flat", compared to the Windows run?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Lack of shadows is due to a bug in the code which tries non-stencil visuals even for stencil buffer requests. Use the Irrlicht SVN version for this to be fixed, or search the CIrrDeviceLinux.cpp for stencilbuffer and change the variable in one place.
the light seems to be really odd, I never had it that way. Maybe also a problem with visuals. Could you post the output of glxinfo? Or upload it somewhere it it's too large.
DeusXL
Posts: 114
Joined: Sun Mar 14, 2004 9:37 am
Contact:

Post by DeusXL »

Also have this shadow bug on Linux, but the most strange is that some games give me the same bug (Morrowind on Linux for example... When I set shadows on this game, the screen goes dark and there is no shadow displayed... exactly the same bug with irrlicht). That's why I thought it was because of my ugly ATI drivers (we all know that ATI's driver for Linux aren't the bests).
I'll try to test with the latest SVN.
Irrlicht .NET complete and Cross Platform Wrapper
The kid on my avatar wrote:A painless lesson is one without any meaning
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

I will try getting the latest Irrlicht from SVN then.
About my glxinfo output, I've uploaded the output here: http://hwiz.dk/glxinfo. I am afraid that some of the blame can be put on ATI's drivers and OpenGL renderer, which as DeusXL says isn't the best.
Thanks for the info :)
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

Okay, I got the most recent Irrlicht from SVN, and it actually seems like the shadows work now. Parallax mapping does NOT work now though, but I guess I'll just have to wait until the next release of Irrlicht.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I simply cannot test shaders under Linux. No system accessible for me support shaders :cry:
but maybe you can upload a working copy of the glxinfo output (or fix the link) and I can say more :wink:
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

I'm running Kubuntu at home on an NVIDIA GeForce 6600GT, so I can test shader code for you. Just tell me where to download binaries in a tar.gz file (or I can grab Irrlicht from SVN).
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

@hybrid, the link is right, the problem is that phpBB has included the "." at the end of the sentence :). Remove the dot, and it should be ok
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

HardcoreWizard wrote:Parallax mapping does NOT work now though, but I guess I'll just have to wait until the next release of Irrlicht.
No, it's working right out of the box. I finally managed to get my 64bit system working with ATI drivers so I can now test these things again. And for me it's working.
HardcoreWizard
Posts: 13
Joined: Mon Jul 10, 2006 12:54 am
Location: Denmark

Post by HardcoreWizard »

Hmm, I've got the latest drivers from ATI, what about you? I'm beginning to think that I'm just having a driver problem then, this is how example 11 looks to me:

Image

Image
AndyCR
Posts: 110
Joined: Tue Nov 08, 2005 2:51 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

Wow, now I know, being a Linux user, not to buy an ATI video card.

Everything in Irrlicht works perfectly for me on Linux, and seems to perform a little bit better than it does on Windows, using a GeForce 6200.
Post Reply