A LodObject represents a LOD (level of detail) object generator. This generator creates geometry based on various parameters e.g. camera distance. The LodObject class provides access to the parameters of the dynamically defined levels. It is defined in the lib_lodobject.h
header file.
LodObject objects are an instance of Olod.
A LodObject object is a BaseObject and can be accessed like any other object. See BaseObject Manual.
LodObject objects are created with the usual tools, see Entity Creation and Destruction Manual (Classic).
The standard parameters of a LodObject can be obtained and changed with C4DAtom::SetParameter()/ C4DAtom::GetParameter(). The parameter IDs are defined in olod.h
.
A LodObject object handles multiple levels. The current level is used to define the geometry it should create.
Each level contains multiple parameters that configure that level. The DescID for these parameters can be obtained with these functions.
In every mode a level defines various display parameters:
The IDs of the shading modes and styles are defined in tdisplay.h
.
In "Manual Groups" mode a list of objects can be accessed:
In "Simplify" mode these settings are available:
The null display mode setting IDs are defined in onull.h
.
The dirty checksum of levels and the cache can be obtained with: