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

Hammer Texture Browser: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(revert, spam)
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Image:Hammer_Texture_Browser.jpg|thumb|350px|A screenshot of the Texture Browser in action.]]
{{goldsrc topicon}}
The '''Texture Browser ''' allows you to find and select materials to apply to objects.
 
{{source topicon}}
 
{{lang|{{PAGENAME}}}}
 
[[File:Hammer_Texture_Browser.jpg|thumb|350px|A screenshot of the Texture Browser in action.]]
The [[Hammer Texture Browser]] allows you to find and select materials to apply to objects.


== Texture List ==
== Texture List ==
Line 11: Line 17:
This field allows you to type in a search string. Any texture that includes that string as part of its name will be displayed. You can specify more than one filter string. For example, if you specify the search string "sign 7," any texture with "sign" and "7" in its name will be displayed. Previous search strings can be accessed by clicking on the down arrow.
This field allows you to type in a search string. Any texture that includes that string as part of its name will be displayed. You can specify more than one filter string. For example, if you specify the search string "sign 7," any texture with "sign" and "7" in its name will be displayed. Previous search strings can be accessed by clicking on the down arrow.


== Only used textures ==
== Only Used Textures ==
When selected, this sets the browser to display only those textures that have been used in your level. This helps you limit your use of different textures, and avoid using different textures for the same purpose. For games such as Half-Life, textures are stored in the compiled maps. Reducing the number of textures will decrease the compiled map size. Fewer textures to load also means memory savings while playing the map in the game.
When selected, this sets the browser to display only those textures that have been used in your level. This helps you limit your use of different textures, and avoid using different textures for the same purpose. For games such as {{hl|2}}, textures are stored in the compiled maps. Reducing the number of textures will decrease the compiled map size. Fewer textures to load also means memory savings while playing the map in the game.
 
== Keywords ==
This section appears to be a Valve-specific tool. From the list provided, you can select a specific keyword that will display only the textures used in the respective selection. For example, selecting "c17" will only show the textures used in City 17 style maps. It may have been used to group textures together for the sake of organization.


== Mark ==
== Mark ==
Line 23: Line 32:


== Open Source ==
== Open Source ==
Opens the .VMT file that was used to generate the material currently selected. The file is opened with the Windows application associated with text files. You must have .VMT files associated in Windows with a text editor (such as Notepad) for this function to work correctly. To test this, double-click a .VMT file in an Explorer window and make sure it opens properly.
Opens the [[VMT]] file that was used to generate the material currently selected. The file is opened with the Windows application associated with text files. You must have .VMT files associated in Windows with a [[text editor]] (such as Notepad) for this function to work correctly. To test this, double-click a .VMT file in an Explorer window and make sure it opens properly.


== Opaque, Translucent, SelfIllum, Envmask ==
== Opaque, Translucent, SelfIllum, EnvMask ==
Shows materials that contain these properties in their material definitions. Unchecking these options will hide any materials that have those properties.
Shows materials that contain these properties in their material definitions. Unchecking these options will hide any materials that have those properties.
{| class="standard-table"
! Icon
! Property
! Description
|-
| align="center" | [[File:opaqueicon.png|16px|link=]]
| Opaque
| shows solid, non-transparent materials.
|-
| align="center" | [[File:translucenticon.png|16px|link=]]
| Translucent
| shows materials with the parameters {{matparam|$translucent}} or {{matparam|$alphatest}}.
|-
| align="center" | [[File:selfillumicon.png|16px|link=]]
| SelfIllum
| shows materials with the {{matparam|$selfillum}} parameter.
|-
| align="center" | [[File:basealphaenvmapmaskicon.png|16px|link=]]
| EnvMask
| shows materials with the {{matparam|$envmapmask}} parameter.
|}


== Show Errors ==
== Show Errors ==
Shows materials that contain errors in their material definitions.
Shows materials that contain errors in their material definitions.
{| class="standard-table"
! Icon
! Property
! Description
|-
| align="center" | [[File:erroricon.png|16px|link=]]
| Show Errors
| shows missing/broken materials. {{bug|hidetested=1|Sometimes it may provide incorrect information.<br />If you haven't found any errors, it's likely that the editor has mistaken something it doesn't understand for an error.}}
|}


== See also ==
== See also ==
* [[Hammer_Textures_Toolbar|Textures Toolbar]]
* [[Hammer Textures Toolbar]]
* [[Hammer_Face_Edit_Dialog|Face Edit mode]]
* [[Hammer_Face_Edit_Dialog|Face Edit mode]]
* [[Applying_Materials|Applying Materials to Solids]]
* [[Applying_Materials|Applying Materials to Solids]]
[[Category:Hammer Dialogs]]
[[Category:Hammer Dialogs]]

Latest revision as of 13:16, 23 August 2025

English (en)Translate (Translate)
A screenshot of the Texture Browser in action.

The Hammer Texture Browser allows you to find and select materials to apply to objects.

Texture List

This window contains a list of the currently available materials. Double-clicking a material in the list selects it as the current material and closes the Texture Browser.

Size

This scroll box allows you to set the displayed size of the textures. You can choose from 32x32, 64x64, 128x128, or 1:1 (full size).

Filter

This field allows you to type in a search string. Any texture that includes that string as part of its name will be displayed. You can specify more than one filter string. For example, if you specify the search string "sign 7," any texture with "sign" and "7" in its name will be displayed. Previous search strings can be accessed by clicking on the down arrow.

Only Used Textures

When selected, this sets the browser to display only those textures that have been used in your level. This helps you limit your use of different textures, and avoid using different textures for the same purpose. For games such as Half-Life Half-Life, textures are stored in the compiled maps. Reducing the number of textures will decrease the compiled map size. Fewer textures to load also means memory savings while playing the map in the game.

Keywords

This section appears to be a Valve-specific tool. From the list provided, you can select a specific keyword that will display only the textures used in the respective selection. For example, selecting "c17" will only show the textures used in City 17 style maps. It may have been used to group textures together for the sake of organization.

Mark

This button allows you to Mark (select) all objects or faces that contain the selected material. You can then adjust those faces as required (textures, scaling, lightmap resolution, etc).

If the texture Browser was evoked in Face Edit mode, Mark will highlight individual faces that contain the selected material, as if you selected each face by hand. Outside of Face Edit mode, entire objects that contain the material will be selected.

Replace

Opens the Replace Textures dialog with the currently selected material already in the Find field.

Open Source

Opens the VMT file that was used to generate the material currently selected. The file is opened with the Windows application associated with text files. You must have .VMT files associated in Windows with a text editor (such as Notepad) for this function to work correctly. To test this, double-click a .VMT file in an Explorer window and make sure it opens properly.

Opaque, Translucent, SelfIllum, EnvMask

Shows materials that contain these properties in their material definitions. Unchecking these options will hide any materials that have those properties.

Icon Property Description
Opaqueicon.png Opaque shows solid, non-transparent materials.
Translucenticon.png Translucent shows materials with the parameters $translucent or $alphatest.
Selfillumicon.png SelfIllum shows materials with the $selfillum parameter.
Basealphaenvmapmaskicon.png EnvMask shows materials with the $envmapmask parameter.

Show Errors

Shows materials that contain errors in their material definitions.

Icon Property Description
Erroricon.png Show Errors shows missing/broken materials.
Icon-Bug.pngBug:Sometimes it may provide incorrect information.
If you haven't found any errors, it's likely that the editor has mistaken something it doesn't understand for an error.

See also