Mat wireframe: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(caption)
(I'm surprised mat_wireframe wasn't described better than basically "Lets you see through walls." in the wiki.)
Line 1: Line 1:
'''Mat_wireframe''' is a [[console]] command.
[[Image:Mat_wireframe1.jpg|thumb|Mat_wireframe set to 1. Note the tree is being drawn by the engine even though it is behind the wall. This is an example of [[visibility]] issues.]]
It will render wireframe over the normal in-game rendering. This shows how [[brush]] faces are being chopped. The wireframe will also render for objects that are blocked by other objects, which can help with [[visibility]] optimization.


Mat_wireframe is a cheat.
A [[Developer Console|console]] variable that (when active) renders a wireframe that shows how much of the game world is being rendered, and how.
[[Image:Mat_wireframe1.jpg|thumb|mat_wireframe set to 1. Note the tree is being drawn by the engine even though it is behind the wall. This is an example of [[visibility]] issues.]]
 
It has four settings (0-3).
 
Model polygons are always outlined in cyan.
 
;mat_wireframe 0:Do not display any wireframes.<br>
;mat_wireframe 1:Outlines all rendered [[world brush]] polygons (in pink). (This setting displays hidden polygons as well.)
;mat_wireframe 2:Outlines all visible [[world brush]] polygons (in green).
;mat_wireframe 3:Outlines all rendered [[visleafs]] (in pink).
 
This variable is a [[sv_cheats|cheat]].
 
 
== See also ==
 
* [[Optimization (level design)]]
* [[visibility optimization]]
* [[areaportal]]
 
 
[[Category:Console variables]]

Revision as of 13:25, 31 January 2011

Mat_wireframe set to 1. Note the tree is being drawn by the engine even though it is behind the wall. This is an example of visibility issues.

A console variable that (when active) renders a wireframe that shows how much of the game world is being rendered, and how.

It has four settings (0-3).

Model polygons are always outlined in cyan.

mat_wireframe 0
Do not display any wireframes.
mat_wireframe 1
Outlines all rendered world brush polygons (in pink). (This setting displays hidden polygons as well.)
mat_wireframe 2
Outlines all visible world brush polygons (in green).
mat_wireframe 3
Outlines all rendered visleafs (in pink).

This variable is a cheat.


See also