Category:Material System: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Category:Material System/en to Category:Material System without leaving a redirect: Move en subpage to basepage)
 
(36 intermediate revisions by 17 users not shown)
Line 1: Line 1:
==Introduction==
{{LanguageBar}}
In the Source Material System, the visible ''Surface'' of a Brush, Model, Sprite, etc. is defined by it's '''Valve ''Material'' Type''' ([[VMT]]) file. The Material is [[UV map|UV mapped]] onto the object's ''Geometry'' to specify the appearance of its Polygonal Surfaces. Other Physical Properties (which are not limited to the object's ''Surface'') are handled by the [[Vphysics & Qphysics|Physics System(s)]]. For example: Breakable objects derive some additional "material" properties from their [[propdata]] configuration.
__NOTOC__


* Each [[VMT]] or '''Valve ''Material'' Type''' file defines which [[Shader]] and [[Shader Parameters]] to use to render the textures, which [[VTF]] textures to use to 'paint the polygons', and a number of [[$surfaceprop|surface collision effects]] such as the sounds and decals to use when bullet hits the surface. [[VMT]] files are uncompiled scripts that can be tweaked and edited with any [[text editor]].
{{category header|background-color=#E0E0E0|border-color=lightgray}}
{{category newcolumn|rowspan=6|width=50%|background-color=#F7F7F7|border-color=lightgray}}


* Each [[VTF]] or '''Valve ''Texture'' Format''' file, is basically a rasta image file or pixel-map. Most material surfaces will use more than one [[VTF]]; eg in addition to the ([[$basetexture]]) colormap or diffusemap , a normalmap, specularmap, [[:Category:VMT Texture Reference|etc]]. Specialist types of VTF include [[Animated Texture]]s, [[Normalmap]]s, [[Heightmap]]s etc. [[VTF]]s must be [[VTF#Utilities|decompiled]] before they can be edited with an [[image editor]].
== Terms ==
* [[VMT|Valve Material Type]] (<code>.vmt</code>)
* [[Valve Texture Format]] (<code>.vtf</code>)
* [[Half-Life Wads]] (<code>.wad</code>)
* [[VMAT|Source 2 Vmats]] (<code>.vmat</code>)
* [[Texture]]
* [[Shader]]


Generally a '''Brush Material''' refers to a '''[[VMT]]''' designed for use with World [[Brushes]] (stored in <code>game_dir/materials/</code>), and a '''Skin''' is a '''[[VMT]]''' designed to be mapped onto a particular [[Model]] (stored in <code>game_dir/materials/models</code>). A '''Texture''' is a '''[[VTF]]''' file, used by either a ''Brush Material'' or a ''Skin'' - but rarely both. Usually VTFs are stored in the same folder as the VMTs that use them.
== Basics ==


==Basics==
*'''[[Creating a Material]]'''
* [[Material Creation|Creating a Texture using VTFEdit]] - The basics of VTF creation.
* [[Material optimization]]
* [[Materials for models|Materials for Models]] - These are slightly different to Brush Materials.
* [[Decals]]
* [[Materials for Brush Displacements]] - These are slightly different to ordinary Brush Materials.
* [[Skybox (2D)#Creating a 2D Skybox|Skybox (2D)]]
* [[Materials for Sprites]] - Slightly different again. <!-- please link this to available info if you know where to find it! -->
* [[VTFEdit]], [[VMT Editor]] and [[VTF Shell Extensions]]
* [[Decals]] - How to make decal and overlay materials.
* <code>[[Patch]]</code>
* [[Skybox (2D)]] - How to use and make the cubic materials used for the sky.
* [[Animated Texture]]s. <!-- please link this to available info if you know where to find it! -->


==Advanced topics==
== Shader Commands ==
* [[Material Proxies]] - Advanced materials that can vary based on changing data.
* [[Water Shader]] - Description of the special water shader.
* [[Half-Life 2 Shader Fallbacks]] - Fallback settings of Half-Life 2 shaders on different platforms.
* [[DirectX Versions]] - How shaders are rendered on different versions of DirectX.


==Useful applications==
*[[:Category:Shaders|List of Shaders]]
* See [[:Category:Tools]] and [[:Category:Third Party Tools]]
*[[:Category:List of Shader Parameters|List of Shader Parameters]]


{{category newcolumn|rowspan=1|width=50%|background-color=#FBF7EA|border-color=#E4DCCD}}
== Common Shader Effects ==
=== Lighting ===
*[[Bump map]]
*[[Parallax mapping]]
*[[Half Lambert]]
=== Reflection ===
*[[Phong]]
*[[Specular]]
*[[Water Shader|Water]] / [[Refract]]
=== Blending ===
* <code>[[WorldVertexTransition]]</code>
== Troubleshooting ==
* [[Fixing DXT Green Tint Compression]]
== Proxies ==
*[[Material Proxies]]
*[[List Of Material Proxies]]
*[[material_modify_control]]
*[[Procedural Materials]]
{{category end}}
[[Category:Modding]]
[[Category:Modding]]

Latest revision as of 15:43, 12 July 2024

Subcategories

This category has the following 5 subcategories, out of 5 total.

G

R

S

Pages in category "Material System"

The following 133 pages are in this category, out of 133 total.