PVS: Difference between revisions
MossyBucket (talk | contribs) (Expanded the console commands section.) |
MossyBucket (talk | contribs) |
||
Line 9: | Line 9: | ||
== Console commands == | == Console commands == | ||
;[[r_novis]]: | ;[[r_novis]]: | ||
:Toggle the PVS on/off. (Cheat.) | :Toggle the PVS handling on/off. (Cheat.) | ||
;[[r_lockpvs]]: | ;[[r_lockpvs]]: | ||
:Allows you to lock the PVS. (Cheat.) | :Allows you to lock the PVS. (Cheat.) | ||
Line 15: | Line 15: | ||
:If set, notarget will cause entities to never think they are in the pvs | :If set, notarget will cause entities to never think they are in the pvs | ||
;[[Test_RandomizeInPVS]] | ;[[Test_RandomizeInPVS]] | ||
== See Also == | == See Also == |
Revision as of 15:43, 31 January 2011
A PVS or Potentially Visible Set is used as a somewhat abstract filter by NPC Sensing and the clientside Rendering Engine when deciding which parts of the World are visible to an Entity during gameplay.
A PVS is the specific set of Visleafs which are visible from a specific Visleaf; every Visleaf has it's own PVS. Each Visleaf's PVS is calculated and recorded during VVIS compiling, and cannot be changed at runtime.
An Entity's PVS (including the Player's PVS) is the PVS of whichever Visleaf the Entity is currently in. As every part of a BSP World is divided into exclusive Visleafs, any Entity will always be located in one particular Visleaf or another. If the Entity moves around the World, it will probably move from one Visleaf to another. Each time it moves to a different Visleaf, it will 'inherit' a different PVS from its current Visleaf.
A PVS test is a simple look-up to determine which Visleafs should be tested against this Entity's Viewcone.
Console commands
- r_novis
- Toggle the PVS handling on/off. (Cheat.)
- r_lockpvs
- Allows you to lock the PVS. (Cheat.)
- sv_strict_notarget
- If set, notarget will cause entities to never think they are in the pvs
- Test_RandomizeInPVS
See Also
- Visleaf and Ralph van Hoorn's excellent explanation of visleafs.
- NPC_Sensing includes PVS and other vis-tests such as Viewcone and LOS tests.
- VVIS and Controlling Geometry Visibility and Compile Times.
- PAS (Potentially Audible Set).