- Messages
- 319
- Country

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:
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>



