Feedback on graphics in progress

Help and techniques for creating Air Manager Instrument Graphics

Moderators: russ, Ralph

Message
Author
astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Feedback on graphics in progress

#1 Post by astroseus »

Hello gentlemen,


Wanted to show my latest graphic (altimeter for Piper PA28 Arrow) and ask for some feedback.
I finished the graphic today but I am still working on the LUA script for it.

Thanks for your time and feedback.
Regards,
Pieter
Altimeter-PA28_v2.png

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Feedback on graphics in progress

#2 Post by Ralph »

Looks pretty good. You're gonna do a version with and without lighting?
For the font I recommend you to use the Milspec font: http://www.fontsaddict.com/font/MilSpec33558.html

astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Re: Feedback on graphics in progress

#3 Post by astroseus »

Thanks Ralph!
I was thinking of having the 'night ring' to be dimmable by code somehow. But I would need to lookup how that works and can be done.
Thanks for the link to the font. I will swap that out to make it look more authentic.

Regards,
P.

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Feedback on graphics in progress

#4 Post by Ralph »

You can do that when the opacity API.

astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Re: Feedback on graphics in progress

#5 Post by astroseus »

Will look into it Ralph. Thanks for pointing me in the right direction :mrgreen:

astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Re: Feedback on graphics in progress

#6 Post by astroseus »

Ralph wrote: Fri Feb 11, 2022 10:31 pm You can do that when the opacity API.
Hi Ralph,

Do you know if this also works for MSFS2020? So the brightness of the 'backlight' would be controlled by the interior lighting of the airplane in MSFS2020.
I have it from another instrument someone on the forum helped me with for Xplane a year or so ago.

Code: Select all

function set_backlight(brightness_level,bus_voltage)
    if bus_voltage[1]>=23 then -- the electrical bus voltage is sufficient for the lighting
        opacity(backlight,brightness_level) -- we use the brightness level ratio returned by Xplane directly since it is between 0.0 and 1.0
    else
        opacity(backlight,0) -- not enough power for lighting, light is off
    end
end
Appreciate your time and guidance!
Regards
P.

astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Re: Feedback on graphics in progress

#7 Post by astroseus »

Found this in MSFS2020 SDK but don't know how to handle it properly in all honesty.

LIGHT PANEL POWER SETTING

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Feedback on graphics in progress

#8 Post by Ralph »

I don't think that there's a default variable for this in FS2020. I've searched for it, but never been able to find it.

astroseus
Posts: 46
Joined: Sun Jul 18, 2021 9:02 am
Location: Belgium

Re: Feedback on graphics in progress

#9 Post by astroseus »

So the only way to do this is an AM knob or a hardware knob?
Correct? Or am I missing something.

Thanks for getting back to me Ralph.

wohnlich
Posts: 47
Joined: Tue Sep 07, 2021 10:11 pm

Re: Feedback on graphics in progress

#10 Post by wohnlich »

@aviaking
I hope the answer isn't too late. I've been researching the same thing for my own project and found that there actually a variable that gives you the level of the panel lighting:

Code: Select all

"LIGHT POTENTIOMETER:5", "Percent",
It's a decimal number between 0 and 100. I use it to set the opacity of the light graphic, like this:

Code: Select all

 
    opacity(nightlight1,(panellight/130))
The number behind the colon determines which light parameter you're reading. It's documented herebut I found the list isn't complete. I experimented with adding arbitrary numbers until I found the one I needed.

Post Reply