> -----Original Message-----
> From: Detlef Faber [mailto:fa...@sol2500.net] 
> 
> Am Dienstag, den 10.02.2009, 19:32 +0100 schrieb Bo Berglund:
> > > -----Original Message-----
> > > From: Detlef Faber [mailto:fa...@sol2500.net] 
> > > 
> > > > 2. Instrumentation
> > > > -------------------
> > > > I found the instrument panel somewhat lacking (speedometer, 
> > > altitude and variometer only).
> > > > Is there some way I can add to this myself to get for 
> > > > example an attitude display (don't know the English word, but 
> > > > it is the instrument with a ball in a bent glass tube showing 
> > > > if you are flying straight on your wings).
> > > > 
> > > > The altitude meter is graduated in feet, whereas I am used 
> > > > to meter, can this be changed somewhere?
> > > > Also the altitude meter only has one hand where I am used 
> > > > to a tw-hand meter, can this be changed?
> > 
> > Actually the two hands *are* there...
> > I used it a bit more and the real problem is that the hands are 
> > visible (both) only in certain altitudes. When the altitude 
> > changes and the hands rotate they are mysteriously cut off at 
> > certain angles....
> > 
> > It would be good though to have a red area at the outer end of
> > each hand.
> > 
> > > > 
> > > > Is there a g-force meter? I had that on the club ASK-21 and 
> > > > it was zeroed (both ways) before every takeoff.
> > > > 
> > > Instruments from other Aircraft can be used in the ASK21 too.
> > 
> > I have found a "repository" of instruments in the following dirs:
> > data\Aircraft\Instruments-3d and data\Aircraft\Instruments
> > 
> > In the dir data\Aircraft\Generic\Panels I found a panel description
> > file:  generic-vfr-panel.xml where I found this snippet for 
> an attitude
> > indicator.
> > 
> >   <instrument include="../../Instruments/attitude-indicator.xml">
> >    <name>Attitude Gyro</name>
> >    <x>412</x>
> >    <y>335</y>
> >    <w>128</w>
> >    <h>128</h>
> >   </instrument>
> > 
> > The problem now is exactly where I insert these lines?
> > 
> > Neither the ask21.xml nor the ask21-set.xml file mentions 
> instruments.
> > In one of the files the panel is set to invisible:
> > 
> >   <panel>
> >    <visibility archive="y">false</visibility>
> >   </panel>
> > 
> > So, if I would like to add the extra instrument, in which 
> file and where
> > do I add it?
> > 
> The instruments are defined in the ask21.xml file in the ask21/Models
> directory
> 

Thanks, 
I have now located the xml file here, but it looks like it only 
describes the actual needles and moving items....

So I am trying to reverse-engineer the whole design web for the
aircraft. A little Sherlock Holmsing here.

While scouting around I found some rgb files, which turn out
to be images of instruments, for example fahrtenmesser.rgb shows
the body of the speed indicator with no needle.

So I guess that what needs to be done is to first place images of
the instruments against the panel background and then locate the
center pivot point of a guage needle in the center of the image?

If so, I am still struggling with finding where to place the image.
I have run grep against fahrtenmesser in the ASK21 directory
including subdirectories and the only file where it is mentioned
(once) is the HUGE file Models/ask21.ac (989 kbytes)

on line 3912 and following I find this:

OBJECT poly
name "asi"
data 9
Plane.010
texture "fahrtenmesser.rgb"
texrep 1 1
crease 30.000000
numvert 153

Then follows a large array of numbers from line 3920 to line 4072.

I can't believe that this file is created by hand. Is there a design 
tool which places the various images on the panel surface and then
creates this ac file???
And where are the coordinates for the actual location of the instrument.


BosseB







------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to