Celestia/3D Models
< CelestiaIntroduction
In addition to its internally defined spherical objects, Celestia can use 3D models to display bodies with complicated shapes.
Usage in Celestia
A 3D model will be displayed when Celestia encounters the Mesh directive in one of its catalog files. For example,
Mesh "file.3ds"
If a Texture declaration is included in the entry for the same object, that texture image will replace all diffuse material texture images specified in the model file.
Model Types
Celestia can display three different types of 3D model files.
3DS
Originally developed by the authors of 3D Studio Max, the .3DS binary file format is used by many different software packages. Model files usually can be created in this format by choosing it in the "Export" menu of your favorite 3D modeling program.
CMS
CMS Model Files are unique to Celestia. They use a simple textual format. The CMS format is deprecated.
CMOD
CMOD Model Files are unique to Celestia. They have both binary and textual forms. The format was designed for efficient use by OpenGL code. When drawing a CMOD model, Celestia's framerate is about 1.5-2x as fast as when drawing the equivalent 3DS model.
A 3DS to CMOD conversion program is available. CMOD export scripts are available for Anim8or and Blender.
Limitations
- Models in Celestia do not (yet?) cast shadows on themselves or on other objects.
- Translucent model surfaces are not properly depth sorted. Some are drawn correctly, but some are not.
- DSC Nebula Meshes are not depth sorted at all. They always are drawn in the order that Celestia reads them.