Jump to content

Help! All graphics are broken.


joepie91
 Share

Recommended Posts

As the title says... all graphics are broken, I am not seeing anything useful. Since I'm not sure whether it's a bug or a user error of some sorts, I'm posting it here.

The menu is just gray, no images whatsoever. I have to randomly move the mouse around to find out what buttons are. In the game itself, nothing has textures. The music is playing just fine, however, as does the sound.

I am running OpenSuSE 11.3, and I've installed it through the OpenSuSE games repository (as instructed by the installation page). I've installed 0ad and 0ad-data (which was automatically selected) and a bunch of other dependencies. However, it's as if some resource package is missing.

Below are screenshots:

12906188834ced48030449d.png

12906189114ced481fc0f5c.png

12906189314ced4833b0736.png

12906189694ced4859b838e.png

Edited by joepie91
Link to comment
Share on other sites

If you run the game from a terminal, does it print any error messages? particularly ones saying a texture format is not supported? (I think the problem may be that the open source ATI drivers can claim to support S3TC texture compression when actually they don't.)

If you create a file ~/.config/0ad/config/local.cfg containing the line

nos3tc=true

then does it work any better? If so, could you post the output of running "glxinfo" (so we can work out how to detect these drivers and disable S3TC automatically)?

Link to comment
Share on other sites

If you run the game from a terminal, does it print any error messages? particularly ones saying a texture format is not supported? (I think the problem may be that the open source ATI drivers can claim to support S3TC texture compression when actually they don't.)

If you create a file ~/.config/0ad/config/local.cfg containing the line

nos3tc=true

then does it work any better? If so, could you post the output of running "glxinfo" (so we can work out how to detect these drivers and disable S3TC automatically)?

When running from terminal I get this output (I actually started a game):

ERROR: Error initializing FAM; hotloading will be disabled
TIMER| InitVfs: 113.552 ms
TIMER| InitScripting: 1.35475 ms
TIMER| CONFIG_Init: 3.28101 ms
WARNING: Failed to set the video mode to fullscreen for the chosen resolution 3200x1080:24 ("No video mode large enough for 3200x1080"), falling back to windowed mode
TIMER| write_sys_info: 892.178 us
TIMER| InitRenderer: 553.104 ms
TIMER| ps_console: 3.26899 ms
TIMER| ps_lang_hotkeys: 2.11201 ms
TIMER| common/setup.xml: 1.22263 ms
TIMER| common/styles.xml: 644.693 us
TIMER| common/sprite1.xml: 3.9405 ms
TIMER| common/init.xml: 4.7486 ms
TIMER| pregame/sprites.xml: 1.10643 ms
TIMER| pregame/styles.xml: 212.29 us
TIMER| pregame/mainmenu.xml: 14.5028 ms
TIMER| common/global.xml: 948.883 us
SND| alc_init: success, using PulseAudio Software
TIMER| common/setup.xml: 1.08994 ms
TIMER| common/styles.xml: 925.14 us
TIMER| common/sprite1.xml: 3.69106 ms
TIMER| gamesetup/setup.xml: 23.3316 ms
TIMER| gamesetup/sprites.xml: 9.62011 ms
TIMER| gamesetup/styles.xml: 477.653 us
TIMER| gamesetup/gamesetup.xml: 13.7623 ms
TIMER| common/setup.xml: 966.2 us
TIMER| common/styles.xml: 466.48 us
TIMER| common/sprite1.xml: 3.03827 ms
TIMER| common/init.xml: 2.92011 ms
TIMER| loading/loading.xml: 9.56033 ms
TIMER| common/global.xml: 802.235 us
TIMER| common/setup.xml: 1.33268 ms
TIMER| common/styles.xml: 575.14 us
TIMER| common/sprite1.xml: 4.60782 ms
TIMER| common/icon_sprites.xml: 22.4447 ms
TIMER| session_new/sprites.xml: 12.1243 ms
TIMER| session_new/styles.xml: 9.94274 ms
TIMER| session_new/session.xml: 74.4838 ms
TIMER| common/global.xml: 1.3919 ms
GAME STARTED, ALL INIT COMPLETE
TIMER| shutdown actor stuff: 8.101 us
TIMER| shutdown TexMan: 5.028 us
TIMER| shutdown Renderer: 7.73966 ms

I used 0ad > 0ad.log to output things to a log file because my terminal was rapidly filling up with thousands of these errors in a few seconds:

unsupported texture format in setup_hardware_state
failed to validate texture for unit 0.

When running with the modified config file the menu renders nicely and the game works well (although really slow, but that may be due to the drivers) and I get the following notice:

12906314964ced79483607d.png

The output of glxinfo is as follows:

sven@linux-fbc4:~> glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
GLX_INTEL_swap_event
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
GLX_INTEL_swap_event
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV635 9598) 20090101 x86/MMX+/3DNow!+/SSE2 TCL DRI2
OpenGL version string: 2.0 Mesa 7.8.2
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_depth_clamp, GL_ARB_draw_buffers,
GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, 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_provoking_vertex,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_shadow_ambient, 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_crossbar, GL_ARB_texture_env_dot3,
GL_MESAX_texture_float, GL_ARB_texture_mirrored_repeat,
GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, GL_EXT_fog_coord,
GL_EXT_gpu_program_parameters, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels,
GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap,
GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, GL_APPLE_packed_pixels,
GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3,
GL_ATI_texture_mirror_once, GL_ATI_separate_stencil,
GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos,
GL_NV_blend_square, GL_NV_depth_clamp, GL_NV_light_max_exponent,
GL_NV_packed_depth_stencil, GL_NV_texture_rectangle,
GL_NV_texgen_reflection, GL_NV_vertex_program, GL_OES_read_format,
GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
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
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xce 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0xcf 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0xd0 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0xd1 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0xd2 24 tc 0 24 0 r . . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0xd3 24 tc 0 24 0 r . . 8 8 8 0 0 16 0 16 16 16 0 0 0 Slow
0xd4 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0xd5 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 16 16 16 0 0 0 Slow
0xd6 24 tc 0 24 0 r . . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0xd7 24 tc 0 24 0 r . . 8 8 8 0 0 24 0 16 16 16 0 0 0 Slow
0xd8 24 tc 0 24 0 r y . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0xd9 24 tc 0 24 0 r y . 8 8 8 0 0 24 0 16 16 16 0 0 0 Slow
0xda 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xdb 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0xdc 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xdd 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0xde 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xdf 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0xe0 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xe1 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0xe2 24 tc 0 32 0 r . . 8 8 8 8 0 16 0 0 0 0 0 0 0 None
0xe3 24 tc 0 32 0 r . . 8 8 8 8 0 16 0 16 16 16 16 0 0 Slow
0xe4 24 tc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 0 0 Slow
0xe5 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0xe6 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0xe7 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0xe8 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0xe9 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xea 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xeb 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xec 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0xed 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0xee 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0xef 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0xf0 24 dc 0 24 0 r . . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0xf1 24 dc 0 24 0 r . . 8 8 8 0 0 16 0 16 16 16 0 0 0 Slow
0xf2 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0xf3 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 16 16 16 0 0 0 Slow
0xf4 24 dc 0 24 0 r . . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0xf5 24 dc 0 24 0 r . . 8 8 8 0 0 24 0 16 16 16 0 0 0 Slow
0xf6 24 dc 0 24 0 r y . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0xf7 24 dc 0 24 0 r y . 8 8 8 0 0 24 0 16 16 16 0 0 0 Slow
0xf8 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xf9 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0xfa 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xfb 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0xfc 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xfd 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0xfe 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xff 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x100 24 dc 0 32 0 r . . 8 8 8 8 0 16 0 0 0 0 0 0 0 None
0x101 24 dc 0 32 0 r . . 8 8 8 8 0 16 0 16 16 16 16 0 0 Slow
0x102 24 dc 0 32 0 r y . 8 8 8 8 0 16 0 0 0 0 0 0 0 None
0x103 24 dc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 0 0 Slow
0x104 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0x105 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x106 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None
0x107 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x108 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x109 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x10a 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x6d 32 tc 0 32 0 r y . 8 8 8 8 0 16 0 0 0 0 0 0 0 None

Additionally, it appears that it detects my dual monitors as one very wide monitor. That may be something to look into as well :)

