Skip to content

Application which detects flatlands suitable for placing groups of objects on locations of «IL-2 Sturmovik: Forgotten Battles» flight simulator

License

Notifications You must be signed in to change notification settings

IL2HorusTeam/il2fb-flatland-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IL-2 FB Flatland Detector

pypi_package Supported versions of Python MIT license

Table of Contents

Synopsis

Flatland Detector is an application which detects flatlands suitable for placing groups of objects on locations of «IL-2 Sturmovik: Forgotten Battles» flight simulator.

It takes heightmaps of a locations in form of 2D matrix of heights and searches for flat convex areas which are clusters of adjacent points with same values. Binary data is produced by il2fb-heightmap-creator and it contains 2-byte integer values with resolution of heights up to 1 meter.

For example, there is a map with size of 51.2 × 51.2 km:

./examples/map.png

Its heightmap is contained in examples/heightmap.raw file. This heighmap can be rendered into the following image:

./examples/heightmap.png

The goal of Flatland Detector is to find flat areas which are big enough for placing airfields, warehouses, factories and other complex objects on them.

The image below shows a highlighted area of map with imprinted red areas which stand for flatlands used for placement of 2 airfields and 1 village.

./examples/map-highlighted.png

Example of an airbase which is placed one of that flatlands is shown below.

./examples/view.jpg

Flatland Detector allows to find such flatlands, save them in binary format and to imprint them in maps.

About

Application which detects flatlands suitable for placing groups of objects on locations of «IL-2 Sturmovik: Forgotten Battles» flight simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published