Howto:Add shared models manually: Difference between revisions

Jump to navigation Jump to search
(→‎.STG file format: Updates to be consistent with Docs/README.scenery)
Line 63: Line 63:


In brief,the format is :
In brief,the format is :
  OBJECT_SHARED relative_path_to_model_file longitude latitude altitude_above_sea_level_(meters) ellipsoid_ROTATION
  OBJECT_SHARED path longitude latitude altitude rotation


The path is relative to the $FG_ROOT directory. If you have an XML file for the model, specify it here, otherwise specify the .ac file.
The path is relative to the $FG_ROOT directory. If you have an XML file for the model, specify it here, otherwise specify the .ac file.  Altitude is in meters above mean sea level.  Rotation is *counter-clockwise* from north (not clockwise as in the rest of FG).


There are more details on the .stg file format below.
There are more details on the .stg file format below.


Alternately, there is a way to include this same information in XML configuration files that are loaded at runtime; see [[Howto: Place 3D objects with the UFO]] for more details.  This approach has the advantage of keeping your new scenery clearly separate from the standard scenery files without having to create your own custom scenery directory structure.  However it requires either manually loading the config file from the command line or mentioning it in one of the standard startup files (such as [[.fgfsrc]]) and having it loaded every time you start FG, whether or not you are going to be flying in the area.  If you place the scenery information in .stg files, it is only loaded when needed.
Alternately, there is a way to include this same information in XML configuration files that are loaded at runtime; see [[Howto: Place 3D objects with the UFO]] or <tt>$FG_ROOT/Docs/README.scenery</tt> for more details.  This approach has the advantage of keeping your new scenery clearly separate from the standard scenery files without having to create your own custom scenery directory structure.  Further, you can then manually control whether or not to load it, using the --config option on the command line. You can also include it in one of the standard startup files (such as [[.fgfsrc]]) but this will load it into memory every time you start FG, whether or not you are flying in the area.  If you place the scenery information in .stg files, it is only loaded into memory when needed.


=== Step 7 ===
=== Step 7 ===

Navigation menu