Howto:Add shared models manually: Difference between revisions

Jump to navigation Jump to search
→‎Step 5: misc rewording
m (replace <tt> with <code>)
(→‎Step 5: misc rewording)
Line 45: Line 45:


=== Step 5 ===
=== Step 5 ===
Next, locate a .stg file into which you will place a reference to the object's model and its position.  
Locate a .stg file into which you will place a reference to the object's model and its location and orientation.  


The .stg files are named according to tile number and stored under the scenery directories.  The default installation places a limited amount of scenery (for the area around San Francisco) in <code>[[$FG_ROOT]]/scenery</code> but you may have scenery in other directories, as specified in <code>[[$FG_SCENERY]]</code>.  (See [[Howto: Install scenery]].)  Under each scenery directory, you will find directories called <code>Objects</code> and <code>Terrain</code>, and under them directories that group tiles into larger and smaller quadrants.  Thus, if the tile number is 942058, you will find <code>942058.stg</code> under <code>$FG_ROOT</code> as <code>$FG_Root/Scenery/Objects/w130n30/w123n37/942058.stg</code>.
The .stg files are named according to tile number and stored under the scenery directories.  The default installation places a limited amount of scenery (for the area around San Francisco) in <code>[[$FG_ROOT]]/Scenery</code> but you may have scenery in other directories, as described in <code>[[$FG_SCENERY]]</code>.  (See [[Howto: Install scenery]].)  Under each scenery directory, you will find directories called <code>Objects</code> and <code>Terrain</code>.  Objects associated with airports are usually put into a .stg file under the "Terrain" directory; other objects are put under "Objects".  Under Objects and Terrain, there are directories that group tiles into larger and smaller quadrants.  Thus, if the tile number is 942058, you will find a file called <code>942058.stg</code> in the directory <code>$FG_Root/Scenery/Objects/w130n30/w123n37/</code>.


There is generally more than one .stg file for a given tile, in different directories.  It's important to edit one that will actually be read by flightgear (see below).  One thing you can do is create a personal customized scenery directory separate from the standard installation.  That way, if you upgrade FG your customizations won't get overwritten.  If you create such a directory, list it first in <code>[[$FG_SCENERY]]</code>, create a directory structure inside it parallel to the one in the standard scenery story, and create a .stg file in the appropriate place. Similarly, it is best not to edit the .stg files in the folder where [[TerraSync]] stores the scenery it has fetched, since TerraSync may overwrite them with newer versions.  Objects associated with airports are usually put into a .stg file under a "Terrain" directory; other objects are put under "Objects".
There is generally more than one .stg file for a given tile, in different directories, because scenery can be stored in more than one place.  It's important to edit a .stg file that will actually be read by flightgear (see below).  One thing you can do is create a personal customized scenery directory separate from the standard installed scenery.  That way, when you upgrade FG your customizations won't get overwritten.  If you create such a directory, list it first in <code>[[$FG_SCENERY]]</code>, create a directory structure inside it parallel to the one in the standard scenery directory, and create a .stg file in the appropriate place. Similarly, it is best not to edit the .stg files in the folder where [[TerraSync]] stores the scenery it has fetched, since TerraSync may overwrite them with newer versions.


=== Step 6 ===
=== Step 6 ===

Navigation menu