1
0
Fork 0
fgdata/Aircraft/c172p/Models/Effects/shadow/3dpontoonshadow.xml
Stuart Buchanan 60d7073794 Initial checking of c172p-detailed.
From https://github.com/Juanvvc/c172p-detailed.git

Commit df6b2c5f4f75d000c5f5ef9c6cc4446784348f20
2015-06-16 22:20:54 +01:00

105 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) 2015, wlbragg. http://forum.flightgear.org/viewtopic.php?f=4&t=25157&start=75#p232085
Under the GPL. This author also provided shadow.ac and shadow.png
Copied from the Boeing 737-100
http://helijah.free.fr/flightgear/hangar.htm
embaranger@free.fr
Fix required:
when the aircraft is flying at a high/low pitch or is rolling over far,
the shadow seems to disappear into the ground.
-->
<PropertyList>
<path>3dpontoonshadow.ac</path>
<nopreview/>
<offsets>
<pitch-deg>3</pitch-deg>
<z-m>-.25</z-m>
</offsets>
<animation>
<object-name>3dpontoonshadow</object-name>
<type>select</type>
<condition>
<and>
<not>
<property>/sim/rendering/rembrandt/enabled</property>
</not>
<property>/sim/rendering/shaders/skydome</property>
<property>/sim/rendering/shadow-volume</property>
<or>
<equals>
<property>/fdm/jsbsim/bushkit</property>
<value>3</value>
</equals><equals>
<property>/fdm/jsbsim/bushkit</property>
<value>4</value>
</equals>
</or>
<not>
<property>/fdm/jsbsim/unit[12]/WOW</property>
</not>
<not>
<property>/fdm/jsbsim/crash</property>
</not>
<not>
<property>/fdm/jsbsim/wing-damage/left-wing</property>
</not>
<not>
<property>/fdm/jsbsim/wing-damage/right-wing</property>
</not>
</and>
</condition>
</animation>
<effect>
<inherits-from>Effects/shadow-vol</inherits-from>
<object-name>3dpontoonshadow</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>3dpontoonshadow</object-name>
</animation>
<!-- pitch -->
<animation>
<type>rotate</type>
<object-name>3dpontoonshadow</object-name>
<property>/orientation/pitch-deg</property>
<factor>-1.0</factor>
<center>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<!-- roll -->
<animation>
<type>rotate</type>
<object-name>3dpontoonshadow</object-name>
<property>/orientation/roll-deg</property>
<factor>1.0</factor>
<center>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
</PropertyList>