Howto:Place 3D objects with WED

From FlightGear wiki
Jump to navigation Jump to search

using X-Plane's World Editor for precise object placement

Placing scenery objects with the UFO is easy but not always the best choice. If you want to place objects or group of objects with precise position and heading you can also use the WorldEditor(WED) and use it's features like: top-down view, enter exact values for lat,lon,heading, rubberband-select, copy & paste,...

In order to do that, you need the object in X-Plane's .obj format. Blender can export that with an Blender-addon "io_xplane2blender" (but not import). Here are a already a few flightgear shared models in .obj format:

For WED you need a "fake" scenery folder, please read the wiki article about WED

Put your objects into:

Custom Scenery/Your-Project/objects


objects/Models/Airport/Jetway/jetway-movable.xml.obj objects/Models/Airport/Jetway/jetway-20.xml.obj objects/Models/Boundaries/Fence-20m-green.xml.obj objects/Models/Boundaries/ objects/Models/Boundaries/Fence-50m-green.xml.obj objects/Models/Boundaries/Fence-10m-green.xml.obj

After placing your objects with WED, click "Save" You will find the file:

Custom Scenery/Your-Project/ is the input file for the converter script

SYNOPSIS: -i <inputfile> -e <elevation in meters above MSL> > out.stg

Note that does not do elevation probing, this is done by our scenery server after you uploaded your stg lines.

Cquote1.png here's the first version of the script that converts object positions from into

.stg lines:

if you feel like improving WED, here is the code:

In case you use blender and the 2 addons io_scene_ac3d and io_xplane2blender to convert from .ac to .obj: After import you have to go to properties->scene and add one x-plane layer. enable Export for Layer 1 and name it like the object without extension. e.g. -> Fence-50m-green ..or maybe with the extension - I'll have to try that: -> Fence-50m-green.xml -> Fence-50m-green.xml

it would be nice to have a command line tool for this conversion step, similar to: xplane2fg

If you edit the heading in WED then use the "north" hand of the cross to get headings from 0 to 359 degrees. avoid negative headings! you can also enter exact headings in the property menu on the bottom right in WED.

use "Edit->Duplicate" crl-sh-D to create many objects with the same heading.
— pommesschranke (August 30th, 2015). Placing objects with WED.
(powered by Instant-Cquotes)

screenshots that can be used for this howto: