Category:Material System: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 2: Line 2:
In the Source Material System, the visible ''Surface'' of a Brush, Model, Sprite, etc. is defined by it's '''Valve ''Material'' Type''' ([[VMT]]) file. Breakable physics prop models also derive some additional material properties from their [[Prop Data]] configuration.
In the Source Material System, the visible ''Surface'' of a Brush, Model, Sprite, etc. is defined by it's '''Valve ''Material'' Type''' ([[VMT]]) file. Breakable physics prop models also derive some additional material properties from their [[Prop Data]] configuration.


Generally a '''Brush Material''' is 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.
* 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 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]].


* Each [[VMT]] 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 surface collision effects such as the sounds and decals to use when bullet hits the surface.
* 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 Textures]], [[Normal Maps|Normalmaps]], [[Heightmap]]s etc. [[VTF]]s must be [[VTF#Utilities|decompiled]] before they can be edited with an [[image editor]].


* 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 Textures]], [[Normal Maps|Normalmaps]], [[Heightmap]]s etc
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.


* See also '''[[UV map|UV Mapping]]
* See also '''[[UV map|UV Mapping]]


==Basics==
==Basics==

Revision as of 11:39, 5 April 2008

Introduction

In the Source Material System, the visible Surface of a Brush, Model, Sprite, etc. is defined by it's Valve Material Type (VMT) file. Breakable physics prop models also derive some additional material properties from their Prop Data configuration.

  • 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 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.

Generally a Brush Material refers to a VMT designed for use with World Brushes (stored in game_dir/materials/), and a Skin is a VMT designed to be mapped onto a particular Model (stored in game_dir/materials/models). 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

Advanced topics

Useful applications

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.