Disabling the second monitor helped to get the game fullscreen, but it did not influence the texture and graphics problem.

Edited by joepie91
Link to comment
Share on other sites

unsupported texture format in setup_hardware_state
failed to validate texture for unit 0.

Okay, that's the one I expected - I think it's this bug.
When running with the modified config file the menu renders nicely and the game works well (although really slow, but that may be due to the drivers)
Have you tried disabling shadows and/or fancy water (in the in-game menu, I think)? That might help with performance.
I get the following notice:
We should probably skip that warning when nos3tc has explicitly been set.
Additionally, it appears that it detects my dual monitors as one very wide monitor. That may be something to look into as well :)
That's an issue with SDL on Linux - I don't think there's anything we can easily do about it, unfortunately :P
Link to comment
Share on other sites

Okay, that's the one I expected - I think it's this bug.

Have you tried disabling shadows and/or fancy water (in the in-game menu, I think)? That might help with performance.

I tried that, but it remained a slug. A few hours ago, however, I (finally) managed to get the ATI/AMD drivers working (the Catalyst ones) and everything works fine now, even with s3tc turned on. So yes, I believe it's a problem with the open-source driver.

We should probably skip that warning when nos3tc has explicitly been set.

That's an issue with SDL on Linux - I don't think there's anything we can easily do about it, unfortunately :P

Ok... well, in that case, no blame to you guys :)

The game is very nice by the way, although I can't seem to find any option to save the game. Isn't it there yet or am I just overlooking it? :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...