- Code: Select all
<animation>
<type>material</type>
<object-name>FuelValveHandle</object-name>
<object-name>Panel</object-name>
<object-name>PanelFloor</object-name>
<object-name>ElevatorTrimControlsMount</object-name>
<object-name>ElevatorTrimInterruptSwitch</object-name>
<object-name>ElevatorTrimInterruptSwitchMount</object-name>
<object-name>ElevatorTrimInterruptSwitchGuard</object-name>
<object-name>ElevatorTrimInterruptSwitchGuardMount</object-name>
<object-name>ElevatorTrimSwitch</object-name>
<object-name>ElevatorTrimSwitchMount</object-name>
<object-name>BarPanel</object-name>
<object-name>ParkingBrakeHandle</object-name>
<object-name>RegistrationPlatePanelLeft</object-name>
<object-name>RegistrationPlatePanelRight</object-name>
<object-name>ControlStick</object-name>
<object-name>ControlStickTriggerButton</object-name>
<object-name>ControlStickTrimSwitch</object-name>
<object-name>Left Electric Switches Panel</object-name>
<object-name>Right Electric Switches Panel</object-name>
<object-name>EngineControlsMount</object-name>
<object-name>EngineControlsConditionLever</object-name>
<object-name>EngineControlsPropellerPitchLever</object-name>
<object-name>EngineControlsThrottleLever</object-name>
<object-name>Left Circuit breakers Panel</object-name>
<object-name>Right Circuit breakers Panel</object-name>
<object-name>FlapsLever</object-name>
<object-name>FlapsLeverMount</object-name>
<object-name>Placards</object-name>
<emission>
<red>0.2</red>
<green>0.2</green>
<blue>0.2</blue>
<factor-prop>controls/lighting/light_cabin</factor-prop>
</emission>
</animation>
which is supposed to mimick an overhead panel light's shine on the panel parts. But instead of making the panel "glow" a bit white in the dark, this gives the panel a dark red color with <factor-prop> set to false and a white emission that appears a bit red (due to the diffuse color being red) with <factor-prop> set to true. if I comment out the <emission> part the red color disappears, but of course I don't get any emission anymore, either.
So, what could be causing this ? I'm not applying any other material animations to the panel parts (searching for "Panel" in the XML file only gave one match … in the above emission animation) nor any effects, also the object has no texture assigned and all material colors are set to grey in the AC file:
- Code: Select all
MATERIAL "PanelMaterial" rgb 0.523 0.523 0.523 amb 0.523 0.523 0.523 emis 0.000 0.000 0.000 spec 1.000 1.000 1.000 shi 64 trans 0.000
EDIT: Adding
- Code: Select all
<ambient>
<red>0.523</red>
<green>0.523</green>
<blue>0.523</blue>
</ambient>
to the above animation code fixes the colors, but it's a hack, and I'd have to keep the values in sync whenever I change the material color in Blender - there must be a better solution ???