• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

ADI Problem (XML)

Messages
9
Hi there,

i'm currently building my first ADI, at the moment I don't wanna have it precise or any indications on it, I just want that the card is in the frame... but right now it looks like this

problemvt7.jpg


the code is as follows

<Gauge Name="DC-8 ADI" Version="1.0">
<Image Name="Background.bmp" ImageSizes="490,490"/>
<Element>
<MaskImage Name="Mask.bmp">
<Axis X="245" Y="245"/>
</MaskImage>
</Element>
<Element>
<Position X="245" Y="245"/>
<Image Name="Ladder.bmp">
<Axis X="245" Y="490"/>
</Image>
<Shift>
<Value Minimum="-90" Maximum="90">(A:Attitude indicator pitch degrees,degrees) /-/</Value>
<Scale Y="4"/>
</Shift>
<Rotate>
<Value>(A:Attitude indicator bank degrees,radians)</Value>
</Rotate>
</Element>
<Element>
<MaskImage Name="Background.bmp">
<Axis X="245" Y="245"/>
</MaskImage>
</Element>
</Gauge>

Now the first picture calles Background.bmp is the Frame of the ADI, Mask.bmp is black, Ladder is what you also see on the screenshot...
can anyone try to help me and explain it to me, as I didn't yet really understood the tutorial I read...


Regards
Johann
 
Your "Mask" is the problem...

The Mask image should be black (0,0,0) everywhere except the area enclosed by the frame (the middle), which MUST be 1,1,1 (RGB).
 
naa i'm doing something wrong... didn't really work... ok maybe you can explain me step by step how the structure should be...these are the three images for the gauge
workud5.jpg
 
ok i solved the problem but i got a new one now:

this is how it looks in FS Panel Studio

adinm1.jpg


and this is how it looks in FS

adiflusiiu3.jpg


If i'm not mistaken you move the top left corner of a bitmap with the axis command... i tried some different combinations, but didn't get the ADI Card Centered

here's the code

<Gauge Name="DC-8 ADI" Version="1.0">
<Image Name="ADI_FACE.bmp"/>

<Element>
<Position X="0" Y="0"/>
<Image Name="ADI_FACE.bmp" Bright="Yes"/>
</Element>

<Element>
<Position X="0" Y="0"/>
<MaskImage Name="ADI_MASK.bmp" Bright="Yes">
<Axis X="213" Y="186"/>
</MaskImage>


<Image Name="Ladder.bmp">
<Axis X="213" Y="426"/>
</Image>

<Shift>
<Value Minimum="-90" Maximum="90"> A:Attitude indicator pitch degrees, degrees) /-/</Value>
<Nonlinearity>
<Item Value="15" X="213" Y="339"/>
<Item Value="10" X="213" Y="361"/>
<Item Value="5" X="213" Y="382"/>
<Item Value="0" X="213" Y="426"/>
<Item Value="-5" X="213" Y="469"/>
<Item Value="-10" X="213" Y="490"/>
<Item Value="-15" X="213" Y="512"/>
</Nonlinearity>
</Shift>

<Rotate>
<Value> A:Attitude indicator bank degrees, radians)</Value>
</Rotate>

</Element>
</Gauge>


EDIT:
I got the problem solved!
 
Last edited:
I assume that you found that to both <Shift> and <Rotate> an <Element>, you must define the center point of the element... ;)

Also, regarding the Mask image, you have the 0,0,0 and 1,1,1 areas backwards...
 
my biggest problem was: I was using a different Bitmap then I wanted to use, which had a different seize, therefore I had that offset :D

the whole thing looks like this in the sim now

adifj4.jpg


it's not a beauty yet, but it's my first ADI and it works!
 
Back
Top