VR-Forces and VR-Vantage customers often want to add additional features to the terrains provided by MAK or want to understand how to add features to the terrains that they have developed. One type of feature that is often requested is fencing, for example around an aerodrome.
Fences are flat extruded linear features that have no thickness. They are created from a shapefile by the MAK Earth terrain engine within VR-Vantage and VR-Forces. It is your responsibility to create or obtain a shapefile that has the fences you want to add.
The aerodrome earth files provided by MAK have a flattened area around them. If you are adding a fence to an aerodrome, you should ensure that your fence features fit within the flattened area. If they are in unflattened areas, they might not conform to the terrain.
To add your fences to an earth file, add the following block of code. Replace "../../data/Terrain/World/Features/myAirportFencesL.shp" with the path to your shape file. If you add it to .\userData\servers\airports.worldwide.xml, it will be included in the procedural terrains provided by MAK. However, you can add this example to any earth file.
!-- Extruded fences Aerodrome -->
<features name="aerodromewalls" driver="ogr">
<!—backface culling needs to be on, so that fences render on both sides -->