This article's documentation is for the "GoldSrc" engine. Click here for more information.

Screenshot (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Language subpage}} <!-- Add the categories to the main page, not here. Some template, such as {{This is a}}, and all Table templates should be placed to the main page. --> {...")
 
m (Nesciuse moved page Screenshot (GoldSrc)/en to Screenshot (GoldSrc) without leaving a redirect: Move en subpage to basepage)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Language subpage}}
{{LanguageBar}}
{{tabs|Screenshot|goldsrc=1|source=1|main=source}}
 
<!-- Add the categories to the main page, not here. Some template, such as {{This is a}}, and all Table templates should be placed to the main page. -->
<!-- Add the categories to the main page, not here. Some template, such as {{This is a}}, and all Table templates should be placed to the main page. -->
{{langsp}}
A '''screenshot''' is a single rendered frame outputted to an image file. In {{gldsrc|4}} engine, it can output [[BMP]] bitmap (.bmp) and [[TGA]] (.tga) image formats.  
A '''screenshot''' is a single rendered frame outputted to an image file. In {{gldsrc|4}} engine, it can output [[BMP]] bitmap (.bmp) and [[TGA]] (.tga) image formats.  


Line 18: Line 19:
|-
|-
|style=white-space:nowrap| {{code|snapshot}}
|style=white-space:nowrap| {{code|snapshot}}
| Takes a BMP screenshot. Progressive or not?{{Clarify}} The filename will have ".jpg" appended. If no quality is specified, the quality defined by ''jpeg_quality'' is used. {{confirm|You cannot specify the quality without a filename.}}
| Takes a BMP screenshot. The filename will have ".bmp" appended.  
{{tip|The filename may contain subdirectories as long as they exist, for example {{code|jpeg overviews/test_01}} writes into the directory {{path|screenshots/overviews/}}.}}
|-
| {{code|jpeg_quality [1-100]}}
:{{csgo|not}}
| Compression quality to save the JPEG with, ranging from 1-100, with 100 being the best quality. The default value is 90, which means visually lossless for most images. {{note|This is reset to 90 every time the game is closed but one can force it through [[autoexec]].cfg.}}
|}
|}


Line 33: Line 29:
*[[Panorama Creation]] - a guide for creating a panorama image using multiple screenshots
*[[Panorama Creation]] - a guide for creating a panorama image using multiple screenshots
*[[:Category:Screenshot needed]] - a list of articles on this Wiki which could use one or more screenshots. You can help!
*[[:Category:Screenshot needed]] - a list of articles on this Wiki which could use one or more screenshots. You can help!
{{Gldsrc topicon}}
[[Category:Files]]

Latest revision as of 10:35, 12 July 2024

English (en)Translate (Translate)

A screenshot is a single rendered frame outputted to an image file. In GoldSrc GoldSrc engine, it can output BMP bitmap (.bmp) and TGA (.tga) image formats.

Both file formats are uncompressed, meaning the saved image is identical to the rendered frame with no loss of quality, however, TGAs may require third-party software (such as Adobe Photoshop) in order to open/preview the image. Screenshots can be also taken using other programs and injectors, with support for modern formats like PNG (which is lossless, like TGA, except with proper compression, aswell as compatible with more third-party software).

The default screenshot key is F5. This will take a BMP screenshot.

Limitations

Warning.pngWarning:The screenshot (for TGA) and snapshot (for BMP) commands take the screenshot immediately, displaying all current screen elements. In other words, if these commands are manually typed into the console, the screenshot will also contains the console.
PlacementTip.pngWorkaround:To take a gameplay screenshot, the command should be bound to a key and the console closed.

Console commands

screenshot Takes a TGA screenshot
snapshot Takes a BMP screenshot. The filename will have ".bmp" appended.

Files

Screenshots are saved in the 🖿<game> directory of the relevant game. By default, the naming scheme they use is "mapname####", with sequential numbering using four digits, for example "c1a00035". When the map is not loaded, the file will be saved as "Snapshot####" (for BMP) or "HalfLife##" (for TGA).

See also