This article's documentation is for anything that uses the Source engine. Click here for more information.

Source VMT Editor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Interface: added more information)
m (→‎See also: Unicodifying, replaced: See Also → See also)
 
(45 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{cleanup}}
{{Source topicon}}
{{stub}}
= Overview =
The Material Editor is an engine tool available in Source 2007 and later. This tool allows you to edit VMT properties while in-game with via a simplified interface that is both user friendly and real time. This heavily simplifies the material editing process as well. Previously users would have to edit the vmt outside of the engine, then go back in-game and reload all materials, or the current vmt. To use it, run your game or mod with -tools -nop4 on the command line and select 'Material Editor' from the Tools menu. This tool is used to edit the material properties with the added advantage of a preview.


{{todo| Find out if material editor supports custom shaders?}}
{{Distinguish|VMT Editor}}
{{Note| Make sure that sv_lan is set to 1 in the console located in the lower-left corner (sv_lan 1) if your game is MP based.}}  


{{Warning|you need to use the command: "toolload vmt" in console for {{as}}[[Alien Swarm]] to load}}
[[File:MaterialEditor.jpg|thumb|400px|right|The VMT Editor]]


= Interface =
The '''VMT Editor''' is an [[:Engine tools|engine tool]] originally released with the {{src07|2}} engine branch. This tool allows you to edit [[VMT]] properties while in-game with via a simplified interface that is both user friendly and real time. This heavily simplifies the material editing process as well. Previously users would need to edit the VMT outside of the engine, then go back in-game and reload all materials, or the current vmt. To use it, run your game or mod with {{Code|[[-tools]] [[-nop4]]}} on the command line and select '''Material Editor''' from the Tools menu. This tool is used to edit the material properties with the added advantage of faster, more robust interface than the typical text editor.
[[File:MaterialEditor.jpg]]


The first viewport on the left is the vmt properties that you could set. The lower right viewport is the vmt preview, and bove that is the engine viewport. When you are editing, the vmt properties viewport will identify all of the avalable parameters as well as what type of data that could be inputted.
{{Note|This editor supports custom shaders, including ones from the [[:Source_shader_editor|Source Shader Editor]]!}}


{{Note| Make sure that {{Command|sv_lan}} is set to 1 in the console located in the lower-left corner ({{Command|sv_lan|1}}) if your game is MP based.}}


== Parameters ==
{{clr}}


see [[:Category:List of Shader Parameters|List of Shader Parameters]] for more details
== See also ==
* [[:Category:VMT Editor|VMT Editor Documentation]]
* [[Material]]


[[Category:Engine Tools]]


== Data types ==
[[Category:VMT Editor]]
 
{{todo|add more information}}
 
*'''bool''' "short for boolean" in which 0 = false and 1 = true
*'''string''' file path (ex. brick\brickfloor001a.vtf) {{warning|you cannot load vtf files not currently in the game or mod directory, make sure they are in before making the materials}}
*'''color''' <color255 + int> (ex. 97 11 255 255)
*'''float'''
*'''int''' "short for integer" (ex. 56)
*'''matrix''' written in binary  ( 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 )
 
== To Create a new material ==
 
click file -> new , then begin editing
 
see [[Material]] for editing information
 
select the type of shader to be used
 
see [[:Category:List of Shaders|List of Shaders]]
 
{{todo|Finish Tutorial}} 
 
== Loading a material ==
 
{{bug|Complex material designs can crash the editor when loading}}
 
click file -> Open..., find the file located in the mod or game directory loaded
 
 
== Saving a material ==
 
{{bug|Somtimes settings may not stick, keep a text editor open to copy your settings over}}
 
click file -> save as..., give the material a name, and save in the mod or game directory loaded
 
 
 
== See Also ==
*[[Material]]
*[[Valve Texture Format]]
*[[Engine tools]]
 
[[Category:Tools]]

Latest revision as of 13:09, 8 January 2024

Not to be confused with VMT Editor.
The VMT Editor

The VMT Editor is an engine tool originally released with the Source 2007 Source 2007 engine branch. This tool allows you to edit VMT properties while in-game with via a simplified interface that is both user friendly and real time. This heavily simplifies the material editing process as well. Previously users would need to edit the VMT outside of the engine, then go back in-game and reload all materials, or the current vmt. To use it, run your game or mod with -tools -nop4 on the command line and select Material Editor from the Tools menu. This tool is used to edit the material properties with the added advantage of faster, more robust interface than the typical text editor.

Note.pngNote:This editor supports custom shaders, including ones from the Source Shader Editor!
Note.pngNote: Make sure that sv_lan is set to 1 in the console located in the lower-left corner (sv_lan 1) if your game is MP based.

See also