Visleaf: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) No edit summary |
TomEdwards (talk | contribs) (pictures) |
||
Line 1: | Line 1: | ||
[[Image:Opt_pvs_blank.jpg|thumb|A sample scene with two rooms.]] | |||
[[Image:Opt_pvs_good.jpg|thumb|The default visleaf structure for the above scene. Note how leaf 2 cannot see leaf 3.]] | |||
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'''. | 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'''. | ||
Revision as of 12:35, 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
- Visleaf optimisation: Hint brushes
- Visleaves calculation: Optimization (Geometry)#Visibility
- Controlling Geometry Visibility and Compile Times