[Solved] shaders not available...

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

[Solved] shaders not available...

Post by DaddyHoggy »

Working with Getafix I've been testing his new packager for 1.72.2 and tonight he got it working on my Ubuntu install - hooray. However, I've noticed that when I go to the Options screen The shaders option is greyed out and it says "not available" - now, my FX5900XT isn't state-of-the-art anymore but I'm fairly sure the shader requirements of Oolite should be covered - so is this a driver issue? or something to do with 1.72.2? Although I don't play much I distinctly remember setting the shaders to FULL in earlier (1.69 and 1.71) releases of the game.

Hopefully this is the relevant info:

Athlon XP2800+, 128MB FX5900XT, Ubuntu 7.10

I'm using the nvidia restricted drivers:

nvidia-glx-new
NVIDIA binary XFree86 4.x/X.Org 'new' driver

Version: 100.14.19+2.6.22.4-16.12

---

I've got a 256MB FX5950 Ultra ready to go in - but my better half is currently using the PC for her MSc coursework and I'm dead if I shag up the PC before she's finished!

Any help much appreciated!

All that lovely shadery stuff I might miss out on! :(
Last edited by DaddyHoggy on Sun Jan 25, 2009 12:32 am, edited 1 time in total.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

I was just about to PM you, suggesting to bring this issue in the forum. :)

In a terminal window type

Code: Select all

glxinfo | grep direct
then type

Code: Select all

glxinfo | grep OpenGL
Post both results.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

As you requested:

Code: Select all

john@new-ubuntu:~$ glxinfo | grep direct
direct rendering: Yes
john@new-ubuntu:~$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce FX 5900XT/AGP/SSE/3DNOW!
OpenGL version string: 2.1.1 NVIDIA 100.14.19
OpenGL extensions:
john@new-ubuntu:~$
Does this help? I thought OpenGL 2 was what the shader code in Oolite was using?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

As a side note - just been to the nvidia website - seems to be a much newer version of the Linux drivers available NVIDIA-Linux-x86-173.14.12-pkg1.run

I think I've downloaded it - the link on the nvidia page goes to the license page first and then fills my FF browser window with almost 19MB of garbage preceded by the shell info at the beginning.

Anybody else using this driver? If yes, was it easy/painless to install? Does it work?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Is this related/relevant? When I press F11 in-game it crashes and I get this in the terminal:

Code: Select all

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  135 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x187
  Serial number of failed request:  221
  Current serial number in output stream:  223

Erk. It looks like Oolite died with an error. When making an error
report, please copy + paste the log above into the report.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

First things first.

Need more input... [quote from Johnny 5] :)
In a terminal type

Code: Select all

more ~/.Oolite/Logs/Latest.log | grep Shaders
and post the result.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

DaddyHoggy wrote:
As a side note - just been to the nvidia website - seems to be a much newer version of the Linux drivers available NVIDIA-Linux-x86-173.14.12-pkg1.run
:!: Some preliminary steps are mandatory, before installing this. :!:

This is going to be a tricky one, so I'll wait for your log result first.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Ah-Ha!

Code: Select all

john@new-ubuntu:~$ more ~/.Oolite/Logs/Latest.log | grep Shaders
[rendering.opengl.shader.support]: Shaders will not be used (OpenGL extension GL_ARB_shading_language_100 is not available).
john@new-ubuntu:~$
:?

Just flown around for a bit - new pilot - sad to see the Trade Station without all it's beautiful running lights - so now I KNOW I'm not imagining it - my shaders have gone, where they were once available.

Without trying to decoy you again - my new pilot jumped from Lave to Leesti to sell some furs and stuff and when I docked I tried to save and the game just hung up - had to bash some random keys and eventually it crashed out :(
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

DaddyHoggy wrote:
Is this related/relevant? When I press F11 in-game it crashes...
Yes, it is. I have managed to simulate this on an Ubuntu 7.10 box.
I was just wondering, would you consider going for 8.04 (LTS - Long Time Support) or 8.10?
It seems there is a better handling of nVidia cards.

If not, we will proceed with native nVidia driver install instructions. Anyhow, post the filtered "Latest.log" (see previous post).
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Hmmm - just tried to restart oolite (by typing "oolite" in the terminal window - normal I run it from the icon on the games menu - but as the terminal was already open...) anyway, the screen went black but stayed black...

Much random keypressing later I gave up and resorted to CTRL+ALT+Esc and since I can't remember how to kill a specific app off from the command line I ended up doing a sudo reboot now instead...

:?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

I was thinking about going to 8.04 anyway - is the upgrade painless - on my previous machine (Athlon XP2500+, FX5600TDH) I let it "upgrade" me from 7.04 to 7.10 with mixed results.

So when I built this machine from scratch I started with 7.10 and just ported across mine and the wife's /home dirs from one HD to the other.

However, two things spring to mind 1) I daren't move to 8.04 until my wife's finished her coursework - so that's me screwed for at least a week and 2) others out there may be in a similar position - the driver guide might be useful irrespective of the choices I make (and perhaps in a thread of its own?)

