First of all, congrats on the amazing work you are doing with this models
I don't know if this is the correct place to ask this but here I go.
I'm touching the code for learning purposes and I'm trying to do some local modification. I decided something easy so I'm trying to make the DIM and BRT buttons operative in the MCDU. So far I've managed do all that is needed to change up/down the brightness property in 0.2 steps between 0.0 and 1.0. Nasal console shows proper values when printing them so all seems to be working fine to this point.
I've also added this code for mcdu1 (and the corresponding one for mcdu2):
- Code: Select all
<animation>
<type>material</type>
<object-name>mcdu1.screen</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>MCDU[0]/brightness</factor-prop>
</emission>
</animation>
But the MCDU display doesn't change color intensity or switches off when brightness is 0 (e.g. PFD displays). No related errors in log and the plane works as usual. I've checked the ac files and all seems correct. I can't find what I'm missing.
Do I have to specify something else for the mcdu screens to dim its emission?
Another question I have. Are both MCDU exactly the same? (mcdu1 on on ac1 / mcdu2 on ac2). If so, why not have only a Nasal/MCDU/MCDU.nas instead of two and pass an mcdu id parameter to their functions to avoid duplicated nasal code?
Sorry if this is not the place or I'm bothering you with my questions. As I said, awesome job and thank you to the team.