PVS: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(PVS isn't just for players)
No edit summary
Line 5: Line 5:
For NPCs, a PVS is likely to be used to filter what other entities should be checked for line-of-sight. Additionally, inanimate entities will sometimes perform actions when a player enters their PVS.
For NPCs, a PVS is likely to be used to filter what other entities should be checked for line-of-sight. Additionally, inanimate entities will sometimes perform actions when a player enters their PVS.


A PVS consists of a [[visleaf]] or (more commonly) a collection of visleaves, which are created during a map's compile by [[Vvis|VVIS]].
A PVS consists of the [[visleaf]] that surrounds the entity and any other visleaves that are visible from it. See [[Optimization (Geometry)#Visibility]] for more information on how visleaves are created.


== See Also ==
== See Also ==

Revision as of 12:07, 27 February 2008

This acronym is somewhat disputed. It may stand for Potential Visibility Set, Potentially Visible Set, Potentially Viewable Set or many similar variations.

Every entity has a PVS. For players, it is the first line of defense over what geometry, entities and effects the game engine should render at any given point. Only objects within the current PVS - i.e. which are "potentially visible" - are considered for rendering, and it is cheap for the processor to decide whether or not this condition is being met.

For NPCs, a PVS is likely to be used to filter what other entities should be checked for line-of-sight. Additionally, inanimate entities will sometimes perform actions when a player enters their PVS.

A PVS consists of the visleaf that surrounds the entity and any other visleaves that are visible from it. See Optimization (Geometry)#Visibility for more information on how visleaves are created.

See Also