- Code: Select all
<model>
<name>StrobeLightR</name>
<path>Aircraft/PC-9M/Models/Effects/lights/spotlight.xml</path>
<offsets>
<x-m>-0.345</x-m>
<y-m> 5.30</y-m>
<z-m> 0.68</z-m>
</offsets>
<overlay>
<params>
<name>StrobeLightR</name>
<power-source>/sim/model/lights/strobe/state</power-source>
<direction>
<x>0</x>
<y>-1</y>
<z>0</z>
</direction>
<ambient>
<r>1.0</r>
<g>1.0</g>
<b>0.8</b>
</ambient>
<specular>
<r>1.0</r>
<g>1.0</g>
<b>1.0</b>
</specular>
</params>
</overlay>
</model>
Unfortunately there is one problem: ALS lights pointing_x, pointing_y and pointing_z are in the opposite direction of Compositor lights <direction><x,y,z>
As they are aliased there is no way to negate one of the two which makes this approach only viable for point lights and not for spotlights.
Does anybody have any clever idea how to solve this?
Erik