GR - Planet Meshes

Planet Object Use of Picnums
Planets in game are a defined unit entry (Default.unit) with a specific picnum value (Default.picnum).

This value creates a specific combination of a mesh file and a texture layer. There is only one common mesh file, but a wide variety of textures to represent the various planet types. Each of the textures is assigned as an override texture in the picnum data.

The planet mesh contains a series of submeshes for the planet, cloud layers and night side effect. The default planet mesh used in game contains 4 cloud layers.

To assign the picnum, ensure that the submesh IDs for the planet is assigned as follows:


 * Mesh 0 : Planet surface texture to Mesh0
 * Mesh 4 : day/night layer
 * Mesh 5-8 : Cloud layers are assigned to Mesh 5 and beyond according to their IDs.
 * Mesh 9: Planetary Rings

Day/Night Texture and Cloud Texture will be assigned dynamically in the engine.