SimpleProjectedMesh

The SimpleProjectedMesh sample project illustrates a very simple project that uses ProjectedMesh Objects. Essentially a projected mesh is a 3D scenery object that has been projected onto the ground and then "flattened" to be rendered in 2D as part of the terrain texture.

 

You can expand the link below to see the SimpleProjectedMesh file and folder structure:

File OverviewFile Overview

|---+ SimpleProjectedMesh
    |---+ PackageDefinitions
    |   |---- mycompany-scenery-projected-mesh.xml
    |---+ PackageSources
    |   |---+ modelLib
    |   |   |---+ EXPORT
    |   |   |   |---- PlaneAsphalt.bin
    |   |   |   |---- PlaneAsphalt.gltf
    |   |   |   |---- PlaneAsphalt.xml
    |   |   |---+ texture
    |   |       |---- Tile_Asphalt05_Albedo.png
    |   |       |---- Tile_Asphalt05_COMP.png
    |   |       |---- Tile_Asphalt05_Normal.png
    |   |---+ scene
    |       |---- objects.xml
    |---- ProjectedMeshProject.xml

 

 

Loading And Building The Project

In order to load and build the project in Microsoft Flight Simulator, you must have previously enabled Developer Mode (see here for more information). Once enabled, simply follow these steps:

 

  • Use the Open project... command from the File menu.

Developer Mode Open Project

 

  • Select the file ProjectedMeshProject.xml from the SimpleProjectedMesh sample project.
    Open The Projected Mesh Sample Project

 

  • The Project Editor should open automatically and show you the project mycompany-scenery-projected-mesh (if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu:Projected Mesh Sample Project in The Project Editor

 

  • Clicking on the project in the Project Editor will open the Inspector Window, and here you need to click the Build Package button (if the Inspector Window does not open automatically, go to the View menu in the Project Editor and open it from there):
    Build The Projected Mesh Packag

 

  • This will build a package from the files specified in your project. This package will be named mycompany-scenery-projected-mesh and will be output in the Packages folder created in the same directory as ProjectedMeshProject.xml:
    The Packages Folder For The Projected Mesh Sample

 

  • With the package built, you can now see the projected mesh in the world. To get to it, you need to first click on the Edit button beside the myscene (BGL) Asset Group, in the Inspector window:
    Opening The ProjectedMesh Project BGL In The Inspector

 

  • The inspector window will then change to show the details of the BGL file from the package, and there will be a button marked Load In Editor:
    Load The Projected Mesh Scenery In The Scenery Editor

 

  • Clicking this will load the airport in The Scenery Editor and there you can double-click on the Projected Mesh Layer group to be taken to the object:
    The Projected Mesh Shown In The Scene