Geometry overview
Learn about the geometry data stored in an .stsdk file.
Read time 2 minutesLast updated 2 hours ago
An .stsdk file contains all the geometry data needed for real-time rendering, including:
- Indexed triangle 3D mesh data to represent the branch, leaf, frond, and other 3D geometry constructs.
- Separate meshes for each 3D level of detail (LOD). Note that there are per-vertex LOD hints utilized by the SpeedTree shaders to smooth LOD transitions and help prevent popping.
- The billboard geometry, which, if enabled on export, is stored as the last LOD mesh.
- Collision objects and bone data.
Vertex definitions
Vertex definitions are chosen at export from the Modeler’s Games Export dialog. Users can define their own vertex declarations using Lua (SpeedTree refers to these Lua scripts "vertex packers." See Vertex Packing for more information. The Modeler allows users to select different vertex declarations for a tree model’s 3D meshes, billboard geometry, and grass models, which often use lighter vertex definitions due to less complex wind.
CCore::Get3dVertexDecl()CCore::GetBillboardVertexDecl()SVertexDecl