I have been trying to create a night panel using a black mask for dimming and light mask for lighted texts but in vane. The layers are as follows:
Light texture
----------------
Black mask
----------------
Switches graphics
----------------
Panel graphics
How would you make it work properly so that when the panel is dimmed, all the switches are dimmed as well but the light texture will not mask the switches (which move depending on positions)
Help is deeply appreciated thanks!
Freedom
How to create a panel light with switches on top
Re: How to create a panel light with switches on top
Hi,
I would like to offer my assistance if it's purely graphics that you're struggling with.
The coding part, I'm struggling with myself unfortunately.
However, I fail to understand what the problem is you're having.
Can you explain a little bit with images what you're trying to do and where the blocker is.
Thanks
P.
I would like to offer my assistance if it's purely graphics that you're struggling with.
The coding part, I'm struggling with myself unfortunately.
However, I fail to understand what the problem is you're having.
Can you explain a little bit with images what you're trying to do and where the blocker is.
Thanks
P.
Re: How to create a panel light with switches on top
Hi
The easiest way is to create "holes" in your light and black masks where you want the underlying masks to show thru. This using boolean operations in Skinman.
Could you post here the 4 masks png resources?
Jacques
The easiest way is to create "holes" in your light and black masks where you want the underlying masks to show thru. This using boolean operations in Skinman.
Could you post here the 4 masks png resources?
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: How to create a panel light with switches on top
Thx, here are my graphics, not sure if there is a better way to do it though.
I have a basic panel A backlight texture I have a 3 pos switch Plus a 1x1 black pixel as a dimming mask
How would you mask the switches? Do you need 3 individual masks?
I have a basic panel A backlight texture I have a 3 pos switch Plus a 1x1 black pixel as a dimming mask
How would you mask the switches? Do you need 3 individual masks?
Re: How to create a panel light with switches on top
Hi
The problem is in the 1x1 dimming mask.
It should instead be a full sized black mask with « holes » in it at the switches locations so this part is not dimmed.
And switches graphics should be located on the very top layer, (in reality, declared further down in the Lua code) since the switches are not lighted nor affected by the black mask itself
The switches should contain the graphics of the lever only, not the casing which is normally dimmed as well and should be in the main panel..
As per the switches, I think the shadow should be mirrored vertically, as the shadow being ABOVE the switches make them weird
The problem is in the 1x1 dimming mask.
It should instead be a full sized black mask with « holes » in it at the switches locations so this part is not dimmed.
And switches graphics should be located on the very top layer, (in reality, declared further down in the Lua code) since the switches are not lighted nor affected by the black mask itself
The switches should contain the graphics of the lever only, not the casing which is normally dimmed as well and should be in the main panel..
As per the switches, I think the shadow should be mirrored vertically, as the shadow being ABOVE the switches make them weird
Last edited by JackZ on Sun Feb 20, 2022 12:31 pm, edited 1 time in total.
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: How to create a panel light with switches on top
There you go.
In your sample, the lighted text are not exactly flush with the panel text. use this mask and play with the opacity() function to achieve the desired result If you want more sophisticated effects, you'll have to create three separate images of the switch which have been darkened, and add a second set of switch as an overlay, with no action.
, like this one:
which yields the following result: Then move both switches (the day and the night version) simultaneously using switch_set_position() in the callback function of the switch.
Then play with the opacity() function for the darkened switch according to the current lighting condition
Jacques
In your sample, the lighted text are not exactly flush with the panel text. use this mask and play with the opacity() function to achieve the desired result If you want more sophisticated effects, you'll have to create three separate images of the switch which have been darkened, and add a second set of switch as an overlay, with no action.
, like this one:
which yields the following result: Then move both switches (the day and the night version) simultaneously using switch_set_position() in the callback function of the switch.
Then play with the opacity() function for the darkened switch according to the current lighting condition
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