Difference between revisions of "Scenery:Generating Scenery"

From Silent Wings Wiki
Jump to: navigation, search
(Generate textures)
Line 30: Line 30:
  
 
  texmapper <texture config> <output dir> <output config>
 
  texmapper <texture config> <output dir> <output config>
 +
 +
This command will read the texture config
  
 
[[Category:Scenery]]
 
[[Category:Scenery]]

Revision as of 20:06, 9 January 2010

Generating the terrain model

This article describes the commands used to create a scenery file from a set of input data and configuration files.

Read data

data_reader <terrain config> <work dir>

This command will read the input data as described in the terrain config file, tile it into suitable bits and put it on the work directory in a simple work format.

Generate airports/runways

apt_gen <terrain config> <airports file> <work dir>

This program will make runway polygons for the airports within our area and put the polygon files in the work directory.

Generate terrain surface

terrain_gen <terrain config> <work dir> <output name>

This program will read the input data from the work directory and make a multiresolution triangulation of the data based on the parameters in the terrain config. There will be generated three files called <output name> with the extensions .tin, .idx and .grd.

Generate textures

texmapper <texture config> <output dir> <output config>

This command will read the texture config