Visibility hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Page Creation)
 
(Changed to use templates)
Line 1: Line 1:
'''visibility_hint''' is a point entity which is used to alter visibility in [[Half-Life: Alyx]] based mods.
{{Source2 point multi|visibility_hint|game1 = SteamVR Home|game2 = Half-Life: Alyx}} It is a point entity which is used to define visibility grid properties.


==Entity description==
==Entity description==
Line 7: Line 7:


== Properties ==
== Properties ==
;<code>Transform</code>
{{KV|Box Mins|coordinates|The minimum bounds for the volume, can be dragged out in the 3d view or entered manually.}}
* origin <[[float]] X> <[[float]] Y> <[[float]] Z>
:: location in the world
* angles <[[float]] X> <[[float]] Y> <[[float]] Z>
:: rotation in the world
* scales <[[float]] X(default 1)> <[[float]] Y(default 1)> <[[float]] Z(default 1)>
:: scale in the world
* Transform Locked <[[boolean]] (default 0)>
:: Lock the transform at its current value, preventing the transform of the node from being modified.
* Force Hidden <[[boolean]] (default 0)>
:: Visually hide the entity from the viewports. The Outliner pane will still list hidden entities.
* Editor Only <[[boolean]] (default 0)>
:: Entity is only displayed in Hammer and will not appear in game.


{{KV|Box Maxs|coordinates|The maximumbounds for the volume, can be dragged out in the 3d view or entered manually.}}


;<code>Box Mins <[[float]] X (default -64)> <[[float]] Y (default -64)> <[[float]] Z (default -64)></code>
{{KV|Hint Type|choices}}
: The minimum bounds for the volume, can be dragged out in the 3d view or entered manually
:*0: Use Low Resolution (64 unit grid) (default)
:*3: Use High Resolution
:*6: Z-axis split


;<code>Box Maxs <[[float]] X (default 64)> <[[float]] Y (default 64)> <[[float]] Z (default 64)></code>
: The maximum bounds for the volume, can be dragged out in the 3d view or entered manually


;<code>Hint Type <[[choices]]> </code>
{{KV Source 2 Transform}}
# Use Low Resolution (64 unit grid) (default)
# Use High Resolution
# Z-axis split


== See Also ==
[[SteamVR/Environments/Precomputed_Visibility | SteamVR Home - Precomputed Visibility Tutorial]]




[[Category:Entities]]
[[Category:Entities]]
[[Category:Half-Life:_Alyx_Entities]]
[[Category:Half-Life:_Alyx_Entities]]

Revision as of 00:46, 26 May 2020

Template:Source2 point multi It is a point entity which is used to define visibility grid properties.

Entity description

The visibility hint ostensibly affects visibility inside its bounds via the use of a voxel grid of variable resolution.

Todo: Test the use of this entity for its behavior.

Properties

Box Mins ([todo internal name (i)]) <coordinates>
The minimum bounds for the volume, can be dragged out in the 3d view or entered manually.


Box Maxs ([todo internal name (i)]) <coordinates>
The maximumbounds for the volume, can be dragged out in the 3d view or entered manually.


Hint Type ([todo internal name (i)]) <choices>
  • 0: Use Low Resolution (64 unit grid) (default)
  • 3: Use High Resolution
  • 6: Z-axis split


Source 2 Transform:

Origin (origin) <coordinates>
The world space origin of the entity.
Angles (angles) <angles>
The pitch, yaw, roll orientation of the entity.
Scale (scales) <vector>
The x, y, z scales of the entity. Not all entities can use this.
Transform Locked (transformLocked) <boolean>
Lock the transform at its current value, preventing the transform of the node from being modified. Only applies within Hammer.
Force Hidden (force_hidden) <boolean>
Visually hides the entity from the viewports. The Outliner pane will still list hidden entities.
Editor Only (editorOnly) <boolean>
Entity is only displayed in Hammer and will not appear in game.

See Also

SteamVR Home - Precomputed Visibility Tutorial