No cookie for

Tech Tip: Adding Fences to Your Terrain

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 -->

<model name="aerodrome_fences" 




  <features name="aerodromewalls" driver="ogr">



  <!—backface culling needs to be on, so that fences render on both sides -->








     <library name="us_resources">



     <style type="text/css">

         default {

             extrusion-height:      2;

             extrusion-flatten:     false;

             extrusion-wall-style:  building-wall;

             extrusion-random-seed: 1;

             altitude-clamping:     terrain;

             altitude-resolution: 0.00068664550781250000;


         building-wall {

             skin-library: us_resources;

             skin-tags:    fence;

             skin-random-seed: 1;

             fill:         #ffffff;






MAK Hosts the 5th Annual Modeling and Simulation S...
Using Scenario Events to Trigger Simulation Action

By accepting you will be accessing a service provided by a third-party external to