The VisArea is a shape object which is used to define indoor areas for culling and optimization purposes, as well as lighting.
Objects inside a VisArea won't be rendered from outside and vice versa, this can help with performance immensely.
VisAreas also can be setup to occlude certain lighting elements such as the Sun, which gives flexibility in setting up lighting for your indoor areas. Note that since CRYENGINE 3.6, AmbientColor is no longer supported and Environment Probes should be used.
With Portals you can cut holes inside the VisAreas to create an 'entrance' to the VisArea. Portals have to be smaller than the VisArea Shape but thick enough to protrude both the inside and outside of the VisArea, like a door.
You can enable and disable Portals via FlowGraph and you can have multiple Portals in one VisArea.
Parameter | Description |
---|---|
Height | Specifies how high the visarea is. |
DisplayFilled | Just for visibility in the editor this option defines if the area should be rendered as filled or not. |
AmbientColor | DEPRECATED (Use Environment Probes) |
AffectedBySun | Specifies if shadows from the world outside the visarea can travel inside. |
IgnoreSkyColor | If this option is turned off the ambient color (sky color in time of day window) is not used indoors. |
IgnoreGI | If true, Global Illumination won't be used inside this object. |
ViewDistRatio | Specifies how far the visarea is rendered. |
SkyOnly | Lets you choose to see only the skybox when you look outside the visarea. |
OceanIsVisible | Specifies if the ocean rendering should be visible inside the visarea. |
Portals are used to add an visual "entrance" into the Visarea and allows you to view and seamlessly transition in and out of a visarea.
Portals can be found in: RollupBar -> Area -> Portals
Parameter | Description |
---|---|
Height | Specifies how high the portal is. |
DisplayFilled | Just for visibility in the editor this option defines if the area should be rendered as filled or not. |
AmbientColor | DEPRECATED (Use Environment Probes) |
AffectedBySun | Specifies if shadows from the world outside the visarea can travel inside. |
IgnoreSkyColor | If this option is turned off the ambient color (sky color in time of day window) is not used indoors. |
IgnoreGI | If true, Global Illumination won't be used inside this object. |
ViewDistRatio | Specifies how far the visarea is rendered. |
SkyOnly | Lets you choose to see only the skybox when you look outside the visarea. |
OceanIsVisible | Specifies if the ocean rendering should be visible inside the visarea. |
UseDeepness | Specifies if the portal should have depth or if it should just be a plane. |
DoubleSide | Specifies if the portal should be working from both sides. |
Flow Graph -> Engine -> PortalSwitch