Difference between revisions of "Vtex compile parameters"

From Valve Developer Community
Jump to: navigation, search
(Vtex compile parameters. (Stub noved from Materials.))
 
m (Directed link.)
Line 75: Line 75:
  
 
Used for animated textures. Textures must be named as ''texture000'', ''texture001'', ''texture002'', etc. The ''startframe'' defines the beginning frame and the ''endframe'' defines the ending frame.
 
Used for animated textures. Textures must be named as ''texture000'', ''texture001'', ''texture002'', etc. The ''startframe'' defines the beginning frame and the ''endframe'' defines the ending frame.
 
  
  
Line 83: Line 82:
 
* [[Vtex]]
 
* [[Vtex]]
 
* [[Vtex CLI use]]
 
* [[Vtex CLI use]]
* [[Creating Materials]]
+
* [[Material Creation]]
 
* [[Shader Types and Parameters]]
 
* [[Shader Types and Parameters]]
 +
 +
  
 
[[Category: Tools]]
 
[[Category: Tools]]
 
[[Category: Material System]]
 
[[Category: Material System]]

Revision as of 18:07, 29 August 2007

Vtex can accept a list of additional compile parameters during its execution. These parameters are optional, but sometimes necessary to get a good result.

The list is written in the form of a simple text (.txt) document with the same name as the targa (.tga) image to compile, and it should be put in the same folder asit, namely in the SteamApps/username/sourcesdk_content/gamefolder/materialsrc/ folder, where gamefolder is the game folder of the current game (cstrike/dod/hl2/hl2mp).


Example usage from one of the files for the console background:

"nonice" "1"
"nolod" "1"
"nomip" "1"


List of parameters

Below is a list of Vtex compile parameters, in alphabetical order.


bumpscale

To do: Something to do with heightmaps, and possibly normal maps.


clamps, clampt

Do not allow the texture to wrap in the S or T coordinate space, respectively. This is most often used for sprites that are not tiled.


dxt5

Use DXT5 compression instead of full compression.


nocompress

Do not use compression on this texture. Useful for textures with fine gradation (like light halos).


nolod

Do not use lower quality versions of this texture in lower DirectX versions. Used for non-world graphics such as HUD art.


nomip

Do not make mip-levels for this texture. Used for materials like skyboxes and menu backgrounds.


nonice

Do not use NICE filtering on this texture’s lower mip-levels.


normal

To do: Possibly something to do with heightmaps and normal maps.


skybox

Used for compiling skyboxes. This assures the edges match between each facet.


startframe (integer), endframe (integer)

Used for animated textures. Textures must be named as texture000, texture001, texture002, etc. The startframe defines the beginning frame and the endframe defines the ending frame.


See also