Howto:Place 3D objects with the UFO: Difference between revisions

no edit summary
(trim)
No edit summary
Line 3: Line 3:
A very useful tool for placing objects within the scenery, created by Melchior Franz, is available with Flightgear 0.9.10 and later. It is an addon to the UFO aircraft which allows a user to place a new (or old) 3D object at any arbitrary location in the scenery with just a few clicks of the mouse.
A very useful tool for placing objects within the scenery, created by Melchior Franz, is available with Flightgear 0.9.10 and later. It is an addon to the UFO aircraft which allows a user to place a new (or old) 3D object at any arbitrary location in the scenery with just a few clicks of the mouse.


=Selecting the ufo=
The first thing you need is a 3d model file to place in the scenery; let's say we'll use a catii-iii.xml object. You must save it in a path where this UFO feature can find it. The UFO searches the objects in the Flightgear/data/Models/ directory. In this example, we create a subdirectory called Tabu and save our catii-iii.xml there.
The first thing you need is a 3d model file to place in the scenery; let's say we'll use a catii-iii.xml object. You must save it in a path where this UFO feature can find it. The UFO searches the objects in the Flightgear/data/Models/ directory. In this example, we create a subdirectory called Tabu and save our catii-iii.xml there.


Line 10: Line 11:
Now start Flightgear, and choose UFO as your aircraft.
Now start Flightgear, and choose UFO as your aircraft.


=Placing objects=
Once Flightgear has been started, fly with the UFO to the place you want the model to be positioned.
Once Flightgear has been started, fly with the UFO to the place you want the model to be positioned.


[[Image:Placing_objects_with_UFO_html_5fa8d7b1.jpg]]
[[Image:Placing_objects_with_UFO_html_5fa8d7b1.jpg]]


Let's say we want to position the catii-iii.xml object at the end of a taxiway. We stop the UFO just above this intersection and press the M key, a Select Model window will open up where the contents of the Flightgear/data/Models/ directory will be shown. Select your model from this list, then close the window. The selected model path/name will be display in green text at the bottom left of the FlightGear screen.
Let's say we want to position the catii-iii.xml object at the end of a taxiway. We stop the UFO just above this intersection and press the space key, a Select Model window will open up where the contents of the Flightgear/data/Models/ directory will be shown. Select your model from this list, then close the window. The selected model path/name will be display in green text at the bottom left of the FlightGear screen.


[[Image:Placing_objects_with_UFO_html_m184fb381.jpg]]
[[Image:Placing_objects_with_UFO_html_m184fb381.jpg]]
Line 22: Line 24:
[[Image:Placing_objects_with_UFO_html_12ee70a1.jpg]]
[[Image:Placing_objects_with_UFO_html_12ee70a1.jpg]]


=Rotating objects=
Fly closer to the ground with the UFO, so that you can see it better.
Fly closer to the ground with the UFO, so that you can see it better.


Line 28: Line 31:
[[Image:Placing_objects_with_UFO_html_439816e9.jpg]]
[[Image:Placing_objects_with_UFO_html_439816e9.jpg]]


 
=Exporting the resoult=
Now that the model is correctly positioned, press the D key to dump the model position data to the terminal. A few lines will be printed on the console, providing the necessary 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.
Now that the model is correctly positioned, press the D key to dump the model position data to the terminal. A few lines will be printed on the console, providing the necessary 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.