• 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.

3d altimeter drums not working, help?

Messages
257
Country
us-newyork
hi, all, been working on my A300 recently & found out that the 3d altimeter drums and needle does not sync with the pfd screen or change the number of the altimeter setting in hg or mb, how do i get the 3d altimeter (altitude digits and mb/hg setting knob) to sync with the pfd mb and hg are stuck at 9, 9, 9, 9 and framed (9th keyframe) if pfd and the tooltip (156 meters, 511 feet) is the only source displaying correct altitude. the drum keeps resetting to zero when i try to set it or when the plane climbs or descends. how do i fix this and the altimeter needle not spinning?
1753982796215.png


modeldef animation codes for the 3D Altimeter:



<PartInfo>
<Name>needle_altimeter_jet</Name>
<AnimLength>400</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE, feet) 0.04 * 400 min 0 max
0.04 = 400 KF / 10,000 ft</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>alt_drum_10000</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(L:INDICATED ALTITUDE, feet) 10000 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>alt_drum_1000</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(L:INDICATED ALTITUDE, feet) 1000 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>alt_drum_100</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(L:INDICATED ALTITUDE, feet) 100 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>alt_drum_10</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(L:INDICATED ALTITUDE, feet) 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>altimeter_setting_bug</Name>
<AnimLength>9</AnimLength>
<Animation>
<Parameter>
<Code>(A:KOHLSMAN SETTING HG, inHg) 28 - 10 *</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>altimeter_setting_bug_mb</Name>
<AnimLength>9</AnimLength>
<Animation>
<Parameter>
<Code>(A:KOHLSMAN SETTING MB, Millibars)</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>alt_knob_mb</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:KOHLSMAN SETTING MB, Millibars) 950 - 1 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_KOHLSMAN_MB</TooltipID>
<MouseFlags>LeftSingle+WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmp 0 == if{ (>K:KOHLSMAN_INC) }
(M:Event) 'WheelDown' scmp 0 == if{ (>K:KOHLSMAN_DEC) }
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>alt_knob_hg</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:KOHLSMAN SETTING HG, inHg) 28 - 33.33 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_KOHLSMAN_HG</TooltipID>
<MouseFlags>LeftSingle+WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmp 0 == if{ (>K:KOHLSMAN_INC) }
(M:Event) 'WheelDown' scmp 0 == if{ (>K:KOHLSMAN_DEC) }
</CallbackCode>
</MouseRect>
</PartInfo>
 
<!-- Altimeter Needle -->
<PartInfo>
<Name>needle_altimeter_jet</Name>
<AnimLength>400</AnimLength>
<Animation>
<Parameter>
<!-- Needle rotates with altitude: 400 keyframes for 10,000 ft -->
<Code>(A:INDICATED ALTITUDE, feet) 0.04 * 400 min 0 max</Code>
</Parameter>
</Animation>
</PartInfo>

<!-- Altitude Drums -->
<PartInfo>
<Name>alt_drum_10000</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE, feet) 10000 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>alt_drum_1000</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE, feet) 1000 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>alt_drum_100</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE, feet) 100 / 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>alt_drum_10</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE, feet) 10 % flr 10 *</Code>
</Parameter>
</Animation>
</PartInfo>

<!-- Altimeter Setting Bug (inHg) -->
<PartInfo>
<Name>altimeter_setting_bug</Name>
<AnimLength>9</AnimLength>
<Animation>
<Parameter>
<!-- Map 28.00–31.00 inHg to 9 keyframes -->
<Code>(A:KOHLSMAN SETTING HG, inHg) 28 - 3 *</Code>
</Parameter>
</Animation>
</PartInfo>

<!-- Altimeter Setting Bug (mb) -->
<PartInfo>
<Name>altimeter_setting_bug_mb</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<!-- 950 to 1050 mb over 100 keyframes -->
<Code>(A:KOHLSMAN SETTING MB, Millibars) 950 - 1 *</Code>
</Parameter>
</Animation>
</PartInfo>

<!-- MB Knob (mouse interaction) -->
<PartInfo>
<Name>alt_knob_mb</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:KOHLSMAN SETTING MB, Millibars) 950 - 1 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_KOHLSMAN_MB</TooltipID>
<MouseFlags>LeftSingle+WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmp 0 == if{ (>K:KOHLSMAN_INC) }
(M:Event) 'WheelDown' scmp 0 == if{ (>K:KOHLSMAN_DEC) }
</CallbackCode>
</MouseRect>
</PartInfo>

<!-- HG Knob (mouse interaction) -->
<PartInfo>
<Name>alt_knob_hg</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<!-- 28.00 to 31.00 inHg over 100 keyframes = ~0.03 resolution -->
<Code>(A:KOHLSMAN SETTING HG, inHg) 28 - 33.33 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_KOHLSMAN_HG</TooltipID>
<MouseFlags>LeftSingle+WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmp 0 == if{ (>K:KOHLSMAN_INC) }
(M:Event) 'WheelDown' scmp 0 == if{ (>K:KOHLSMAN_DEC) }
</CallbackCode>
</MouseRect>
</PartInfo>

Try this code
 
Back
Top