While effective, creating these bounding boxes adds extra work for add-on creators. It also means that meshes end up getting incorrectly flagged as translucent for purposes of depth sorting. I propose the addition of two new ssc properties to solve the problem of mesh placement without resorting to adding bounding boxes:
Code: Select all
# defaults to true for backward compatibility
NormalizeMesh <boolean>
# defaults to 1
MeshScale <number>
When an object has NormalizeMesh false specified, no automatic scaling and recentering of the mesh is done. The add-on creator must make sure to set the Radius of the object to a value large enough to contain it.
MeshScale exists to convert the internal units of the model into kilometers as required by Celestia. For example, it is much more convenient to build a spacecraft in a system where the unit is one meter instead of one kilometer. For such a model, you would specify the MeshScale as 0.001.
Neither of these additions would affect backward compatibility.
--Chris