SimpleFX

The SimpleFX sample illustrates a basic "Engine Smoke" VFX package for Microsoft Flight Simulator. Making this example required using The Visual Effects Editor to create the effect, along with the use of The Material Editor to create a custom material for the effect particles. Note that to test this sample you will need to be in the simulation, so you should have selected an aircraft and a departure airport and started a flight before going ahead and loading the sample.

 

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

File OverviewFile Overview

|---+ SimpleFX
    |---+ PackageDefinitions
  | |---+ mycompany-simple-fx
  | | |---+ ContentInfo
  | | |---- Thumbnail.jpg
  | |---+ mycompany-simplefx-materiallib
  | | |---+ ContentInfo
  | | |---- Thumbnail.jpg | |---- mycompany-simple-fx.xml | |---- mycompany-simplefx-materiallib.xml |---+ PackageSources | |---+ MaterialLibs | | |---+ simplefx-materiallib | | | |---+ Textures | | | |---- vfx_smoke.png | | | |---- vfx_smoke.png.FLAGS | | |---- EngineSmoke.material | | |---- Library.xml | |---+ VisualEffectLibs | |---+ simple-fx | |---- EngineSmoke.xml | |---- EngineSmoke_edition.xml | |---- VisualEffectLibrary.vfxlib |---- SimpleFX.xml

 

 

Loading And Testing 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 SimpleFX.xml from the SimpleFX sample project.

Open SimpleFX Project

 

  • The Project Editor should open automatically and show you the project mycompany-simple-fx (if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu)

SimpleFx In The Project Editor

 

  • You can click on the arrow to the left to expand the list and show the asset groups that are used. In this case we have a VisualEffectLib and a MaterialLib:
    The Asset Groups For The SimpleFX Sample
  • You can now check out the contents of each asset group. To start with, we'll look at the MaterialLib, so click on it, and then in The Inspector window, click on the Load In Editor button:
    Opening The MaterialLib In The Material Editor
  • Once the material editor opens, you can find the material used by the sample by clicking the "User" tag, and then going to the "EngineSmoke" material:
    Finding The User Material For the SimpleFX Sample
    If you then click the Edit button, you can see the contents and setting of the material that the VFX will use:
    The SimpleFX Material
  • To view the actual VFX that will use this material, you can go back to the Project Editor and select the VisualEffectsLib and then, as before, click the Load In Editor button from the project Inspector window. This will open The Visual Effects Editor and there you can click on the EngineSmoke.xml to open the effect parameters in the VFX Node Graph:The EngineSmoke VFX In The Node Graph
  • You can test the VFX in the simulation by using the Spawn button in the VFX Inspector window (if this isn't open you can open it from the View menu). For that, select the XML file in the editor, then in the Inspector select a Contact Point to spawn the effect on. In this case we'll use the Propellor since the effect is for engine smoke:
    The EngineSmoke XML In The VFX Editor InspectorOnce you've selected the contact point, all you have to do is click on the Spawn button and you'll see the effect being used in the simulation:

For details of how to use visual effects created using the Visual Effects Editor on SimObjects, please see the following page: