O'Reilly logo

CryENGINE 3 Cookbook by Dan Tracy, Sean Tracy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Optimizing the levels with VisAreas and portals

A VisArea is used to define indoor areas that have their own ambient color. You can also create indoor areas without this entity; however you will not be able to achieve totally dark lighting conditions as the bright outdoor ambient lighting also affects indoor areas.

  • Objects inside a VisArea won't be rendered from outside
  • Helps to set up lighting inside rooms
  • With portals you can cut holes inside the VisAreas
  • Portals have to be smaller than the VisArea shape
  • You can enable/disable portals via FG
  • You can have multiple portals in one VisArea

Getting ready

Open any level and set up a small structure similar to the screenshot as shown next.

How to do it...

Lets create our own VisArea:

  1. On the RollupBar, go to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required