Character Textures and Materials: Difference between revisions
(Language tag updates) |
(Some formatting. Directed links.) |
||
Line 1: | Line 1: | ||
When you compile a model for the [[Source]] engine, the names of the textures ([[TGA|targa (.tga)]] images) are refered to by a material shader ([[VMT|.vmt]]) file, instead of being used directly. Here is an example of a simple [[VMT]] file: | |||
When you compile a model for the Source engine, the names of the | |||
<pre> | <pre> | ||
Line 9: | Line 8: | ||
</pre> | </pre> | ||
This file simply specifies the [[Shader Types and Parameters|shader type]] <code>(VertexLitGeneric)</code> and includes a link to the image source, which is in the compressed | This file simply specifies the [[Shader Types and Parameters|shader type]] <code>(VertexLitGeneric)</code> and includes a link to the image source, which is in the compressed [[VTF|.vtf]] image format. | ||
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. | 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. | ||
Using this structure, you can refer to the . | Using this structure, you can refer to the targa (.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. | ||
You can use the utility [[Vtex]] to convert targa images to our compressed .vtf format. For more information on how to create textures and use Vtex, see [[Material Creation]] and [[Vtex]]. | |||
{{otherlang:en}} {{otherlang:en:jp|Character Textures and Materials:jp}} | {{otherlang:en}} {{otherlang:en:jp|Character Textures and Materials:jp}} | ||
[[Category: Material System]] [[Category: Modeling]] |
Revision as of 16:53, 29 August 2007
When you compile a model for the Source engine, the names of the textures (targa (.tga) images) are refered to by a material shader (.vmt) file, instead of being used directly. Here is an example of a simple VMT file:
"VertexLitGeneric" { "$basetexture" "models/Humans/Female/naomi_facemap" }
This file simply specifies the shader type (VertexLitGeneric)
and includes a link to the image source, which is in the compressed .vtf image format.
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.
Using this structure, you can refer to the targa (.tga) files in the materialsrc/models
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 materials/models
tree.
You can use the utility Vtex to convert targa images to our compressed .vtf format. For more information on how to create textures and use Vtex, see Material Creation and Vtex.