Jump to: navigation, search

Howto:Place 3D objects with the UFO

66 bytes removed, 05:32, 16 August 2006
no edit summary
Starting A very useful tool for placing objects within the scenery, created by Melchior Franz, is available with Flightgear 0.9.10 you get a very usefull tool provided by Melchior Franzand later. He added It is an addon to the UFO aircraft which allows a nice addon, he made it capable of letting the user to place objects inside Flightgear a new (or old) 3D object at any arbitrary location in the scenery with just a few interactive tools. That means that, once you got your new 3d object modeled with Blender, you can place it on clicks of the ground with simple mouse point and click.
I will expose here the basic technique to use this UFO addon. First The first thing you need is a 3d model file to place in the scenery, ; let's say we got 'll use a catii-iii.xml object, we have to . You must save it in a place path where the this UFO feature can find it. The UFO searches the objects into in the Flightgear/data/Models/ directory . In this example, we create a subdirectory called Tabu and save our catii-iii.xml in there.
Now start Flightgear, and choose UFO as your aircraft.
Once Flightgear has been started, fly with the UFO upon to the place you want the model to be positioned.
Let's say we want to position the catii-iii.xml object at the beginning end of a taxiway taking to a runway. We stop the UFO just above this intersection and press the M key, a Select Model window will open up, here you see where the contents of the Flightgear/data/Models/ directory contentwill be shown. You can browse the dir Browse this list until you find find your model, then LMB (LMB = Left Mouse Button) click on it and to select it, then close the window. A The selected model path/name will be display in green text appears on at the bottom left of Flightgear the FlightGear screen, showing the selected model.
Now you can may point the mouse on the scenery ground and LMB again, the CAT II/III ground marking model will be positioned there. Of course, it has does not have the correct orientation, and it's partly covered by the surrounding terrain, but we have to can adjust that.
Fly closer to the ground with the UFO, so that you can see it better.
Now press TAB (or Ctrl-I), and use the resulting sliders to adjust the latitude/longitude/elevation/headingof the model.
Now that the model is correctly positioned, press the 'd ' key to dump data the model position data to the terminal. That will print a A few lines will be printed on the console giving you , providing the coordinates of current objectnecessary orientation data. You will save those coordinates into a scenery objects file in the next step. If you don't do that, next time you run Flightgear it will know nothing about the new object.
In the terminal window, you get three sections printed out by the UFO with very detailed informations information about what's going on, we need the line at the end.
e000n50/e008n50/3089154.stg is the secenery object file where this object's coordinates have to be saved. Default The default place where to find e000n50 directory is inside Flightgear/data/Scenery/Objects/ dir. You have to just open the 3089154.stg file with any text editor, add the following line and save it againthe file:
OBJECT_SHARED Models/Tabu/catii-iii.xml 8.57928135 50.03667992 105.9972 111.1
Now you have your object's position saved, and it will appear inside the scenery every time you start Flightgear again.  That's it :-)

Navigation menu