I'm modelling a DHC1 chipmunk trainer with tandem cockpit.
Electrical system is buckaroo's nas with an xml file to handle the connections.
Currently, I've got one model definition of the altimeter, vsi, hsi etc. which are loaded into another xml called 'panel'. The panel.xml model is then loaded twice into the cockpit.xml model to provide the front and rear instruments.
The chipmunk doesn't really have instrument lights - just front and rear variable brightness cockpit lights and what look like 'glow in the dark' needles and figures on the instruments.
What I need to do is provide independent lighting of the front and rear cockpit and instruments.
At the moment each single definition of the instruments contains:
- Code: Select all
<animation>
<type>material</type>
<object-name>face</object-name>
<object-name>needle</object-name>
<emission>
<factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
<red> 0.75 </red>
<green> 0.25 </green>
<blue> 0.25 </blue>
</emission>
</animation>
I suppose I could tie the emission to time of day rather than the cockpit lights - but the cockpit lights would alter the appearance of the dials even at night.
And obviously changing /systems/electrical/outputs/instrument-lights will alter the brightness of both front and rear instruments.
Questions
1. How can I handle this so I don't end up with 2 definitions of each instrument for the front and back?
2. I'm getting the impression that I should be doing lighting with Rembrandt in mind - how should I handle that?