• 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 3D ASI needle - nonlinearity

Vitus

Resource contributor
Messages
1,480
Country
newzealand
Hi,

one of the many other things I procrastinate is the ASI and I hope you can help me with this.
I want to build a 3D instrument and the problem is its non linearity. I know that in 2D XML gauges you can define non linearity tables but how do you implement this behavior in a 3D needle?
One option I thought of is to define the keyframes in a non-linear way. But I am not sure if that is practical. What methods do you use?

Regards
Vitus
 
Actually, that is the only method of which I'm aware... :cool:
 
If you have a way to measure the angles, it really, really helps!
 
:confused: what do you mean by that? I don't need to know the angle - instead I adjust the keyframes. To give an example:
My ASI ranges from 0 to 310 mph. The correct keyframe for 150 mph will be:
150*100/310=48
I put the slider to frame 48 and animate-adjust the needle to show 150mph.
That was done for about 20 keyframes and it works quite well.
Actually, this is easier than I thought => no need for complex maths in XML though.

Regards
Vitus
 
Ah, you've chosen the easiest of two possible methods (and one which I would choose myself)...

...you've "hard coded" the "non-linearity table" via keyframes.

The other approach would use advanced math in the evaluation script, and a <Scale> entry. For that method you would need to know the angles for each non-linear arc segment's start/end points. :eek:
 
I see! I think I need some evaluations like that for my long-wave-receiver-frequency-selector.
radio01.jpg


Hopefully no big deal in this case...

Thanks Bill! And have a nice day!
Vitus
 
Thanks! Actually it's just basic stuff. :rolleyes: But the nice thing is: every switch and lever is animated and can be moved around. I am working on the coding now - it's already possible to slowly turn the loop antenna on top of the fuselage to pick up the bearing of the radio station :cool:
 
Back
Top