Character Textures and Materials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (Nesciuse moved page Character Textures and Materials/en to Character Textures and Materials without leaving a redirect: Move en subpage to basepage)
 
(35 intermediate revisions by 19 users not shown)
Line 1: Line 1:
[[Category:Material System]][[Category:Modeling]]
{{LanguageBar}}
When you compile a model for the Source engine, the names of the texture files (.TGA files) are used to reference a material shader (.VMT) instead of the original image file. Here is an example of a simple .VMT file:


<pre>
"VertexLitGeneric"
{
    "$basetexture" "models/Humans/Female/naomi_facemap"
}
</pre>


This file simply specifies the shader type <code>(VertexLitGeneric)</code> and includes a link to the image source, which is in the compressed .VTF image format.
For an overview of materials and their creation, see [[:Category:Material System]].


When using the XSI Mod Tool to produce models that will run in the Source engine, place your textures into the Source SDK directories provided when you installed the SDK. See SDK Directory Structure for more information on these directories.
== QC commands ==


Using this structure, you can refer to the .TGA files in the <code>materialsrc/models</code> tree when you texture the model in XSI. When you compile or load the model into the Source engine or tools, it will refer to the .VMT files in the <code>materials/models</code> tree.
*[[:Category:QC_Commands#Textures]]


You can use the utility <code>vtex.exe</code> to convert .TGA files to our compressed .VTF format. For more information on how to create textures and use Vtex, see Creating Materials.
== Shaders ==
 
*[[VertexLitGeneric]]
*[[Eyes]]
*[[Teeth]]
 
== Shader parameters ==
 
*[[$phong]]
*[[$flesh]]
*[[$halflambert]]
*[[$model]]
*[[$selfillum]]
 
[[Category:Modeling]]
[[Category:Material System]]

Latest revision as of 05:23, 12 July 2024

English (en)日本語 (ja)Translate (Translate)


For an overview of materials and their creation, see Category:Material System.

QC commands

Shaders

Shader parameters