OcclusionVolume
Engine/source/T3D/occlusionVolume.h
A volume in space that blocks visibility.
Public Types
Parent
Protected Types
SilhouetteExtractorType
Protected Attributes
Silhouette extractor when using perspective projections.
bool
Whether the volume's transform has changed and we need to recompute transform-based data.
Protected Functions
_renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)
Render a visualization of the volume.
Public Functions
buildSilhouette(const SceneCameraState & cameraState, Vector< Point3F > & outPoints)
Build a world-space silhouette polygon for the object for the given camera settings.
DECLARE_CATEGORY("3D <a href="/coding/class/classscene/">Scene</a>" )
DECLARE_DESCRIPTION("A visibility blocking volume." )
bool
onAdd()
Called when the object is added to the sim.
setTransform(const MatrixF & mat)
Sets the Object -> World transform.
Public Static Functions
Detailed Description
A volume in space that blocks visibility.
Public Types
typedef ScenePolyhedralSpace Parent
Protected Types
typedef SilhouetteExtractorPerspective< PolyhedronType > SilhouetteExtractorType
Protected Attributes
SilhouetteExtractorType mSilhouetteExtractor
Silhouette extractor when using perspective projections.
bool mTransformDirty
Whether the volume's transform has changed and we need to recompute transform-based data.
Vector< Point3F > mWSPoints
World-space points of the volume's polyhedron.
Protected Functions
_renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)
Reimplemented from: ScenePolyhedralObject
Public Functions
OcclusionVolume()
buildSilhouette(const SceneCameraState & cameraState, Vector< Point3F > & outPoints)
Reimplemented from: SceneObject
DECLARE_CATEGORY("3D <a href="/coding/class/classscene/">Scene</a>" )
DECLARE_CONOBJECT(OcclusionVolume )
DECLARE_DESCRIPTION("A visibility blocking volume." )
onAdd()
Reimplemented from: ScenePolyhedralObject
setTransform(const MatrixF & mat)
Reimplemented from: SceneSpace