]> git.mxchange.org Git - flightgear.git/blob - docs-mini/FlightGear-FAQ.html
Merge branch 'durk/traffic'
[flightgear.git] / docs-mini / FlightGear-FAQ.html
1 <html lang="en">
2   <!-- $Id$ -->
3   <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5     <title>FlightGear FAQ</title>
6     <style type="text/css">
7         .indent { margin-left: 2em; margin-right: 1em; }
8       </style>
9   </head>
10   <body>
11   
12     <h1 align="center">FlightGear FAQ</h1>
13     <hr noshade>
14     
15     
16     <h2>Introduction</h2>
17       <p>Welcome to the FlightGear FAQ.  Here you will find the answers to
18       some questions that are frequently asked on our mailing lists.  If
19       you have a question that is not answered here, feel free to ask
20       us on our mailing lists.  Enjoy</p>
21     
22   <hr noshade>
23     <h2>
24       <a name="toc">Table of Contents</a>
25     </h2>
26     <h4>1 -
27     <a href="#1">The FAQ</a>
28     </h4>
29     <div class="indent">1.1 -
30       <a href="#1.1">Where can I get the latest version of this FAQ?</a>
31     </div>
32     <div class="indent">1.2 -
33       <a href="#1.2">Who do I contact if I have comments about this FAQ?</a>
34     </div>
35     <div class="indent">1.3 -
36       <a href="#1.3">How old is this document?</a>
37     </div>
38     <div class="indent">1.4 -
39       <a href="#1.4">What other important documentation should I read?</a>
40     </div>
41     <br>
42     <h4>2 -
43     <a href="#2">Distribution</a>
44     </h4>
45     <div class="indent">2.1 -
46       <a href="#2.1">Where can I get FlightGear?</a>
47     </div>
48     <div class="indent">2.2 -
49       <a href="#2.2">What is the password for the FTP server?</a>
50     </div>
51     <div class="indent">2.3 -
52       <a href="#2.3">Why won't the FTP server let me in with the right login info?</a>
53     </div>
54     <div class="indent">2.4 -
55       <a href="#2.4">Where can I find the latest development source code?</a>
56     </div>
57     <div class="indent">2.5 -
58       <a href="#2.5">What is SimGear, and why do I need it?</a>
59     </div>
60     <div class="indent">2.6 -
61       <a href="#2.6">Where can I fly and where do I get the scenery?</a>
62     </div>
63     <div class="indent">2.7 -
64       <a href="#2.7">Where can I get different 3D models for my plane?</a>
65     </div>
66     <div class="indent">2.8 -
67       <a href="#2.8">How current is the data in FlightGear compared to the real world?</a>
68     </div>
69     <div class="indent">2.9 -
70       <a href="#2.9">Where is the moving map?</a>
71     </div>
72     <div class="indent">2.10 -
73       <a href="#2.10">Why don't you charge money for this?</a>
74     </div>
75     <br>
76     <h4>3 -
77     <a href="#3">Compiling</a>
78     </h4>
79     <div class="indent">3.1 -
80       <a href="#3.1">Why won't FlightGear compile?</a>
81     </div>
82     <div class="indent">3.2 -
83       <a href="#3.2">I'm using RedHat 7, and ...?</a>
84     </div>
85     <br>
86     <h4>4 -
87     <a href="#4">Configuring</a>
88     </h4>
89     <div class="indent">4.1 -
90       <a href="#4.1">How do I install new scenery?</a>
91     </div>
92     <div class="indent">4.2 -
93       <a href="#4.2">How do I setup my joystick(s)?</a>
94     </div>
95     <div class="indent">4.3 -
96       <a href="#4.3">What format should my personal .fgfsrc file be in?</a>
97     </div>
98     <br>
99     <h4>5 -
100     <a href="#5">Running</a>
101     </h4>
102     <div class="indent">5.1 -
103       <a href="#5.1">Why do I get an error loading libopenal.so.0?</a>
104     </div>
105     <div class="indent">5.2 -
106       <a href="#5.2">Why do I get "ssgInit called without a valid OpenGL context"?</a>
107     </div>
108     <div class="indent">5.3 -
109       <a href="#5.3">What happened to the panel, keyboard, etc?</a>
110     </div>
111     <div class="indent">5.4 -
112       <a href="#5.4">Why doesn't audio work properly under Irix?</a>
113     </div>
114     <div class="indent">5.5 -
115       <a href="#5.5">Why is FlightGear so slow?</a>
116     </div>
117     <div class="indent">5.6 -
118       <a href="#5.6">Why is my SGI machine so slow?</a>
119     </div>
120     <div class="indent">5.7 -
121       <a href="#5.7">How do I see the frame rate?</a>
122     </div>
123     <div class="indent">5.8 -
124       <a href="#5.8">Stuck upside down after "crash"?</a>
125     </div>
126     <div class="indent">5.9 -
127       <a href="#5.9">Why does FlightGear die on startup saying "time zone reading failed"?</a>
128     </div>
129     <br>
130     <h4>6 -
131     <a href="#6">Hacking</a>
132     </h4>
133     <div class="indent">6.1 -
134       <a href="#6.1">What language is FlightGear written in?</a>
135     </div>
136     <div class="indent">6.2 -
137       <a href="#6.2">How do I design a flight dynamics model for a new aircraft?</a>
138     </div>
139     <div class="indent">6.3 -
140       <a href="#6.3">How do I import planes from Microsoft Flight Simulator?</a>
141     </div>
142     <div class="indent">6.4 -
143       <a href="#6.4">How do I import BGL scenery from Microsoft Flight Simulator?</a>
144     </div>
145     <div class="indent">6.5 -
146       <a href="#6.5">How do I design or modify a panel?</a>
147     </div>
148     <div class="indent">6.6 -
149       <a href="#6.6">How do I place objects, like buildings, into FlightGear?</a>
150     </div>
151     <div class="indent">6.7 -
152       <a href="#6.7">Where can I learn 3D programming and how do I get involved?</a>
153     </div>
154     <div class="indent">6.8 -
155       <a href="#6.8">How do I add an airport?</a>
156     </div>
157     <div class="indent">6.9 -
158       <a href="#6.9">How do I generate my own scenery?</a>
159     </div>
160     <br>
161     <h4>7 -
162     <a href="#7">Flying</a>
163     </h4>
164     <div class="indent">7.1 -
165       <a href="#7.1">Where can I learn about instrument flying and navigation?</a>
166     </div>
167     <div class="indent">7.2 -
168       <a href="#7.2">What is the difference between Aileron and Rudder?</a>
169     </div>
170     <div class="indent">7.3 -
171       <a href="#7.3">Is there support for multi-player flying?</a>
172     </div>
173     <div class="indent">7.4 -
174       <a href="#7.4">Is there support for any military scenarios like dog fighting or bomb dropping?</a>
175     </div>
176     <br>
177     <h4>8 -
178     <a href="#8">FlightGear v0.7.6</a>
179     </h4>
180     <div class="indent">8.1 -
181       <a href="#8.1">Why do I get an error in viewer.cxx about `exit' being undeclared?</a>
182     </div>
183     <br>
184
185   
186     <hr>
187     <h2>
188       <a name="1">1 -
189     The FAQ</a>
190     </h2>
191         <b>
192       <a name="1.1">1.1 -
193     <u>Where can I get the latest version of this FAQ?</u>
194       </a>
195     </b>
196         <div class="indent">
197           <p>
198           <a href="http://flightgear.org/Docs/FlightGear-FAQ.html">http://flightgear.org/Docs/FlightGear-FAQ.html</a>
199           </p>
200         </div>
201       
202         <b>
203       <a name="1.2">1.2 -
204     <u>Who do I contact if I have comments about this FAQ?</u>
205       </a>
206     </b>
207         <div class="indent">
208           <p>First contact the author.  If you get no response, send your
209           comments to the FlightGear-Users mailing list.</p>
210         </div>
211       
212         <b>
213       <a name="1.3">1.3 -
214     <u>How old is this document?</u>
215       </a>
216     </b>
217         <div class="indent">
218           <p>See the <i>About This Document</i> section at the end of the FAQ.</p>
219         </div>
220       
221         <b>
222       <a name="1.4">1.4 -
223     <u>What other important documentation should I read?</u>
224       </a>
225     </b>
226         <div class="indent">
227           <p>Most FlightGear documentation is linked to from
228           <a href="http://flightgear.org/Docs/">http://flightgear.org/Docs/</a>.
229           Definitely check out the <i>FlightGear Installation and Getting
230           Started</i> document available from the aforementioned location.</p>
231           <p>Also see the <code>FlightGear/docs-mini/</code> directory in the
232           source distribution for various other helpful documents.</p>
233         </div>
234       
235
236     <hr>
237     <h2>
238       <a name="2">2 -
239     Distribution</a>
240     </h2>
241         <b>
242       <a name="2.1">2.1 -
243     <u>Where can I get FlightGear?</u>
244       </a>
245     </b>
246         <div class="indent">
247           <p>The official download page is 
248           <a href="http://flightgear.org/Downloads/">http://flightgear.org/Downloads/</a>.
249           Source code is our primary form of distribution, but precompiled
250           binaries are available for Windows and SGI IRIX.</p>
251           <p>Alternatively, FlightGear is packaged for Linux by SuSE, Debian
252           (sid), and Mandrake (Cooker) and can be directly installed through
253           those distributions.</p>
254         </div>
255       
256         <b>
257       <a name="2.2">2.2 -
258     <u>What is the password for the FTP server?</u>
259       </a>
260     </b>
261         <div class="indent">
262           <p>The FTP server uses standard anonymous login procedures.  Login
263           with the username "anonymous" and use your email address as the
264           password.  Most FTP clients and web browsers will do this
265           automatically for you.</p>
266         </div>
267       
268         <b>
269       <a name="2.3">2.3 -
270     <u>Why won't the FTP server let me in with the right login info?</u>
271       </a>
272     </b>
273         <div class="indent">
274           <p>This generally means that the server is at it's capacity.  You
275           should receive a message saying such, but your FTP client may be
276           hiding it from you.  Your options are to keep trying until a slot
277           opens up or try connecting to one of our <i>FTP</i> mirrors listed at
278           <a href="http://flightgear.org/mirrors.html">http://flightgear.org/mirrors.html</a>.</p>
279         </div>
280       
281         <b>
282       <a name="2.4">2.4 -
283     <u>Where can I find the latest development source code?</u>
284       </a>
285     </b>
286         <div class="indent">
287           <p>The latest development code is available for everyone through our
288           CVS repository.  See
289           <a href="http://flightgear.org/cvsResources/">http://flightgear.org/cvsResources/</a> for details.
290           </p>
291           <p>Otherwise, you can get relatively up-to-date snapshots of the
292           development tree at
293           <a href="ftp://flightgear.sourceforge.net/pub/flightgear/Devel/Snapshots/">ftp://flightgear.sourceforge.net/pub/flightgear/Devel/Snapshots/</a>.
294           </p>
295         </div>
296       
297         <b>
298       <a name="2.5">2.5 -
299     <u>What is SimGear, and why do I need it?</u>
300       </a>
301     </b>
302         <div class="indent">
303           <p>SimGear is a library of supporting code.  SimGear is only needed
304           if you plan on compiling FlightGear -- it is not needed to run
305           precompiled binaries.  For more information see
306           <a href="http://www.simgear.org/">http://www.simgear.org/</a>.</p>
307         </div>
308       
309         <b>
310       <a name="2.6">2.6 -
311     <u>Where can I fly and where do I get the scenery?</u>
312       </a>
313     </b>
314         <div class="indent">
315           <p>While the base package only comes with scenery for the San Francisco
316           Bay area, you can currently fly just about anywhere in the world.
317           See the <i>"Additional Scenery"</i> section of
318           <a href="http://flightgear.org/Downloads/">http://flightgear.org/Downloads/</a>
319           for more information or go directly to our graphical downloader at
320           <a href="http://flightgear.org/Downloads/world-scenery.html">http://flightgear.org/Downloads/world-scenery.html</a>.
321           </p>
322           <p>Also visit our <i>"Places to Fly"</i> section of the website
323           (<a href="http://flightgear.org/Places/">http://flightgear.org/Places/</a>)
324           for some help navigating to some awesome locations.</p>
325         </div>
326       
327         <b>
328       <a name="2.7">2.7 -
329     <u>Where can I get different 3D models for my plane?</u>
330       </a>
331     </b>
332         <div class="indent">
333           <p>While we are working toward building our own 3D models, we have
334           been given permission by several people to convert their models (which
335           where originally intended for use with <i>Microsoft Flight
336           Simulator</i>) to use with FlightGear.</p>
337         </div>
338       
339         <b>
340       <a name="2.8">2.8 -
341     <u>How current is the data in FlightGear compared to the real world?</u>
342       </a>
343     </b>
344         <div class="indent">
345           <p>We use the same navaid and airport dataset that <i>X-Plane</i> uses.  The
346           current dataset can be found in the <code>$FGROOT/Navaids/</code> and
347           <code>$FGROOT/Airports/</code> directories.  If you have updates or
348           corrections to the dataset, see
349           <a href="http://flightgear.org/Docs/AirNav/AptNavFAQ.FlightGear.html">http://flightgear.org/Docs/AirNav/AptNavFAQ.FlightGear.html</a>
350           for instructions on contacting the database maintainer.</p>
351         </div>
352       
353         <b>
354       <a name="2.9">2.9 -
355     <u>Where is the moving map?</u>
356       </a>
357     </b>
358         <div class="indent">
359           <p>A popular moving map display is avaliable under a separate
360           project called <i>Atlas</i>.  See
361           <a href="http://atlas.sf.net/">http://atlas.sf.net/</a>.</p>
362         </div>
363       
364         <b>
365       <a name="2.10">2.10 -
366     <u>Why don't you charge money for this?</u>
367       </a>
368     </b>
369         <div class="indent">
370           <p>We could do that, since the initial download is about 25
371           megabytes.  Especially for people who have to pay per-minute charges
372           for internet access, buying a CD is a convenient and possibly
373           cheaper option.  Although we offer that service (see the website), we
374           encourage other groups to redistribute it for their users, especially
375           within an operating system distribution which makes installation even
376           faster and easier for new users.</p>
377         </div>
378       
379
380     <hr>
381     <h2>
382       <a name="3">3 -
383     Compiling</a>
384     </h2>
385         <b>
386       <a name="3.1">3.1 -
387     <u>Why won't FlightGear compile?</u>
388       </a>
389     </b>
390         <div class="indent">
391           <p>Well, that depends.  First make sure you are using the appropriate
392           versions of FlightGear, SimGear, plib, zlib.  If any of
393           the packages are out of sync with the others, compilation may fail.</p>
394           <p>The FlightGear <i>Downloads</i> page
395           (<a href="http://flightgear.org/Downloads/">http://flightgear.org/Downloads/</a>)
396           should tell you what versions you need if you are trying to compile
397           the latest stable release.  If you are using a development snapshot,
398           make sure all three packages are up-to-date.</p>
399           <p>Also ensure that you have some implementation of OpenGL with glut
400           support with the appropriate header files.  Linux users with nVidia
401           cards should make sure you have the latest drivers from nVidia.  Other
402           Linux users make sure you have Mesa3D
403           (<a href="http://mesa3d.org/">http://mesa3d.org/</a>)
404           and your X server installed correctly.  Windows users see
405           <a href="http://www.x-plane.com/SYSREQ/v5ibm.html">http://www.x-plane.com/SYSREQ/v5ibm.html</a>,
406           and Mac users see
407           <a href="http://www.x-plane.com/SYSREQ/v5mac.html">http://www.x-plane.com/SYSREQ/v5mac.html</a>.
408           </p>
409           <p>If your problems persist, subscribe to our FlightGear-Users mailing
410           list and let us know what problem you're having.  See
411           <a href="http://flightgear.org/mail.html">http://flightgear.org/mail.html</a> for help with this.
412           </p>
413         </div>
414       
415         <b>
416       <a name="3.2">3.2 -
417     <u>I'm using RedHat 7, and ...?</u>
418       </a>
419     </b>
420         <div class="indent">
421           <p>Update your gcc packages.  See
422           <a href="http://redhat.com/errata/">http://redhat.com/errata/</a>
423           to fix it and
424           <a href="http://www.gnu.org/software/gcc/gcc-2.96.html">http://www.gnu.org/software/gcc/gcc-2.96.html</a>
425           for an explanation why.</p>
426         </div>
427       
428
429     <hr>
430     <h2>
431       <a name="4">4 -
432     Configuring</a>
433     </h2>
434         <b>
435       <a name="4.1">4.1 -
436     <u>How do I install new scenery?</u>
437       </a>
438     </b>
439         <div class="indent">
440           <p>The scenery archive files (ie. w100n30.tar.gz) should be untarred
441           into the <code>Scenery/Terrain</code> directory in your
442           <code>$FG_ROOT</code>.</p>
443         </div>
444       
445         <b>
446       <a name="4.2">4.2 -
447     <u>How do I setup my joystick(s)?</u>
448       </a>
449     </b>
450         <div class="indent">
451           <p>FlightGear should come with a helpful program called <i>`fgjs`</i>
452           that can help configure your joystick.  Run <i>`fgjs`</i> and then
453           copy the dot file it created into your home directory or add its
454           contents to your existing rc file.</p>
455           <p>Also, see the README.Joystick file located in the
456           <code>FlightGear/docs-mini/</code> directory of the source
457           distribution.  This document is mirrored at
458           <a href="http://rockfish.net/fg/README.Joystick">http://rockfish.net/fg/README.Joystick</a>.
459           </p>
460         </div>
461       
462         <b>
463       <a name="4.3">4.3 -
464     <u>What format should my personal .fgfsrc file be in?</u>
465       </a>
466     </b>
467         <div class="indent">
468           <p>Your <code>.fgfsrc</code> file should simply be a list of
469           command-line options with one option per line.  The file is <b>not</b>
470           an XML file.</p>
471           <p>If you would rather use an XML configuration file, you can add
472           something like the following in your <code>.fgfsrc</code>
473       </p>
474           <p>
475         <code>--config=/path/to/my/config.xml</code>
476       </p>
477           <p>Almost every option corresponds to a property, so you can choose
478           to use whichever method best suits your needs.</p>
479         </div>
480       
481
482     <hr>
483     <h2>
484       <a name="5">5 -
485     Running</a>
486     </h2>
487         <b>
488       <a name="5.1">5.1 -
489     <u>Why do I get an error loading libopenal.so.0?</u>
490       </a>
491     </b>
492         <div class="indent">
493           <p>With the default installation, libopenal.so.0 is installed into
494           <code>/usr/local/lib</code>.  You need to ensure that that path is
495           listed in <code>/etc/ld.so.conf</code>, then run <i>`ldconfig`</i>as
496           root.</p>
497         </div>
498       
499         <b>
500       <a name="5.2">5.2 -
501     <u>Why do I get "ssgInit called without a valid OpenGL context"?</u>
502       </a>
503     </b>
504         <div class="indent">
505           <p>In short, your GL libraries are broken.  So far only Red Hat 7.x
506           users have experienced this (see
507           <a href="http://www.redhat.com/bugzilla/show_bug.cgi?id=18867">http://www.redhat.com/bugzilla/show_bug.cgi?id=18867</a>).
508           The only solutions are possibly complicated ones: you can either
509           change distributions (most of us prefer Debian) or upgrade/downgrade
510           your Mesa libs.</p>
511           <p>
512         <i>
513           <u>Why do some other GL applications work though?</u>
514         </i>  Well,
515           Steve Baker (Mr. PLIB) has explained this on the plib-users list
516           (<a href="http://www.geocrawler.com/lists/3/SourceForge/1867/0/6470648/">http://www.geocrawler.com/lists/3/SourceForge/1867/0/6470648/</a>).
517           </p>
518         </div>
519       
520         <b>
521       <a name="5.3">5.3 -
522     <u>What happened to the panel, keyboard, etc?</u>
523       </a>
524     </b>
525         <div class="indent">
526           <p>The problem is almost certainly that your base package is out of
527           sync with FlightGear.  Many configurable parts of FlightGear are
528           defined in XML files contained in the base package.</p>
529         </div>
530       
531         <b>
532       <a name="5.4">5.4 -
533     <u>Why doesn't audio work properly under Irix?</u>
534       </a>
535     </b>
536         <div class="indent">
537           <p>FlightGear (as of June 2001) uses the Portable Libraries (PLIB)
538           for playing audio. The audio queue implementation of PLIB is far from
539           optimal (in fact it's just wrong).  This seems to work on other
540           platforms quite well, but Irix expects things to be programmed
541           properly.</p>
542           <p>There has been discussion about using OpenAL
543           (<a href="http://www.openal.org/">http://www.openal.org/</a>)
544           for the next release of both PLIB and FlightGear.  Tests show that
545           the OpenAL audio implementation does the job right, meaning that
546           these audio problems should be gone by then. In the mean time it is
547           best to disable audio on Irix completely (by adding --disable-sound
548           either on the command line or to your <code>$HOME/.fgfsrc</code>
549           file).</p>
550         </div>
551       
552         <b>
553       <a name="5.5">5.5 -
554     <u>Why is FlightGear so slow?</u>
555       </a>
556     </b>
557         <div class="indent">
558           <p>FlightGear supports hardware acceleration, but it seems not to be
559           activated.  Make sure you have OpenGL libraries installed and
560           configured properly and make sure you have the latest drivers for your
561           video card.</p>
562           <p>
563         <b>Linux users</b>:  If you are an nVidia user, follow their
564           directions on getting your card working.  For most other users, make
565           sure Mesa is installed property and ensure that you have the
566           appropriate kernel device drivers for your card.  Most people (and
567           distributions) use modules for their video card device drivers; run
568           <i>`lsmod`</i> as root to see what modules are loaded.  You should also
569           make sure that you are loading the appropriate modules in your
570           XF86Config and that your video device section is correct.  Now try
571           running an OpenGL application (other than FlightGear) to see how it
572           performs.  You can try the <i>gears</i> demo from Mesa or something
573           like <i>Quake3</i>.</p>
574         </div>
575       
576         <b>
577       <a name="5.6">5.6 -
578     <u>Why is my SGI machine so slow?</u>
579       </a>
580     </b>
581         <div class="indent">
582           <p>First of all, one of the most common mistakes on SGI hardware is to
583           forget to specify --fog-fastest. On most SGI machines the EXP2 shading
584           model isn't hardware supported resulting in frame rates below 1 frame
585           per second (fps).</p>
586           <p>FlightGear makes extensive use of the OpenGL z-buffer feature,which
587           on most older SGI hardware is only supported in software. This means
588           that the CPU has to do all the z-buffer calculations in addition to the
589           other tasks FlightGear involves (flight dynamics, scenery tracking,
590           pushing commands into the graphics queue, etc).  The following features
591           are software rendered on low-end SGI machines (like Indy and
592           Indigo):</p>
593           <ul>
594             <li>stencil and accumulation buffer</li>
595             <li>depth queuing and depth buffering</li>
596             <li>fogging, lighting, clipping and transforms</li>
597             <li>texturing</li>
598           </ul>
599           <p>This means that running FlightGear with the following options may not
600           even get the desired result:</p>
601           <p>
602         <code>./runfgfs --fog-disable --shading-flat --disable-skyblend \</code>
603         <br>
604           <code>--disable-textures --disable-clouds --disable-sound \</code>
605         <br>
606           <code>--disable-panel --enable-hud --disable-anti-alias-hud</code>
607       </p>
608           <p>I could even imagine that adding --enable-wireframe doesn't work on
609           these machines (I would be happy to be proven wrong though).</p>
610           <p>On a machine like O2 the following options give an acceptable
611           result:</p>
612           <code>./runfgfs --fog-fastest --disable-sound</code>
613           <p>Since I don't have access to other SGI hardware I can't tell which
614           options would be appropriate for your situation.</p>
615         </div>
616       
617         <b>
618       <a name="5.7">5.7 -
619     <u>How do I see the frame rate?</u>
620       </a>
621     </b>
622         <div class="indent">
623           <p>There are two ways.  One way is to hide the panel without the HUD
624           showing.  To hide the panel, use <i>Shift+P</i>; To make the HUD
625           disappear, use <i>H</i>.  The second way is to use the alternative
626           HUD by <i>Shift+I</i> (Use <i>I</i> to switch back).</p>
627         </div>
628       
629         <b>
630       <a name="5.8">5.8 -
631     <u>Stuck upside down after "crash"?</u>
632       </a>
633     </b>
634         <div class="indent">
635           <p>In his infinite wisdom the FlightGear Grand Master decided that
636           planes were to valuable to allow them to be destroyed by novice pilots
637           who seemed to crash a lot.  The fact that nobody has bothered to model
638           crashes may have something to do with it too.  :-)</p>
639           <p>The result of this as you have noticed is that with a little
640           practice an ingenuity you can trim the ship to fly inverted along the
641           ground.</p>
642           <p>The quick answer is to hit Ctrl+U (with the default key bindings)
643           to warp the plane up 1000ft.</p>
644           <p>For the stubborn people out there:  The trick to learn is to roll
645           back to normal (non inverted) do this by nursing the elevator to get
646           to about 500 feet or so and use the ailerons to snap roll 180*.
647           This is all good avionics except for the plane not destroying
648           itself.  Remember the controls work in reverse when you are inverted
649           and keep that airspeed up!!!</p>
650         </div>
651       
652         <b>
653       <a name="5.9">5.9 -
654     <u>Why does FlightGear die on startup saying "time zone reading failed"?</u>
655       </a>
656     </b>
657         <div class="indent">
658           <p>This is probably caused by a line-ending problem in the timezone
659           files.  Win32 users can resolve the problem by downloading a DOS to
660           UNIX conversion utility available at
661           <a href="http://www.nottingham.ac.uk/~eazdluf/d2u.zip">http://www.nottingham.ac.uk/~eazdluf/d2u.zip</a>.
662           Run as `<i>d2u *.tab</i>` from within the timezone directory to fix
663           your timezone files.</p>
664         </div>
665       
666
667     <hr>
668     <h2>
669       <a name="6">6 -
670     Hacking</a>
671     </h2>
672         <b>
673       <a name="6.1">6.1 -
674     <u>What language is FlightGear written in?</u>
675       </a>
676     </b>
677         <div class="indent">
678           <p>Mostly C++ with some supporting C code that's primary contained
679           within SimGear.</p>
680         </div>
681       
682         <b>
683       <a name="6.2">6.2 -
684     <u>How do I design a flight dynamics model for a new aircraft?</u>
685       </a>
686     </b>
687         <div class="indent">
688           <p>To define an aircraft for FlightGear's primary FDM (JSBSIM),
689           see <a href="http://jsbsim.sf.net/">http://jsbsim.sf.net/</a>.</p>
690           <p>If you want a simpler FDM to work with, try your hand at YASim,
691           an alternative FDM.  For an guide on creating a YASim aircraft,
692           look in the FlightGear base package for
693           <code>Aircraft-yasim/README.yasim</code>.</p>
694         </div>
695       
696         <b>
697       <a name="6.3">6.3 -
698     <u>How do I import planes from Microsoft Flight Simulator?</u>
699       </a>
700     </b>
701         <div class="indent">
702           <p>You can import the 3D model and textures, but the flight dynamics
703           (the .AIR file) must be completely redone for FlightGear.  </p>
704           <p>If you wish to import a model made with gmax, you will need to
705           convert it to .MDL format using <i>Microsoft's MakeMDL SDK</i> which
706           is available at
707           <a href="http://zone.msn.com/flightsim/FS02DevDeskSDK08.asp">http://zone.msn.com/flightsim/FS02DevDeskSDK08.asp</a>.
708           </p>
709         </div>
710       
711         <b>
712       <a name="6.4">6.4 -
713     <u>How do I import BGL scenery from Microsoft Flight Simulator?</u>
714       </a>
715     </b>
716         <div class="indent">
717           <p>See
718           <a href="http://chiangt.virtualave.net/BGL/bgl_index.html">http://chiangt.virtualave.net/BGL/bgl_index.html</a>.
719           </p>
720         </div>
721       
722         <b>
723       <a name="6.5">6.5 -
724     <u>How do I design or modify a panel?</u>
725       </a>
726     </b>
727         <div class="indent">
728           <p>See the README.xmlpanel file located in the
729           <code>FlightGear/docs-mini/</code> directory of the source
730           distribution.  This document is mirrored at
731           <a href="http://rockfish.net/fg/README.xmlpanel">http://rockfish.net/fg/README.xmlpanel</a>.
732           </p>
733         </div>
734       
735         <b>
736       <a name="6.6">6.6 -
737     <u>How do I place objects, like buildings, into FlightGear?</u>
738       </a>
739     </b>
740         <div class="indent">
741           <p>First, ensure that you have v0.7.7 or later, the scenery files
742           where you plan to place the object, the actual model, and the
743           longitude and latitude where you plan to place the object.</p>
744           <p>Now get the altitude for your point.  If you don't want to
745           calculate this yourself, start FlightGear at your location and take
746           note of the altitude.  Here's an example command:</p>
747           <p>
748         <code>fgfs --lat=45.50 --lon=-75.73 2&gt;&amp;1 | tee fgfs.log</code>
749       </p>
750           <p>The altitude is probably in feet, so divide the starting altitude
751           by 3.28.</p>
752           <p>Search the output log file for the first occurrence of the string
753           "Loading tile" and take note of the filename.  In the above example,
754           the output line looks like:</p>
755           <p>
756         <code>Loading tile /usr/local/Scenery/w080n40/w076n45/1712601</code>
757       </p>
758           <p>Copy a 3D model in a format that Plib understands to the same
759           directory as the tile file.  Edit the text file in that directory
760           consisting of the tile name with the extension ".stg".  The file will
761           already exist if there is an airport on the tile; otherwise, you can
762           create it from scratch.  In our example, the filename is:</p>
763           <p>
764         <code>/usr/local/Scenery/w080n40/w076n45/1712601.stg</code>
765       </p>
766           <p>At the end of the file, add a new entry for your object,
767           consisting of the word "OBJECT_STATIC" followed by the model name,
768           the longitude in degrees, the latitude in degrees, the altitude in
769           meters, and the heading in degrees.  In our example the line looks
770           like:</p>
771           <p>
772         <code>OBJECT_STATIC Towerax.ac -75.73 45.40 60 0</code>
773       </p>
774           <p>Save the changes to the .stg file, restart FlightGear, and
775           enjoy.</p>
776           <p>NOTE: The above information was taken from the following mailing
777           list post:
778           <a href="http://www.geocrawler.com/archives/3/11854/2001/6/0/5991409/">http://www.geocrawler.com/archives/3/11854/2001/6/0/5991409/</a>.
779           See that page if this one doesn't make sense.</p>
780           <p>An alternative approach using PPE is described at
781           <a href="http://mail.flightgear.org/pipermail/flightgear-devel/2001-December/002239.html">http://mail.flightgear.org/pipermail/flightgear-devel/2001-December/002239.html</a>
782           by Norman Vine.</p>
783         </div>
784       
785         <b>
786       <a name="6.7">6.7 -
787     <u>Where can I learn 3D programming and how do I get involved?</u>
788       </a>
789     </b>
790         <div class="indent">
791           <p>Contributing to the 2D panel doesn't require any coding at all,
792           just a minimal knowledge of XML syntax (i.e. five minutes' worth)
793           and good skills with drawing and/or paint programs.  Every instrument
794           on the current panel, with the partial exception of the magnetic
795           compass, is defined entirely in XML with no custom C++  code.  If
796           you want to get started, take a look at John Check's excellent intro
797           (<a href="http://rockfish.net/fg/README.xmlpanel">http://rockfish.net/fg/README.xmlpanel</a>).
798           </p>
799           <p>Likewise, if you want to create a 3D cockpit for FlightGear, or to
800           create buildings, external aircraft models, etc., your help is
801           *desperately* needed.  The only rule is to go easy on the triangles
802           -- a model with 50,000 triangles probably won't be usable in
803           FlightGear, and one with 5,000 triangles, only marginally.  If you
804           can design a nice 3D cockpit interior for a Cessna 172 (for example)
805           in a 3D design program such as ac3D or ppe, we have coders who will
806           be happy to add the support code in the C++.</p>
807           <p>If, on the other hand, you really want to get your hands dirty
808           with C++ coding, you'll have to buy a good OpenGL book eventually.
809           However, FlightGear uses a high-level library, plib, that hides most 
810           of the details of OpenGL.  To get started with 3D C++ coding, you
811           can take a look at the plib documentation and learn only as much
812           OpenGL as you need, when you need it.</p>
813         </div>
814       
815         <b>
816       <a name="6.8">6.8 -
817     <u>How do I add an airport?</u>
818       </a>
819     </b>
820         <div class="indent">
821           <p>You can add your airport to the
822           <code>$FGROOT/Airports/default.apt.gz</code> file, but to get the
823           airport to show up visually, you will have to rebuild the scenery
824           around the airport.  The format of the default.apt file is
825           documented at
826           <a href="http://flightgear.org/Docs/AirNav/AptNavFAQ.FlightGear.html">http://flightgear.org/Docs/AirNav/AptNavFAQ.FlightGear.html</a>.</p>
827         </div>
828       
829         <b>
830       <a name="6.9">6.9 -
831     <u>How do I generate my own scenery?</u>
832       </a>
833     </b>
834         <div class="indent">
835           <p>Yes, though it can be a difficult task.  FlightGear's scenery
836           generation is handled by a sister project, TerraGear.  For more
837           details, see
838           <a href="http://terragear.org/">http://terragear.org/</a>.</p>
839         </div>
840       
841
842     <hr>
843     <h2>
844       <a name="7">7 -
845     Flying</a>
846     </h2>
847         <b>
848       <a name="7.1">7.1 -
849     <u>Where can I learn about instrument flying and navigation?</u>
850       </a>
851     </b>
852         <div class="indent">
853           <p>
854           <a href="http://www.navfltsm.addr.com/">http://www.navfltsm.addr.com/</a>
855           is a very good site for learning techniques for navigation.  Also see
856           <a href="http://www.monmouth.com/~jsd/how/">http://www.monmouth.com/~jsd/how/</a>.
857           </p>
858         </div>
859       
860         <b>
861       <a name="7.2">7.2 -
862     <u>What is the difference between Aileron and Rudder?</u>
863       </a>
864     </b>
865         <div class="indent">
866           <p>There is a bit of info on aileron vs. rudder here:
867           <a href="http://www.monmouth.com/~jsd/how/">http://www.monmouth.com/~jsd/how/</a>.
868           </p>
869         </div>
870       
871         <b>
872       <a name="7.3">7.3 -
873     <u>Is there support for multi-player flying?</u>
874       </a>
875     </b>
876         <div class="indent">
877           <p>We have an initial stab at this that is incomplete and only seems
878           to work under Linux.  We'd love to find someone to pick up the
879           slack here and develop this further.  Specifically, plib now has
880           some low level networking support for mult-player games.  It would
881           also be nice to develop support for the DIS protocol.</p>
882         </div>
883       
884         <b>
885       <a name="7.4">7.4 -
886     <u>Is there support for any military scenarios like dog fighting or bomb dropping?</u>
887       </a>
888     </b>
889         <div class="indent">
890           <p>No, not at this time.  Most of our developers are primarily
891           interested and focused on civilian aviation.  We aren't explicitly
892           excluding these features -- we just haven't had anyone who seriously
893           wanted to develop these areas.</p>
894         </div>
895       
896
897     <hr>
898     <h2>
899       <a name="8">8 -
900     FlightGear v0.7.6</a>
901     </h2>
902         <b>
903       <a name="8.1">8.1 -
904     <u>Why do I get an error in viewer.cxx about `exit' being undeclared?</u>
905       </a>
906     </b>
907         <div class="indent">
908           <p>This error cropped up after the release of v0.7.6.  To fix the
909           problem, add "<code>#include &lt;stdlib.h&gt;</code>" to the top of viewer.cxx.</p>
910         </div>
911       
912
913   
914 <hr noshade>
915     <a name="about">
916       <h2>About This Document</h2>
917     </a>
918     <b>FlightGear FAQ</b>
919     <br>$Revision$<br>$Date$<br>
920     <p>
921       <small>
922         This document generated from XML using
923         <a href="http://gingerall.com/charlie/ga/xml/p_sab.xml">Sablotron</a>.
924       </small>
925     </p>
926   </body>
927   <!-- vim: set ts=2 et nowrap: -->
928 </html>