Archived

This topic is now archived and is closed to further replies.

mithilwane

Fatal Error

Recommended Posts

i was running a program of urs hosted as a tutorial for opengl on linux which uses glut.i had some linking problems but they have been solved but now after running the program i get the following error GLUT: Fatal Error in lesson1: visual with necessary capabilities not found. please help

Share this post


Link to post
Share on other sites
translation: "your video card cant handle the application you're trying to run."

so my questions are as follows:
* what kind of video card do you have?
* Do you have the proper drivers installed for linux?
* what tutorial are we talking about here? does it make calls to fragment programs, etc?


-eldee
;another space monkey;
[ Forced Evolution Studios ]


::evolve::

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!


[edited by - eldee on October 16, 2003 2:06:23 AM]

Share this post


Link to post
Share on other sites
ok i am using a program which was hosted on nehe.gamedev.net.it was a tutorial for linux.
well about the card i have a Intel 845 chipset which has support for gl but i dont know what card internally does it have.

as for glut i am using the normal glut library,

Share this post


Link to post
Share on other sites
Hi,

Try running 'glxinfo' to see what visuals are supported with your drivers. Also, what framerate do you get from 'glxgears'. You should be getting over 500fps if your card has hardware acceleration.

Which NeHe tutorial are you trying to run?

Edit: I see you're trying to run lesson1

cheers,
-theoddbot

[edited by - theoddbot on October 21, 2003 5:03:39 AM]

Share this post


Link to post
Share on other sites
out put for glxinfo

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: 2d3D, Inc
OpenGL renderer string: Mesa DRI Intel(R) 845G 20021115
OpenGL version string: 1.2 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_transpose_matrix, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_convolution, GL_EXT_compiled_vertex_array, GL_EXT_fog_coord,
GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_texture3D,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_object,
GL_EXT_texture_lod_bias, GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
GL_MESA_window_pos, GL_NV_texgen_reflection, GL_SGI_color_matrix,
GL_SGI_color_table
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

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
----------------------------------------------------------------------
0x22 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x23 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x25 24 tc 1 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x27 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow

*****************************************************************

output for glx gears

1542 frames in 5.0 seconds = 308.400 FPS
2136 frames in 5.0 seconds = 427.200 FPS
2180 frames in 5.0 seconds = 436.000 FPS
8578 frames in 5.0 seconds = 1715.600 FPS
10302 frames in 5.0 seconds = 2060.400 FPS
9178 frames in 5.0 seconds = 1835.600 FPS
10254 frames in 5.0 seconds = 2050.800 FPS
7825 frames in 5.0 seconds = 1565.000 FPS
2322 frames in 5.0 seconds = 464.400 FPS


i cant unbderstand anything about this information abt glxinfo

Share this post


Link to post
Share on other sites
Hi,

Your output looks fine. :s

Perhaps start removing stuff from line 90:
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH);

Start with alphh, double, depth and try changing RGBA to RGB .

I''m out of ideas,

-theoddbot

Share this post


Link to post
Share on other sites
hi,

i tried the idea u gave me theoddbot it worked but not completely.i removed alpha from line 90 and it showed me the window but after that the computer hangs up.and pls tell me whats alpha for.

thanx for the help

Share this post


Link to post
Share on other sites
Hi,

After thinking a bit more, i think you should remove GLUT_ALPHA and change GLUT_RGBA to GLUT_RGB.

Alpha is the way in which openGL handles transparent stuff, like glass or water. I think GLUT_RGBA asks for a surface with destination alpha, which isn''t very well supported on most cards, including yours. It is, however, not necessary for the majority of stuff you will want to do.

GLUT_DOUBLE is for double-buffering your window, which will reduce flicker.


I might suggest that if this doesn''t work, take a look at the SDL version instead. You will have to install the SDL and SDL-devel packages for your distribution, but it is much better for game related work.

cheers,
-theoddbot

Share this post


Link to post
Share on other sites