[CS 1.6 - Bug] .bmp snapshots are corrupted
.tga screenshots are fixed, issue https://github.com/ValveSoftware/halflife/issues/418 was about them, so I open this issue to discuss .bmp snapshots problem.
Windows 7 x64, Widescreen 1366x768, GeForce GT 240, the latest video drivers.
] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 11:45:32 Mar 1 2013 (5971)
Snapshot still doesn't work. -nofbo doesn't help If I DO have Low Quality checked and run fullscreen @ 1360x768 or any lower, everything works.
You can download my corrupted snapshot: https://docs.google.com/file/d/0B-oc73ZQFT19R05qVkg0bjlCV1U/edit?usp=sharing
I was looking for a freeware soft to repair this image and I found this: http://www.irfanview.com/
It worked, and I got this: (repaired and saved to jpeg)
Exactly the same result as I had with .tga files, except for the fact that I can not open the original .bmp files at all.
I hope this helps.
Can confirm, happens only in fullscreen w/o low video quality opted.
Hmm, I cannot reproduce this locally (using windows 7 and a similar nvidia card). You say that the screenshot command does work for you though? What is your desktop screen resolution and what are you using in game?
@alfred-valve Yes. Screenshot command does work. Desktop screen resolution - 1366x768 In-game screen resolution - 1366x768 Monitor works @ 60Hz (actually 59Hz)
@alfred-valve The bug is not caused by my videocard. I pulled out my GeForce videocard from PC and used iGPU instead (turned it on in BIOS), my CPU is Intel Core i3120, so iGPU is Intel® HD Graphics 2000. It is not fixing the issue.
That's weird. If I set my desktop resolution lower than the native resolution of the monitor (For example, 1360x768, when my native resolution is 1366x768), it also fixes the bug on both iGPU and GeForce GT 240.
More weirdness.
When I use my GeForce GT240 videocard.
And when I set my desktop resolution lower than the native resolution (1360x768)
In addition, the game resolution is higher than the resolution I set (1366x768)
In NVIDIA Control Panel I choose "Adjust image settings to..." (Perfomance/Balance/Quality - doesn't matter)
the screen is green
-nofbo in Launch Options fixes it.
Oh Max, now that is interesting, I have been trying to find a way to reproduce the green screen issue some people are seeing, thanks for providing the details!
After Beta update on March 13 or on March 14 (I'm not sure which one), sometimes snapshot command created not corrupted files filled with black color. After the latest update (when "-glext" argument was added) it is completely broken again.
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 09:17:33 Mar 14 2013 (5984)
128.0 Mb heap
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GT 240/PCIe/SSE2
GL_VERSION: 3.3.0
GL_EXTENSIONS: GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_clear_buffer_object GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback_instanced GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate 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_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_
There should be a line of spew starting with "GL_SIZES" when you launch with "-dev", can you paste that here please
I don't have GL_SIZES in the output if I have -dev -glext in Launch Options. If it's just -dev, I have it.
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 09:17:33 Mar 14 2013 (5984)
128.0 Mb heap
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GT 240/PCIe/SSE2
GL_VERSION: 3.3.0
GL_SIZES: r:8 g:8 b:8 a:0 depth:24
After Beta update on March 13 or on March 14 (I'm not sure which one), sometimes snapshot command created not corrupted files filled with black color. After the latest update (when "-glext" argument was added) it is completely broken again.
I was wrong. Sometimes I get black snapshots with the latest version. Strange thing, my in-game resolution is 1366x768, but black screens are captured in 640x480
GL_SIZES: r:8 g:8 b:8 a:0 depth:24
why the alpha channel is 0...
The image size matches your window size (if running without -nofbo and not windowed), so it sounds like the game is using a backing FBO at 1366 but your window size is only 640x480... I'll see if I can reproduce this.
Same problem about screenshots. 1366 native screen resolution
Processeur : Fabricant : AuthenticAMD Vitesse : 2109 MHz 2 processeurs logiques 2 processeurs physiques HyperThreading : Non pris en charge FCMOV : Pris en charge SSE2 : Pris en charge SSE3 : Pris en charge SSSE3 : Pris en charge SSE4a : Non pris en charge SSE41 : Non pris en charge SSE42 : Non pris en charge
Réseau : Vitesse du réseau :
Version du système d'exploitation : Windows XP (32 bits) NTFS : Pris en charge Codes Fournisseur Crypto : Pris en charge 311 0x0 0x0 0x0
Carte vidéo : Pilote : NVIDIA GeForce GT 240
Nom du pilote DirectX : nv4_disp.dll
Version du pilote : 6.14.13.1407
Version du pilote DirectX : 6.14.13.1407
Date du pilote : 10 fév 2013
Profondeur de couleur du bureau : 32 bits par pixel
Taux de rafraîchissement du moniteur : 60 Hz
Carte DirectX : NVIDIA GeForce GT 240
ID fabricant : 0x10de
ID périphérique : 0xca3
Nombre de moniteurs : 1
Nombre de cartes vidéo logiques : 1
Aucun SLI ou Crossfire détecté
Résolution de l'affichage principal : 1366 x 768
Résolution du bureau : 1366 x 768
Taille de l'affichage principal : 16.14" x 9.06" (18.50" diag)
41.0cm x 23.0cm (47.0cm diag)
Bus principal : PCI Express 16x
Mémoire vidéo principale : 512 Mo
Modes MSAA pris en charge : 2x 4x 8x
Carte son : Périphérique audio : Logitech Wireless Headset
Mémoire : RAM : 2047 Mo
Divers : Langue de l'interface : Français Micro : Not set Type de support : DVD Espace disque total disponible : 629547 Mo Plus grand bloc disponible sur le disque dur : 309564 Mo Date de l'installation du SE : janv. 15 2013 Contrôleur de jeu : None détecté(s)
The image size matches your window size (if running without -nofbo and not windowed), so it sounds like the game is using a backing FBO at 1366 but your window size is only 640x480... I'll see if I can reproduce this.
When I launch the game, I see a small (640x480) white(empty) window, then the game runs normal in fullscreen. It happens really fast, so I recorded a video and captured a frame:
I thought the game creates a window and then resizes it and there's nothing wrong with it.
The game does create a window and then resizes it, but I wonder if that resize is causing you a problem, I have a code change in that may help. Having 0 bits for alpha is fine/good, we don't need transparency through to the desktop :)
well push a patch download in beta and will see if it work; I'm here ta lest for the next 4 hours.
This issue is very weird. snapshot doesn't work when I launch the game with -sw -w 1366 -h 768, but it works if I use a lower resolution (even 1360x768). It doesn't work in fullscreen no matter what resolution I use. Only
If I DO have Low Quality checked and run fullscreen @ 1360x768 or any lower
helps. Another way to "fix" it:
If I set my desktop resolution lower than the native resolution of the monitor (For example, 1360x768, when my native resolution is 1366x768)
this solution fixes snapshot and it works even in fullscreen without Low Quiality
This is more a workaround rather than a fix.
] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 14:44:06 Mar 15 2013 (5986)
no, it didn't help :( Are you sure you applied the fix from .tga screenshots issue to this issue?
Yup, it has the code in it. Do you still get a 640x480 screenshot?