Optica_Shadow.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0"?>
  2. <!--
  3. Edgley Optica
  4. Gary R. Neely 'Buckaroo', Dec 2011
  5. -->
  6. <PropertyList>
  7. <path>shadow.ac</path>
  8. <!-- Special Shaders -->
  9. <animation>
  10. <type>noshadow</type>
  11. <object-name>Shadow</object-name>
  12. </animation>
  13. <!-- Kinda ironic, ain't it? -->
  14. <!-- Animations -->
  15. <!--
  16. Negate roll and pitch so shadow remains parallel with ground
  17. -->
  18. <animation>
  19. <type>rotate</type>
  20. <object-name>Shadow</object-name>
  21. <property>orientation/roll-deg</property>
  22. <center>
  23. <x-m>0</x-m>
  24. <y-m>0</y-m>
  25. <z-m>0</z-m>
  26. </center>
  27. <axis>
  28. <x>1</x>
  29. <y>0</y>
  30. <z>0</z>
  31. </axis>
  32. </animation>
  33. <animation>
  34. <type>rotate</type>
  35. <object-name>Shadow</object-name>
  36. <property>orientation/pitch-deg</property>
  37. <factor>-1.0</factor>
  38. <center>
  39. <x-m>3.4</x-m>
  40. <y-m>0</y-m>
  41. <z-m>0</z-m>
  42. </center>
  43. <axis>
  44. <x>0</x>
  45. <y>1</y>
  46. <z>0</z>
  47. </axis>
  48. </animation>
  49. <!--
  50. Translate down to ground level
  51. Would like to displace the shadow a bit based on sun angle, but all I really want is a
  52. plane-to-ground reference for landing, so it's not really worth the trouble.
  53. -->
  54. <animation>
  55. <type>translate</type>
  56. <object-name>Shadow</object-name>
  57. <property>position/gear-agl-m</property>
  58. <factor>1.0</factor>
  59. <center>
  60. <x-m>0</x-m>
  61. <y-m>0</y-m>
  62. <z-m>0</z-m>
  63. </center>
  64. <axis>
  65. <x>0</x>
  66. <y>0</y>
  67. <z>-1</z>
  68. </axis>
  69. </animation>
  70. <!--
  71. Increase transparency as distance approaches 100m. Total fadeout at 100m.
  72. Master select will disable animation after 100m.
  73. -->
  74. <animation>
  75. <type>blend</type>
  76. <object-name>Shadow</object-name>
  77. <property>position/gear-agl-m</property>
  78. <factor>.01</factor>
  79. <offset>0</offset>
  80. <max>1.0</max>
  81. <min>0.0</min>
  82. </animation>
  83. </PropertyList>