The Nebula Device 3: InternalGraphics::VisibilityCell Class Reference

The Nebula Device 3

InternalGraphics::VisibilityCell Class Reference

#include <visibilitycell.h>


Detailed Description

Hierarchies of VisibilityCell objects group graphics entities by spatial relationship. They are the key class for efficient visibility queries. An application may derive specialized subclasses of VisibilityCell which must only adhere to the following 2 simple rules:

  • if the VisibilityCell object is fully visible, all child VisibilityCells and all Entities attached to the VisibilityCell are guaranteed to be visible
  • if the VisibilityCell object is fully invisible, all child VisibilityCells and all Entities attached to the VisibilityCell are guaranteed to be invisible

Todo:
: need to handle extra shadow bounding box

: statistics and profiling

: need to add visibility depending on LOD

: multithreaded visibility link update?

: add dirty handling to visibility links (e.g. don't need to update links between static lights and static objects)

(C) 2010 Radon Labs GmbH