Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-23-2004, 03:16 AM
|
#1
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Rep:
|
3D hardware acceleration (3dfx, opengl, ...)
I have an ancient 3Dfx Voodoo3 AGP card and would definitely like to have a hardware accelerated graphics for my 3D screensavers. I had this same problem on Windows, and I failed to get any opengl support because there were no drivers. It's kinda annoying when people just kept telling to go to "www.glsetup.com" and as we know, that thing hasn't been existed for some time now...
But how do I know whether I have a hardware acceleration on my Slackware Linux 9.1? I'm pretty much confused with all this DRI/GL/OpenGL/glide/Mesa/GLUT/GLX/... thing. It's actually been so long since I played games (on Windows, that is) and knew more about this stuff. I had this same machine but can't remember how I got these things to work. Well, maybe it was only the mighty mysterious DirectX, which one just installed and that was everything you could ever need...
I use xscreensaver and received GLX error messages when trying to view 3D savers (like the 3D bubbles thing and the trampoline cow... ). So I went to /etc/X11/XF86Config and uncommented the Load "glx" and Load "dri". No idea what that means, but it worked. But they are very slow and it definitely seems that they aren't using the hardware.
I've already installed this package: ftp://ftp.slackware.no/pub/Linux/sla....10-i386-1.txt
What packages/software/config do I need? I'm kinda lost.
Regards,
Bamse
|
|
|
05-23-2004, 06:51 AM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Look into your /etc/X11/XFree86 once again and check what you have in "Device" section. One of the lines should be
|
|
|
05-23-2004, 10:42 AM
|
#3
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Quote:
Look into your /etc/X11/XFree86 once again...
|
You meant /etc/X11/XF86Config.
Quote:
...check what you have in "Device" section.
|
I checked. Yep, tdfx driver is configured there. Just how I set up with xf86config.
Code:
Section "Device"
Identifier "Voodoo3 AGP"
Driver "tdfx"
VideoRam 16384
# Insert Clocks lines here if appropriate
EndSection
Ok, well my question is more simple than that novel I first wrote. How do I get 3dfx Voodoo3 hardware acceleration for xscreensaver? What graphics library does xscreensaver use? Do I need OpenGL or what?
In case of OpenGL, . I spent so big amount of my valuable time trying to get it (Really Slick Screensavers, GPL, www.reallyslick.com) work in Win98, no luck. I have glide, glut, sdl, working drivers and dri already. I can clearly see that the screensaver isn't using hardware. Celeron 333Mhz + 128Mb RAM + Voodoo3 in AGP slot is like a dream when configured correctly.
Regards,
Bamse
|
|
|
05-24-2004, 12:18 AM
|
#4
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Hey this one hasn't been solved yet...
Is this a graphics card specific problem?
Regards,
Bamse
|
|
|
05-24-2004, 07:43 AM
|
#5
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Hey I figured it out. I uncommented the DRI section in XF86Config and now the 3D screensavers seem to run smooth. Here:
Code:
Section "DRI"
Mode 0666
EndSection
Still there seems to be minor problems, but the GL savers work now. I couldn't even preview them before. I wonder if that DRI thing made them work, no?
Regards,
Bamse
|
|
|
05-24-2004, 03:46 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It's absolutely possible. DRI stays for Direct Rendering Infrastructure and allows to use hardware directly (in this case, graphic card). So it means DRI wasn't running correctly before you uncommented its section. Now you can probably run 'glxinfo' and see if its' output looks correctly (may be a bit cryptic, but if you don't find much about software rendering, there's a big chance you have acceleration fully running).
|
|
|
05-25-2004, 08:04 AM
|
#7
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Well the output says nothing to me because of those abbreviations. It ( glxinfo) seems to understand that I have a Voodoo3 card.
Code:
OpenGL renderer string: Mesa DRI 20021125 Voodoo3 x86/MMX
The reason I still bring this up is the "Atlantis" screensaver ( http://www.jwz.org/xscreensaver/atlantis.gif). It has once again got unbearably slow but used to run smoothly. Sometimes it works, sometimes doesn't?
I'd paste parts of the output table here but I don't know how to copy text from Eterm.
EDIT:
I used gnome-terminal and succesfully copied the glxinfo table. I'm not going to paste the whole thing, just parts of it. I hope it will clear things.
Code:
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r . . 5 6 5 0 0 0 8 0 0 0 0 0 0 Slow
0x25 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 16 16 16 0 0 0 Slow
0x26 16 tc 0 16 0 r . . 5 6 5 0 0 0 8 16 16 16 0 0 0 Slow
0x27 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x28 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
Code:
0x2b 16 tc 0 16 0 r y . 5 6 5 0 0 0 0 0 0 0 0 0 0 None
0x2c 16 tc 0 16 0 r y . 5 6 5 0 0 0 8 0 0 0 0 0 0 Slow
0x2d 16 tc 0 16 0 r y . 5 6 5 0 0 0 0 16 16 16 0 0 0 Slow
0x2e 16 tc 0 16 0 r y . 5 6 5 0 0 0 8 16 16 16 0 0 0 Slow
0x2f 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x30 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
Regards,
Bamse
Last edited by Bamse123; 05-25-2004 at 03:00 PM.
|
|
|
05-25-2004, 04:23 PM
|
#8
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Please run glxinfo once more and see if you have
Code:
direct rendering: Yes
It should be in 2nd line.
Could you check if the problem with screensaver running at different speeds may be connected with resolution of you're still running the same?
|
|
|
05-26-2004, 06:57 AM
|
#9
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Now I changed the settings a bit and it works perfectly. I just added 2 more sharks and made them more aggressive. Then added a bit more swimming speed for the whales.
I don't know why this happens. It must be the screensaver, not my machine.
glxinfo says direct rendering: yes. I already got the info I needed and all the other screensavers are using hardware without a doubt. All's well that ends well.
Regards,
Bamse
|
|
|
05-26-2004, 04:33 PM
|
#10
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Good that it works and HAPPY BIRTHDAY!
|
|
|
05-27-2004, 03:19 PM
|
#11
|
Member
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69
Original Poster
Rep:
|
Hehe, yes it indeed was my birthday. Thanks. Guess who's my favourite moderator now.
|
|
|
05-27-2004, 06:34 PM
|
#12
|
LQ Newbie
Registered: May 2004
Posts: 9
Rep:
|
Another thing you could have tried was to add your display driver to the opengl engine
#> opengl-update tdfx
This works for adding NVidia display drivers to the opengl engine also
#> opengl-update nvidia (note nvidia not nv)
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|