Func viscluster

From Valve Developer Community
Revision as of 02:08, 6 July 2018 by Ott (talk | contribs) (Please verify claims. Func_viscluster is not a very well-understood entity and the bullet points are intended to give a concrete list of facts to refer to when understanding its behavior. I can confirm in the Garry's Mod engine.)
Jump to navigation Jump to search

Template:Otherlang2

Template:Base brush ep2 It allows you to manually tell VVIS that the leaves inside its volume can all see each other and should be treated as one unit. This is useful in large open areas where visibility calculations would otherwise take a very, very long time to complete. It should be textured with tools\toolstrigger.

  • A viscluster will make in-game performance worse.
  • A viscluster will make compile times faster.
  • A viscluster will reduce the "numportals" count in the compile log.
  • A viscluster will not change the number of or location of leaves shown by mat_leafvis 1.
  • A viscluster will change the number of and location of leaves shown with Hammer's "load portal file" option.
  • A viscluster will appear to merge the leaves shown with Hammer's "load portal file" option.
  • If a single leaf in a viscluster is visible, all of the leaves in the viscluster will be drawn, behaving exactly as if they are merged like Hammer shows them.


Template:Intent

Note.pngNote:This entity does not change the location of or number of leaves in a map. See Visibility optimization for how to do this.
Warning.pngWarning:The brush should not cross the surface of a water material or an areaportal. If it really does need to be used over water, bring the brush level with the surface of the water on one side, and then create a second, separate func_viscluster on the other side. Never allow a func_viscluster brush to cross a water plane, or very strange things happen.
Icon-Bug.pngBug:A viscluster will appear to be merging leaves inside its volume together in Hammer's visleaf preview (Map > Load Portal File). While in-game visibility will behave as such, debug commands still show the leaves intact!  [todo tested in ?]

External links