Jump to content
Sign in to follow this  
ADuke

MFD gauges, move vertically

Recommended Posts

Hi,

So, I have this MFD that I have created which displays the fuel level and rpm level of my helicopter, here is what the MFD looks like in-game...

Pic

The green level indicators for the 2 gauges I would like to move vertically up and down in relation to the fuel and rpm levels.

Here is my Model.cfg entries for the 2 indicators..

class fuelStick

{

type="translation";

source="fuel";

memory = 0;

selection="fuelStick";

axis = "fuelStick_axis";

minValue = 0.0;

maxValue = 1.0;

minPhase = 0.0;

maxPhase = 1.0;

offset0 = 0.0;

offset1 = 0.0;

};

class rpmStick

{

type="translation";

source="rpm";

memory = 0;

selection="rpmStick";

axis = "rpmStick_axis";

minValue = 0.0;

maxValue = 1.0;

minPhase = 0.0;

maxPhase = 1.0;

offset0 = 0.0;

offset1 = 0.0;

};

The problem I am having is that the indicators do not move at all, at one point they were moving, but in the wrong direction and they were moving outside of the MFD, so I made some changes and this is what I am left with.

Here is a pic of the model in 02...

Pic2

and here is a pic of the model, in o2, with the axes highlighted....

Pic3

Note: The selection, in o2, for the animated portion itself, is not the entire green bar, it is the 2 top points of the green bars, this is so only the top plane moves, and not the entire bar, if that makes sense.

Your help is appreciated ;) ,

-AD

Edited by ADuke

Share this post


Link to post
Share on other sites

Well, I solved it..

Here is what I did...

I needed to make another axis point at the top of the animated green bar, so 2 axis points, one at the top, one at the bottom.

Since the beginning of the animation is at full fuel and rpm levels I had to reverse the values so that the animation would play in reverse, my model.cfg will explain more....

class fuelStick

{

type="translation";

source="fuel";

memory = 0;

selection = "fuelStick";

axis = "fuelStick_axis";

minValue = 0.0; //when the fuel level is 0

maxValue = 1.0;//when the fuel level is 1

minPhase = -1.5;// when fuel level is 0, play the animation in reverse at a value of -1.5

maxPhase = 0.0; when fuel level is 1, do not play animation

offset0 = -1.0; offset the animation by -1.0 to compensate for max values at start

offset1 = 0.0;

};

class rpmStick

{

type="translation";

source="rpm";

memory = 0;

selection = "rpmStick";

axis = "rpmStick_axis";

minValue = 0.0;

maxValue = 1.0;

minPhase = -1.5;

maxPhase = 1.5;

offset0 = -1.0;

offset1 = 0.0;

};

Hopefully someone can get some use out of this when trying to animate an MFD display.

-AD

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×