Visleaf: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
A '''visleaf''', or merely a leaf, is one of many visleaves —think of them as sections— in which a map is divided during the compiling process. Each leaf is a volume that contains a section of geometry that is drawn together. When '''any''' part of a leaf is visible from the current leaf, '''all of the geometry in the leaf is considered for rendering by the engine'''. Calculating which leaves can see which is a large portion of [[Vvis|VVIS]]' purpose.
A visleaf, or a leaf, is a type of volume in a map created by the visibility compile tools. When '''any part''' of a leaf is visible from '''any part''' of the current leaf, '''the entire contents of that leaf are considered for rendering'''.


You can view the current leaf in the engine by typing <code>mat_leafvis 1</code> at the developer console. A red wireframe box will be drawn showing the current leaf. As you move around in the level, the box will redraw each time a new leaf is entered. Another way of visualizing visleaves is to use the [[glview]] command-line tool.
You can view the current leaf in the engine by submitting <code>mat_leafvis 1</code> to the console. A red wireframe box will be drawn, and will redraw each time a new leaf is entered.
 
Leaves can also be examined from the desktop with the [[glview]] tool.


==See also==
==See also==


*Visleaf optimisation: [[Hint brush]]es
*Visleaf optimisation: [[Hint brush]]es
*How visleaves are calculated: [[Optimization (Geometry)#Visibility]]
*Visleaves calculation: [[Optimization (Geometry)#Visibility]]
*[[Controlling Geometry Visibility and Compile Times]]
*[[Controlling Geometry Visibility and Compile Times]]


[[Category:Level Design]]
[[Category:Level Design]]
[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 12:15, 4 January 2008

A visleaf, or a leaf, is a type of volume in a map created by the visibility compile tools. When any part of a leaf is visible from any part of the current leaf, the entire contents of that leaf are considered for rendering.

You can view the current leaf in the engine by submitting mat_leafvis 1 to the console. A red wireframe box will be drawn, and will redraw each time a new leaf is entered.

Leaves can also be examined from the desktop with the glview tool.

See also