Explicit OBJ Height RFC
From X-Plane Wiki
Revision History 2/19/12 - Update 2/19/11 - Revision for DSFs 4/15/10 - Initial Draft
Status: Implemented in X-Plane 10.0
X-Plane places OBJs into the scenery system by aligning the origin of the OBJ model with a point on the surface of the terrain mesh whose latitude and longitude match coordinates specified in a DSF file. The elevation is a function of the underlying base DSF, which may not come from the same DSF as the OBJ itself.
This can present a problem for authors who are attempting to model natural phenomena with OBJs, or who are converting real-world 3-d data that is calibrated to a specific datum. The author cannot know what offset X-Plane will use, and in fact the offset may change.
This extension addresses that problem. A DSF object may have either 3 or 4 coordinates per object. If the object has 3 coordinates, they are interpreted in the current manner: longitude, latitude, rotation. If a fourth coordinate is present, it is interpreted as an MSL elevation, and X-Plane sets this explicit location as the object's origin, with no terrain height testing.
- Note: this extension is not meant to allow an OBJ to be used multiple times at multiple heights for "constructive" modeling; it is only meant to provide calibration for large complex models that refer to real world entities with real locations.
- Note: this extension changes an authors set of problems when interacting with a base mesh; it does not completely alleviate them. Authors using explicit height do not have to worry about multiple explicitly elevated objects being misaligned, but the author does have to worry that the base mesh and object may not interact correctly.