This is the documentation for Enlighten.

class Enlighten OutputOctreeBuilder

class Enlighten::OutputOctreeBuilder

    └>Enlighten::PrecompVoxelOctreeVolume
        └>Enlighten::PrecompVoxelOctree

Output octree builder.

Functions

Variables

Name Description
Geo::v128 m_Basis[3]

Basis vectors of this volume.

Geo::v128 m_Origin

Origin of this volume.

Geo::u32 m_VoxelDepth

Depth of the voxel.

float m_VoxelSize

Size of this voxel.

Geo::Matrix m_VoxelToWorld

Matrix transform from voxel space to world space.

Geo::Matrix m_WorldToVoxel

Matrix transform from world space to voxel space.


void Enlighten::OutputOctreeBuilder::BuildOctree


public: void BuildOctree
(
    const Geo::GeoFileString & name,
    Geo::GeoArray< PrecompOctreeNode > & serialised,
    const SerialisedOctreeVolume & octree
)


Builds the output octree.


Geo::GeoNonAABoundingBox Enlighten::PrecompVoxelOctreeVolume::GetBoundingBox


public: Geo::GeoNonAABoundingBox GetBoundingBox() const


Gets the bounding box.


static Geo::v128 Enlighten::PrecompVoxelOctreeVolume::GetSubtreeOffset


public: Geo::v128 GetSubtreeOffset
(
    const PrecompVoxelOctreePath & subtreePath,
    Geo::u32 globalDepth,
    float voxelSize
)


Gets the offset of the origin of a subtree relative to the entire octree.


PrecompVoxelId Enlighten::PrecompVoxelOctree::GetVoxel


public: PrecompVoxelId GetVoxel
(
    const PrecompVoxelOctreePath & path
) const


Gets the voxel at the given path.


PrecompVoxelId Enlighten::PrecompVoxelOctree::GetVoxel


public: PrecompVoxelId GetVoxel
(
    const PrecompVoxelOctreePath & path,
    const Geo::u32 octant
) const


Gets the voxel at the given path and octant.


Geo::v128 Enlighten::PrecompVoxelOctreeVolume::GetVoxelPosition


public: Geo::v128 GetVoxelPosition
(
    const PrecompVoxelId & voxel
) const


Gets the position of the given voxel.


Geo::v128 Enlighten::PrecompVoxelOctreeVolume::GetVoxelPosition


public: Geo::v128 GetVoxelPosition
(
    const PrecompVoxelOctreePath & path,
    const Geo::u32 octant
) const


Gets the position of the given voxel.


Geo::v128 Enlighten::PrecompVoxelOctreeVolume::GetVoxelSize


public: Geo::v128 GetVoxelSize
(
    const PrecompVoxelOctreePath & path,
    const Geo::u32 octant
) const


Gets the size of the given voxel.


OutputOctreeBuilder& Enlighten::OutputOctreeBuilder::operator=


public: OutputOctreeBuilder & operator=
(
    const OutputOctreeBuilder &
)


not assignable


Enlighten::OutputOctreeBuilder::OutputOctreeBuilder


public: OutputOctreeBuilder
(
    const PrecompVoxelOctreeVolume & volume,
    Geo::u32 rayCount,
    float cullingThreshold,
    const PrecompSystemGeometry *const * systems,
    Geo::s32 numSystems,
    RayTraceContextWithMaterials * rtWorld
)


Constructor.


Enlighten::PrecompVoxelOctree::PrecompVoxelOctree


public: PrecompVoxelOctree
(
    const Geo::u32 voxelDepth
)


Constructor.


Enlighten::PrecompVoxelOctreeVolume::PrecompVoxelOctreeVolume


public: PrecompVoxelOctreeVolume
(
    const Geo::u32 voxelDepth,
    const Geo::v128 origin,
    const float voxelSize
)


Constructor.


Enlighten::PrecompVoxelOctreeVolume::PrecompVoxelOctreeVolume


public: PrecompVoxelOctreeVolume
(
    const Geo::u32 voxelDepth,
    const Geo::v128 origin,
    const Geo::v128 basis,
    const float voxelSize
)


Constructor.