While converting scenery I found that adjusting an object's position and orientation by editing text files is kind of cumbersome. So I started implementing a tool that reads an .stg file, loads the respective objects into FlightGear and lets you adjust the object's properties, such as latitude, longitude, altitude and heading via an easy-to-use GUI. All changes are immediately updated in a separate FlightGear preview window:
Download latest version 0.6:
https://gitlab.com/fg-radi/fgopt.git
It is written in python (requires wxpython for the GUI stuff), developed on Linux, but should run on Windows and Mac, as well. So far, this is merely a proof-of-concept. I will continue development as time permits.
Live update is achieved via a telnet connection to a running FlightGear instance.
Usage:
1. Run FlightGear with telnet enabled on port 5401:
# fgfs --telnet=5401 --aircraft=ufo
2. Run FGopt:
# fgopt.py [file.stg]
Use File -> Import .stg to add objects to the current list. You may also specify an .stg file at the command line.
The .stg file should *not* already be included in FlightGear's scenery search path; otherwise the respective objects will be displayed twice (no other side-effects, though).
You can modify the position of objects by
- entering data directly in list
- use numpad keys
Right click focuses object, mouse drag while right clicked changes view.
Save your work via File -> Export .stg. Currently, this dumps a file called out.stg in current directory.