|
An object that provides a "window" into a zone, allowing a viewer to see what's rendered in the zone. More...
Public Member Functions | |
bool | isExteriorPortal () |
Test whether the portal connects interior zones to the outdoor zone. | |
bool | isInteriorPortal () |
Test whether the portal connects interior zones only. | |
Public Attributes | |
Zoning | |
bool | backSidePassable |
Whether one can view through the back-side of the portal. | |
bool | frontSidePassable |
Whether one can view through the front-side of the portal. | |
Static Public Attributes | |
static bool | isRenderable |
Disables rendering of all instances of this type. | |
static bool | isSelectable |
Disables selection of all instances of this type. |
An object that provides a "window" into a zone, allowing a viewer to see what's rendered in the zone.
This is one of two objects used by the manual culling system Torque 3D provides, the other being Zone. When a Zone is placed in a level, all rendering within the zone is hidden from view when the camera is outside it. When inside, all rendering outside the zone is hidden. This is an excellent way to optimize large levels and complex geometry.
You can attach a Portal a zone. This allows you to view what is rendered in the Zone (or what is rendered outside if you are in the zone), like a window. The larger the Portal, the more you can see through a zone.
bool Portal::isExteriorPortal | ( | ) |
Test whether the portal connects interior zones to the outdoor zone.
bool Portal::isInteriorPortal | ( | ) |
Test whether the portal connects interior zones only.
Whether one can view through the back-side of the portal.
Whether one can view through the front-side of the portal.
bool Portal::isRenderable [static] |
Disables rendering of all instances of this type.
Reimplemented from Zone.
bool Portal::isSelectable [static] |
Disables selection of all instances of this type.
Reimplemented from Zone.