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

FSXA VC Animation jerky?

Messages
319
Country
unitedkingdom
Hi guys,

Doing the animations for the HSI, I can't seem to get the CDI animation to animate smoothly. All the other animations work fine, smooth as silk, but this one refuses to play ball. Keyframes are set up on the model etc., but the keyframe position only seems to update once per second or so, rather than every frame.

I'm thinking this is something to do with this being a value from the nav system, which I seem to recall only properly refreshes only so often.

This does seem to happen on the default aircraft HSI as well, but oddly, doesn't happen on the default VOR-only type gauges.

Any ideas on how to make it smoother without resorting to writing a custom bit of code to interpolate it myself?

Here's the modeldef code:

Code:
<Animation name="AP_Angel_hsi_cdi_v2" guid="C475161E-9816-451b-BBC0-B12B7436A369" length="254" type="Sim" typeParam2="AP_Angel_hsi_cdi_v2" typeParam="AutoPlay"/>
  <PartInfo>
    <Name>AP_Angel_hsi_cdi_v2</Name>
    <AnimLength>254</AnimLength>
    <Animation>
      <Parameter>
        <Sim>
          <Variable>HSI CDI needle</Variable>
          <Units>number</Units>
	  <Bias>127</Bias>
	  <Lag>120</Lag>
        </Sim>
      </Parameter>
    </Animation>
  </PartInfo>
 
This is what I use and it's smooth as silk...

The only difference I see is that I use a faster <Lag> than you do.

Code:
  <PartInfo>
    <Name>T38_HSI_needle_CDI</Name>
    <AnimLength>254</AnimLength>
    <Animation>
      <Parameter>
        <Code>
          (L:T38_HSI_SourceSwitch,enum) 0 !=
          if{ (A:HSI CDI needle, Number) 127 + }
          els{ (A:NAV CDI:2, Number) 127 + }
        </Code>
        <Lag>300</Lag>
      </Parameter>
    </Animation>
  </PartInfo>
 
Last edited:
Thanks - it's still a little jerky crossing the localiser at medium speeds, which might just be my computer, but the different lag value does help. I'll do some more tweaking. I'm just doing a 3D high res version of the default KCS 55A HSI, so it's not massively complicated.
 
This is what I use and it's smooth as silk...

The only difference I see is that I use a faster <Lag> than you do.

Code:
  <PartInfo>
    <Name>T38_HSI_needle_CDI</Name>
    <AnimLength>254</AnimLength>
    <Animation>
      <Parameter>
        <Code>
          (L:T38_HSI_SourceSwitch,enum) 0 !=
          if{ (A:HSI CDI needle, Number) 127 + }
          els{ (A:NAV CDI:2, Number) 127 + }
        </Code>
        <Lag>300</Lag>
      </Parameter>
    </Animation>
  </PartInfo>


Hello

My researches led me to this topic :)

I made a VOR/ILS gauge with the code above, but I can not get smooth movement at all in FS, it just bounces as it moves.

The needle has 3 keyframes : 0 - 127 - 254

What else can I do for success?
 
Is the data from FSX coming out jerky (like maybe updated only every half a second or so)?

Make a simple gauge to display a text readout of the variable and check that against your needle movement.

I say this because I made an old style DME gauge with drum numbers (you know, numbers on a tube that rotates around) once and the DME data from FSX would only update every second or so. I had to interpolate the data to get nice smooth rolling drums and not have nasty jerking. Very tricky.
 
1) Added more keyframes, no success

2) Yes I assigned linear controllers

2) Yes I have a simple text gau for variables. The anim of needle is driven by NAV CDI:1 and I also tried with NAV RADIAL ERROR:1 but I got same results.
Same results for the glide slope indicator also. The text data is "jerky" with both of the variables.
 
It has Lag, but jerky :(

Code:
<PartInfo>
  <Name>ki_525_nav_cdi</Name>
  <AnimLength>254</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV CDI:1, Number) 127 + </Code>
        <Lag>300</Lag>
      </Parameter>
    </Animation>
  </PartInfo>
 
Have you tried values other than 300?

Yes. 30, 500, 2000 etc. The behavior of "jerky"-ing changes with different Lag settings, but it remains jerky :)

When the HSI receive a signal and the needle moves from center to left or right to its "new" position, the movement is smooth as silk.

But when I approach to the radial in a given heading and needle moves toward the center, the movement will be "jerky"
 
Back
Top