Old Atlas Editor Code [Atlas Editing]

Collaboration diagram for Old Atlas Editor Code:


Detailed Description

Old, and hopefully soon to be deprecated editor code.

This is primarily a version of the original Atlas terrain mesher, kept until we finish a new and significantly better mesher.

Much of this functionality is exposed as console commands and thus does not show up here.


Classes

struct  AtlasGenStats
 Stat-tracking helper for AtlasOldMesher. More...
class  AtlasOldActivationHeightfield
 Adds activation level tracking functionality for AtlasOldHeightfield. More...
class  AtlasOldHeightfield
 An unsigned 16bit heightfield, used in situations where we need to manipulate heightfield information directly (ie, mesh generation, collision, and so forth). More...
class  AtlasOldMesher
 Helper class for generating and outputting chunk geometry for an Atlas terrain. More...
class  ChunkTriangleBufferGenerator
 This is a utility class to generate an optimized triangle buffer for the Atlas terrain collision engine. More...

Functions

static S32 lowestOne (const S32 x)
 Returns the bit position of the lowest 1 bit in the given value.

Variables

const U32 gAtlasColTreeDepth = 4
 Hardcoded size of per-chunk collision tree.
const U32 gMaxChunkTreeLevels = 256
 This is just for data tracking purposes in AtlasGenStats.
AtlasGenStats gOldChunkGenStats
 Stat tracking for the chunk generation process.


Function Documentation

static S32 lowestOne ( const S32  x  )  [inline, static]

Returns the bit position of the lowest 1 bit in the given value.

If x == 0, returns the number of bits in an integer.

E.g. lowest_one(1) == 0; lowest_one(16) == 4; lowest_one(5) == 0;

Note:
This needs to get moved to the math library.


Variable Documentation

Hardcoded size of per-chunk collision tree.

const U32 gMaxChunkTreeLevels = 256

This is just for data tracking purposes in AtlasGenStats.

256 is the deepest level, so we use that. If you wanted to raise this, feel free.

Stat tracking for the chunk generation process.