36
edits
(→.STG file format: Updates to be consistent with Docs/README.scenery) |
|||
Line 74: | Line 74: | ||
Restart FG and fly to where you added the model; it should be there. | Restart FG and fly to where you added the model; it should be there. | ||
== | == STG file format == | ||
There is documention for the .stg files used by FlightGear in <tt>$FG_ROOT/Docs/README.scenery. | There is documention for the .stg files used by FlightGear in <tt>$FG_ROOT/Docs/README.scenery</tt>. Only information relevant for placing shared objects is included here. | ||
Scenery files are loaded by default from <tt>[[$FG_ROOT]]/Scenery</tt>. Alternate locations (a "scenery path") can be specified in <tt>[[$FG_SCENERY]]</tt> (or from the command line); the first-named directories have highest priority. Thus, if you create a local directory for storing custom scenery you create, include it first in the scenery path. | |||
Lines for shared objects in the STG file look like this: | |||
{| class="prettytable" border="1" cellspacing="0" bordercolor="black"> | {| class="prettytable" border="1" cellspacing="0" bordercolor="black"> | ||
| | |OBJECT_SHARED | ||
| | |Models/Misc/trigpoint.xml | ||
|<nowiki>-122.377127</nowiki> | |<nowiki>-122.377127</nowiki> | ||
|37.71570833 | |37.71570833 | ||
Line 90: | Line 90: | ||
|- | |- | ||
|Type | |Type | ||
| | |filename path | ||
|Longitude | |Longitude | ||
|Latitude | |Latitude | ||
Line 97: | Line 97: | ||
|} | |} | ||
The filename path is relative to <tt>$FG_ROOT</tt>. Longitude and latitude are expressed as decimal numbers (not degrees/minutes/seconds), with negative values representing west and south. Elevation is in meters above mean sea-level. Heading is in degrees, *counter-clockwise* from North as 0.0 (i.e. when looking from above). Note that this is opposite from headings in other places in FlightGear, which are clockwise. | |||
Some examples: | |||
OBJECT_SHARED Models/MidAtl/cape-may-light.ac -74.959970 38.933332 -93.0 0.00 | OBJECT_SHARED Models/MidAtl/cape-may-light.ac -74.959970 38.933332 -93.0 0.00 | ||
OBJECT_SHARED Models/Airport/windsock.xml -122.360843 37.613877 1 0 | OBJECT_SHARED Models/Airport/windsock.xml -122.360843 37.613877 1 0 | ||
OBJECT_SHARED Models/Structures/vordme.xml -122.37389 37.61948 -0.404 0 | OBJECT_SHARED Models/Structures/vordme.xml -122.37389 37.61948 -0.404 0 | ||
[[Category:Howto|Add shared models manually]] | [[Category:Howto|Add shared models manually]] | ||
[[Category:Scenery enhancement|Add shared models manually]] | [[Category:Scenery enhancement|Add shared models manually]] |
edits