bc76
11-27-02, 04:52 PM
I have been farting around with trying to learn OpenGL. I have worked through some of the tutorials for GLUT and have gotten to the one where you draw 36 snowmen. Woo woo.
The snowman tutorial compiles and works.
However, I was getting annoyed with how slow the software rendering was ( less than one frame per second ) and decided to look into downloading the NVIDIA drivers necessary to enable hardware rendering.
After runningg NVchooser I installed
NVIDIA_GLX-1.0-3123
NVIDIA_kernel-1.0-3123.rh72up
from NVIDIA's website.
Now nothing that uses OpenGL ( including TuxRacer ) works. My Snowman tutorial ( called cube ) fails with:
GLUT: Fatal Error in cube: visual with necessary capabilities not found.
I have looked on the web and many people ask why they get this error, but I have yet to find an answer. Does anyone here know how to fix this?
Someone suggested:
> If your X server is running in 16 bit mode, try switching to 24/32 bits. (the >glxinfo cmd shows you what visuals are available in your current mode, >look under colorbuffer r g b a, if a is all 0, then no visuals with alpha bits >are available.)
>
>Another option is to look for glutInitDisplayMode(..) in the source and >remove GLUT_ALPHA from it.
So I did:
$ glxinfo
Error: couldn't find RGB GLX visual
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
----------------------------------------------------------------------
0x21 16 tc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
0x22 16 dc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
At bit depth 24 I get the same thing.
I tried this on a laptop at work and I got more reasonable numbers, ie at bitdepth 24 ( as high as it would go ) the r g nd b values were 8 but alpha wa still 0. I can't find the drivers for the laptop though which is why the snoman demo works there still w/software rendering.
Man I must've busted it good...
The snowman tutorial compiles and works.
However, I was getting annoyed with how slow the software rendering was ( less than one frame per second ) and decided to look into downloading the NVIDIA drivers necessary to enable hardware rendering.
After runningg NVchooser I installed
NVIDIA_GLX-1.0-3123
NVIDIA_kernel-1.0-3123.rh72up
from NVIDIA's website.
Now nothing that uses OpenGL ( including TuxRacer ) works. My Snowman tutorial ( called cube ) fails with:
GLUT: Fatal Error in cube: visual with necessary capabilities not found.
I have looked on the web and many people ask why they get this error, but I have yet to find an answer. Does anyone here know how to fix this?
Someone suggested:
> If your X server is running in 16 bit mode, try switching to 24/32 bits. (the >glxinfo cmd shows you what visuals are available in your current mode, >look under colorbuffer r g b a, if a is all 0, then no visuals with alpha bits >are available.)
>
>Another option is to look for glutInitDisplayMode(..) in the source and >remove GLUT_ALPHA from it.
So I did:
$ glxinfo
Error: couldn't find RGB GLX visual
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
----------------------------------------------------------------------
0x21 16 tc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
0x22 16 dc 0 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
At bit depth 24 I get the same thing.
I tried this on a laptop at work and I got more reasonable numbers, ie at bitdepth 24 ( as high as it would go ) the r g nd b values were 8 but alpha wa still 0. I can't find the drivers for the laptop though which is why the snoman demo works there still w/software rendering.
Man I must've busted it good...