Skip to content

A simple tool to improve track building for the FPV drone simulator Liftoff

Notifications You must be signed in to change notification settings

FiorixF1/extended-liftoff-editor

Repository files navigation

Extended Liftoff Editor

This application improves the track building for the FPV drone simulator Liftoff by letting you copy and paste complex objects composed by many basic blocks of the editor.

The blueprints folder stores the XML code for each created object plus a preview image in PNG format. The main steps to create an object, import it in ELE, create a track and export it in Liftoff are the following:

  • In the Liftoff Editor, create a new map in the Drawing Board and build inside it the object you want to import in ELE. Build the object keeping in mind that the center of the map with coordinates (0, 0, 0) is used as center of rotation.
  • The XML code of the built object can be found inside C:\Program Files\Steam\steamapps\common\Liftoff\Tracks (in Windows) or /home/username/.steam/steamapps/Liftoff/Tracks (in Linux). Extract the content of the "blueprints" tag from it and copy it in a file inside the blueprints folder. The "blueprints" tag must also contain the XSD declaration, which is found in the second row of the original Liftoff file (this is required for parsing XML). The copied file should have a descriptive name and the XML extension.
  • Open the application by double clicking ele.bat (Windows) or ele.sh (Linux). The GUI is quite intuitive to use.
  • The command "Generate XML" will create the XML code with a new "blueprints" tag that should be copied into the original Liftoff track file.

A step-by-step tutorial can be found here.

Requirements

This application needs Python 3 installed plus a couple of libraries which can be obtained with the following commands:

  • pip install numpy
  • pip install pillow
  • pip install pyquaternion

Conventions

When setting the position and rotation of the objects, keep in mind these conventions:

  • X is positive right
  • Y is positive up
  • Z is positive forward (making this a left-handed coordinate system)
  • Pitch is the rotation along the X axis
  • Yaw is the rotation along the Y axis
  • Roll is the rotation along the Z axis
  • Rotations are positive clockwise
  • Rotations are applied in the order YXZ
  • Rotations are applied along the fixed XYZ of the environment

About

A simple tool to improve track building for the FPV drone simulator Liftoff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published