Portals and Line of Sight...
by Jason Parker · in Torque Game Engine · 01/18/2009 (6:34 am) · 0 replies
Would anyone be able to point me in the right direction in the SDK to look at and learn how Line of Sight figures into whether a portal is active or not?
It seems that only the geometry attached to the interior of which a given portal is attached will block the Line of Sight to the portal. This effectively means that a portal between the outside and inside of an interior is active unless you move to a position where that interior's geometry blocks it. Other interiors, and DTS objects, do not affect it.
The idea here is to only render the zone if the player can *actually* see into it. And prevent it otherwise, such as with a door being closed, or other buildings being in the way in large city areas.
It seems that only the geometry attached to the interior of which a given portal is attached will block the Line of Sight to the portal. This effectively means that a portal between the outside and inside of an interior is active unless you move to a position where that interior's geometry blocks it. Other interiors, and DTS objects, do not affect it.
The idea here is to only render the zone if the player can *actually* see into it. And prevent it otherwise, such as with a door being closed, or other buildings being in the way in large city areas.
About the author