I'm hoping you saw my filtered log results in earlier post, just in case - repeated here!

Code: Select all

john@new-ubuntu:~$ more ~/.Oolite/Logs/Latest.log | grep Shaders
[rendering.opengl.shader.support]: Shaders will not be used (OpenGL extension GL_ARB_shading_language_100 is not available).
john@new-ubuntu:~$
I'm still perplexed as to why I had shaders before, but none now - has something fundamental changed in 1.72.2?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

If you mean that you had shaders with 1.72, then please do the following :idea:

Code: Select all

sudo rm /usr/lib/Oolite/oolite-deps/lib/libGL*
If this still does not fix your shaders issue, then install Oolite1.72 again, and post the result.
I have PM you the setup in case you do not have it.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Please find and post the rendering.opengl.extensions line in Latest.log, or run glxinfo without grepping and list what comes after “OpenGL extensions:”.

An OpenGL 2.x driver should be including GL_ARB_shading_language_100 for backwards compatibility, although as far as I can see it isn’t strictly required. Specifically, GL_ARB_shading_language_100 is one of several extensions that were merged into the core specification in 2.0. However, in order to remain compatible with non-2.0 systems, Oolite must continue to use the extension.

Oolite’s behaviour in this regard has not changed in 1.72 (or any recent version).
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Code: Select all

OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_fragment_program, 
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, 
    GL_ARB_half_float_pixel, GL_ARB_imaging, GL_ARB_multisample, 
    GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object, 
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow, 
    GL_ARB_shader_objects, GL_ARB_shading_language_100, 
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3, 
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, 
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos, 
    GL_S3_s3tc, GL_EXT_texture_env_add, 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_compiled_vertex_array, GL_EXT_Cg_shader, 
    GL_EXT_depth_bounds_test, GL_EXT_draw_range_elements, GL_EXT_fog_coord, 
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, 
    GL_EXT_framebuffer_object, GL_EXT_gpu_program_parameters, 
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, 
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object, 
    GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color, 
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, 
    GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side, 
    GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_compression_s3tc, 
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod, 
    GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_sRGB, 
    GL_EXT_timer_query, GL_EXT_vertex_array, GL_IBM_rasterpos_clip, 
    GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square, 
    GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fence, 
    GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program, 
    GL_NV_fragment_program_option, GL_NV_framebuffer_multisample_coverage, 
    GL_NV_half_float, GL_NV_light_max_exponent, GL_NV_multisample_filter_hint, 
    GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, 
    GL_NV_point_sprite, GL_NV_primitive_restart, GL_NV_register_combiners, 
    GL_NV_register_combiners2, GL_NV_texgen_reflection, 
    GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4, 
    GL_NV_texture_expand_normal, GL_NV_texture_rectangle, 
    GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3, 
    GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program, 
    GL_NV_vertex_program1_1, GL_NV_vertex_program2, 
    GL_NV_vertex_program2_option, GL_SGIS_generate_mipmap, 
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow, 
    GL_SUN_slice_accum
GL_ARB_shading_language_100 - appears to be present!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Just in case I was imagining it - I went back and found an old posting on the Screenshots thread - as you can see - nice glowy Trade Station.

Just about to try what Getafix suggested (here and via PM)
DaddyHoggy wrote:
Having just installed all the station OXPs I could find - I was amazed to discover how utterly beautiful some of the new stations are - I found this one around Diso (without Famous Planet oxp installed tsk tsk). I have no idea what station or which oxp it's from but I was completely transfixed - watched it for ages - even forgot to dock.

The still doesn't do it justice - especially reduced to 800x600

Image
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Post Reply