AGN (FS2002/FS2004): Difference between revisions
(New page: {{Infobox-Applicable-FSVersion | FSXI = false | FSXA = false | FSX = false | FS2004 = true | FS2002 = false | FS2000 = unknown | FS98 = unknown }} This document describes the FS2004 forma...) |
m (FSVersion Infobox rollout) |
||
| (15 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Infobox-Applicable-FSVersion | {{Infobox-Applicable-FSVersion | ||
| FS2020 = unknown | |||
| FSXI = false | | FSXI = false | ||
| P3D4 = false | |||
| P3D3 = false | |||
| P3D2 = false | |||
| P3D = false | |||
| FSW = unknown | |||
| FSXSE = false | |||
| FSXA = false | | FSXA = false | ||
| FSX = false | | FSX = false | ||
| FS2004 = true | | FS2004 = true | ||
| FS2002 = false | | FS2002 = true | ||
| | | XP11 = false | ||
| | | XP10 = false | ||
| XP9 = false | |||
}} | }} | ||
This document describes the FS2002 and FS2004 format for autogen (AGN) files. Each file ends with 24 bytes of zero padding. | |||
== 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 | |||
float 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 | |||
=== Row houses === | |||
int32 row house texture length | |||
string row house texture with extension (if row house texture length > 0) | |||
int32 number of row houses | |||
For each row house the following information 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). | |||
=== Library objects === | |||
int32 number of library object guids | |||
For each GUID the following information is specified: | |||
guid GUID (16 bytes long) | |||
int32 number of objects | |||
For each object the following information 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). | |||
[[Category:Terrain Design]] | [[Category:Terrain Design]] | ||
[[Category:File_Formats]] | [[Category:File_Formats]] | ||
[[Category:Autogen]] | [[Category:Autogen]] | ||
Latest revision as of 10:18, 29 March 2020
| Applicable |
|---|
| MS Flight |
| LM P3D4 |
| LM P3D3 |
| LM P3D2 |
| LM P3D |
| FS World |
| FSXSE |
| FSXA |
| FSX |
| FS2004 |
| FS2002 |
| XP11 |
| XP10 |
| XP9 |
This document describes the FS2002 and FS2004 format for autogen (AGN) files. Each file ends with 24 bytes of zero padding.
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 float 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
Row houses
int32 row house texture length string row house texture with extension (if row house texture length > 0) int32 number of row houses
For each row house the following information 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).
Library objects
int32 number of library object guids
For each GUID the following information is specified:
guid GUID (16 bytes long) int32 number of objects
For each object the following information 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).