AGN (FS2002/FS2004): Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
| Line 68: | Line 68: | ||
The x and y coordinates are given as offset from the middle of the LOD13 square (range -0.5 till 0.5). | The x and y coordinates are given as offset from the middle of the LOD13 square (range -0.5 till 0.5). | ||
== FS2004 only == | |||
The following sections of the AGN file are for FS2004 only. They are only read if the FS2004 header has a value greater than zero. | |||
int32 FS2004 header | |||
int32 | |||
=== Row houses === | |||
=== Library objects === | |||
[[Category:Terrain Design]] | [[Category:Terrain Design]] | ||
[[Category:File_Formats]] | [[Category:File_Formats]] | ||
[[Category:Autogen]] | [[Category:Autogen]] | ||
Revision as of 15:46, 12 January 2013
This document describes the FS2004 format for autogen (AGN) files. The first part of the AGN format is also valid for FS2002.
Header
int32 percentage buildings with 1-2 floors (range 0 - 20) int32 percentage buildings with 3-5 floors (range 0 - 20) int32 percentage buildings with 6-8 floors (range 0 - 20) int32 percentage buildings with 9-12 floors (range 0 - 20) int32 number of houses int32 number of vegetation areas double vegetation area int32 building texture length string building texture with extension (if building texture length > 0) int32 vegetation class 1 int32 vegetation class 2 int32 percentage vegetation class 1 (range 0 - 100) int32 maximum vegetation density (range 0 - 100) float vegetation class 1 minimum height float vegetation class 1 maximum height float vegetation class 2 minimum height float vegetation class 2 maximum height
Vegetation class
The following vegetation classes are available:
- Deciduous
- Coniferous1
- Coniferous2
- Shrub wet
- Shrub dry
- Palm trees
Buildings
For each building the following data is specified:
float x position of first point float y position of first point float x direction to second point float y direction to second point float x offset to third point float y offset to third point
The x and y coordinates are given as offset from the middle of the LOD13 square (range -0.5 till 0.5).
Vegetation
For each vegetation rectange the following data is specified:
float x position of first point float y position of first point float x offset to third point float y offset to third point
The x and y coordinates are given as offset from the middle of the LOD13 square (range -0.5 till 0.5).
FS2004 only
The following sections of the AGN file are for FS2004 only. They are only read if the FS2004 header has a value greater than zero.
int32 FS2004 header int32