searchlight_A800.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Eurocopter EC 130 Searchlight A800 Trakkabeam from Trakka Corp.
  3. This file is part of FlightGear, the free flight simulator
  4. http://www.flightgear.org/
  5. Copyright (C) 2014 Michael Habarta, mhabarta@freenet.de
  6. animations, search light effects
  7. Lightcones are based on the lightcone of the Alphajet
  8. done by BARANGER Emmanuel: email: embaranger@free.fr
  9. aka helijah in the FG world
  10. This program is free software; you can redistribute it and/or
  11. modify it under the terms of the GNU General Public License as
  12. published by the Free Software Foundation; either version 2 of the
  13. License, or (at your option) any later version.
  14. This program is distributed in the hope that it will be useful, but
  15. WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. General Public License for more details.
  18. -->
  19. <PropertyList>
  20. <path>A800/searchlight_A800.ac</path>
  21. <!-- search light cone, derived from Alpha-Jet -->
  22. <model>
  23. <name>searchlight-cone</name>
  24. <path>Aircraft/ec130/Models/SearchLight/A800/light-cone.xml</path>
  25. <offsets>
  26. <x-m> 0.160 </x-m>
  27. <y-m> 0.000 </y-m>
  28. <z-m> 0.000 </z-m>
  29. <pitch-deg>0</pitch-deg>
  30. <heading-deg>180</heading-deg>
  31. </offsets>
  32. </model>
  33. <model>
  34. <name>searchlight-cone-medium</name>
  35. <path>Aircraft/ec130/Models/SearchLight/A800/light-cone-medium.xml</path>
  36. <offsets>
  37. <x-m> 0.160 </x-m>
  38. <y-m> 0.000 </y-m>
  39. <z-m> 0.000 </z-m>
  40. <pitch-deg>0</pitch-deg>
  41. <heading-deg>180</heading-deg>
  42. </offsets>
  43. </model>
  44. <model>
  45. <name>searchlight-cone-large</name>
  46. <path>Aircraft/ec130/Models/SearchLight/A800/light-cone-large.xml</path>
  47. <offsets>
  48. <x-m> 0.160 </x-m>
  49. <y-m> 0.000 </y-m>
  50. <z-m> 0.000 </z-m>
  51. <pitch-deg>0</pitch-deg>
  52. <heading-deg>180</heading-deg>
  53. </offsets>
  54. </model>
  55. <model>
  56. <name>searchlight-cone-xlarge</name>
  57. <path>Aircraft/ec130/Models/SearchLight/A800/light-cone-xlarge.xml</path>
  58. <offsets>
  59. <x-m> 0.160 </x-m>
  60. <y-m> 0.000 </y-m>
  61. <z-m> 0.000 </z-m>
  62. <pitch-deg>0</pitch-deg>
  63. <heading-deg>180</heading-deg>
  64. </offsets>
  65. </model>
  66. <effect>
  67. <inherits-from>Aircraft/ec130/Models/Effects/ec130reflectglas-uber</inherits-from>
  68. <object-name>slight_glass</object-name>
  69. <object-name>slight_lens</object-name>
  70. </effect>
  71. <!-- searchlight grouping, select conditions -->
  72. <animation>
  73. <name>searchlight</name>
  74. <object-name>slight_body</object-name>
  75. <object-name>slight_glass</object-name>
  76. <object-name>slight_lens</object-name>
  77. </animation>
  78. <animation>
  79. <name>slight_cones</name>
  80. <object-name>searchlight-cone</object-name>
  81. <object-name>searchlight-cone-medium</object-name>
  82. <object-name>searchlight-cone-large</object-name>
  83. <object-name>searchlight-cone-xlarge</object-name>
  84. </animation>
  85. <animation>
  86. <type>select</type>
  87. <object-name>searchlight</object-name>
  88. <object-name>slight_gimbal</object-name>
  89. <condition>
  90. <property>sim/model/ec130/searchlight_a800</property>
  91. <not-equals>
  92. <property>sim/current-view/name</property>
  93. <value>Searchlight Follow View</value>
  94. </not-equals>
  95. </condition>
  96. </animation>
  97. <animation>
  98. <type>select</type>
  99. <object-name>slight_cones</object-name>
  100. <condition>
  101. <property>sim/model/ec130/searchlight_a800</property>
  102. </condition>
  103. </animation>
  104. <!-- searchlight heading (stabilized) -->
  105. <animation>
  106. <type>rotate</type>
  107. <object-name>slight_gimbal</object-name>
  108. <object-name>searchlight</object-name>
  109. <object-name>slight_cones</object-name>
  110. <property>sim/model/searchlight/heading-deg</property>
  111. <condition>
  112. <property>sim/model/ec130/searchlight_a800</property>
  113. </condition>
  114. <center>
  115. <x-m> 0 </x-m>
  116. <y-m> 0 </y-m>
  117. <z-m> 0 </z-m>
  118. </center>
  119. <axis>
  120. <x>0</x>
  121. <y>0</y>
  122. <z>1</z>
  123. </axis>
  124. </animation>
  125. <!-- searchlight elevation (stabilized) -->
  126. <animation>
  127. <type>rotate</type>
  128. <name>sl_elev</name>
  129. <object-name>searchlight</object-name>
  130. <object-name>slight_cones</object-name>
  131. <property>sim/model/searchlight/elevation-deg</property>
  132. <condition>
  133. <property>sim/model/ec130/searchlight_a800</property>
  134. </condition>
  135. <axis>
  136. <x>0</x>
  137. <y>-1</y>
  138. <z>0</z>
  139. </axis>
  140. </animation>
  141. <!-- pick animations -->
  142. <!-- toggle searchlight power on/off -->
  143. <animation>
  144. <type>pick</type>
  145. <object-name>slight_body</object-name>
  146. <action>
  147. <button>0</button>
  148. <repeatable>false</repeatable>
  149. <binding>
  150. <condition>
  151. <property>controls/electric/engine/generator</property>
  152. </condition>
  153. <command>nasal</command>
  154. <script>ec130.slight_toggle_power()</script>
  155. </binding>
  156. </action>
  157. <hovered>
  158. <binding>
  159. <command>set-tooltip</command>
  160. <tooltip-id>Searchlight_on_off</tooltip-id>
  161. <label>Power ON/OFF</label>
  162. </binding>
  163. </hovered>
  164. </animation>
  165. <!-- reset -->
  166. <animation>
  167. <type>pick</type>
  168. <object-name>slight_gimbal</object-name>
  169. <action>
  170. <button>0</button>
  171. <repeatable>false</repeatable>
  172. <binding>
  173. <command>nasal</command>
  174. <script>ec130.slight_reset()</script>
  175. </binding>
  176. </action>
  177. <hovered>
  178. <binding>
  179. <command>set-tooltip</command>
  180. <tooltip-id>Searchlight_reset</tooltip-id>
  181. <label>Searchlight reset</label>
  182. </binding>
  183. </hovered>
  184. </animation>
  185. <!-- cycle searchlight -->
  186. <animation>
  187. <type>pick</type>
  188. <object-name>searchlight</object-name>
  189. <object-name>slight_cones</object-name>
  190. <action>
  191. <button>0</button>
  192. <repeatable>false</repeatable>
  193. <binding>
  194. <condition>
  195. <property>sim/model/searchlight/active</property>
  196. </condition>
  197. <command>nasal</command>
  198. <script>ec130.slight_cycle()</script>
  199. </binding>
  200. </action>
  201. <hovered>
  202. <binding>
  203. <command>set-tooltip</command>
  204. <tooltip-id>Searchlight_focus</tooltip-id>
  205. <label>cycle Focus</label>
  206. </binding>
  207. </hovered>
  208. </animation>
  209. <!-- searchlight cone animations -->
  210. <animation>
  211. <type>select</type>
  212. <object-name>searchlight-cone</object-name>
  213. <condition>
  214. <property>sim/model/ec130/searchlight_a800</property>
  215. <property>sim/model/searchlight/active</property>
  216. <property>controls/electric/engine/generator</property>
  217. <not>
  218. <property>sim/model/searchlight/paused</property>
  219. </not>
  220. <equals>
  221. <property>sim/model/searchlight/state</property>
  222. <value>1</value>
  223. </equals>
  224. </condition>
  225. </animation>
  226. <animation>
  227. <type>select</type>
  228. <object-name>searchlight-cone-medium</object-name>
  229. <condition>
  230. <property>sim/model/ec130/searchlight_a800</property>
  231. <property>sim/model/searchlight/active</property>
  232. <property>controls/electric/engine/generator</property>
  233. <not>
  234. <property>sim/model/searchlight/paused</property>
  235. </not>
  236. <equals>
  237. <property>sim/model/searchlight/state</property>
  238. <value>2</value>
  239. </equals>
  240. </condition>
  241. </animation>
  242. <animation>
  243. <type>select</type>
  244. <object-name>searchlight-cone-large</object-name>
  245. <condition>
  246. <property>sim/model/ec130/searchlight_a800</property>
  247. <property>sim/model/searchlight/active</property>
  248. <property>controls/electric/engine/generator</property>
  249. <not>
  250. <property>sim/model/searchlight/paused</property>
  251. </not>
  252. <equals>
  253. <property>sim/model/searchlight/state</property>
  254. <value>3</value>
  255. </equals>
  256. </condition>
  257. </animation>
  258. <animation>
  259. <type>select</type>
  260. <object-name>searchlight-cone-xlarge</object-name>
  261. <condition>
  262. <property>sim/model/ec130/searchlight_a800</property>
  263. <property>sim/model/searchlight/active</property>
  264. <property>controls/electric/engine/generator</property>
  265. <not>
  266. <property>sim/model/searchlight/paused</property>
  267. </not>
  268. <equals>
  269. <property>sim/model/searchlight/state</property>
  270. <value>4</value>
  271. </equals>
  272. </condition>
  273. </animation>
  274. <!-- visibility of light cone -->
  275. <animation>
  276. <type>select</type>
  277. <object-name>cone</object-name>
  278. <condition>
  279. <property>sim/model/ec130/searchlight_a800</property>
  280. <property>sim/model/searchlight/active</property>
  281. <property>controls/electric/engine/generator</property>
  282. <property>sim/model/searchlight/cone-visibility</property>
  283. <not>
  284. <property>sim/model/searchlight/paused</property>
  285. </not>
  286. </condition>
  287. </animation>
  288. <!-- color filter effects -->
  289. <!-- white -->
  290. <animation>
  291. <type>material</type>
  292. <object-name>cone</object-name>
  293. <condition>
  294. <equals>
  295. <property>sim/model/searchlight/filter-state</property>
  296. <value>1</value>
  297. </equals>
  298. </condition>
  299. <emission>
  300. <red>1.0</red>
  301. <green>1.0</green>
  302. <blue>1.0</blue>
  303. </emission>
  304. <transparency>
  305. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  306. <factor>0.03</factor>
  307. <offset>0</offset>
  308. </transparency>
  309. </animation>
  310. <animation>
  311. <type>material</type>
  312. <object-name>slight_glow</object-name>
  313. <condition>
  314. <equals>
  315. <property>sim/model/searchlight/filter-state</property>
  316. <value>1</value>
  317. </equals>
  318. </condition>
  319. <emission>
  320. <red>1.0</red>
  321. <green>1.0</green>
  322. <blue>1.0</blue>
  323. </emission>
  324. <transparency>
  325. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  326. <factor>0.5</factor>
  327. <offset>0.6</offset>
  328. </transparency>
  329. </animation>
  330. <!-- amber filter -->
  331. <animation>
  332. <type>material</type>
  333. <object-name>cone</object-name>
  334. <condition>
  335. <equals>
  336. <property>sim/model/searchlight/filter-state</property>
  337. <value>2</value>
  338. </equals>
  339. </condition>
  340. <emission>
  341. <red>1.0</red>
  342. <green>0.9</green>
  343. <blue>0.0</blue>
  344. </emission>
  345. <transparency>
  346. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  347. <factor>0.03</factor>
  348. <offset>0</offset>
  349. </transparency>
  350. </animation>
  351. <animation>
  352. <type>material</type>
  353. <object-name>slight_glow</object-name>
  354. <condition>
  355. <equals>
  356. <property>sim/model/searchlight/filter-state</property>
  357. <value>2</value>
  358. </equals>
  359. </condition>
  360. <emission>
  361. <red>1.0</red>
  362. <green>0.9</green>
  363. <blue>0.0</blue>
  364. </emission>
  365. <transparency>
  366. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  367. <factor>0.5</factor>
  368. <offset>0.6</offset>
  369. </transparency>
  370. </animation>
  371. <!-- red filter -->
  372. <animation>
  373. <type>material</type>
  374. <object-name>cone</object-name>
  375. <condition>
  376. <equals>
  377. <property>sim/model/searchlight/filter-state</property>
  378. <value>3</value>
  379. </equals>
  380. </condition>
  381. <emission>
  382. <red>1.0</red>
  383. <green>0.33</green>
  384. <blue>0.0</blue>
  385. </emission>
  386. <transparency>
  387. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  388. <factor>0.03</factor>
  389. <offset>0</offset>
  390. </transparency>
  391. </animation>
  392. <!-- red light glow brighter than cone -->
  393. <animation>
  394. <type>material</type>
  395. <object-name>slight_glow</object-name>
  396. <condition>
  397. <equals>
  398. <property>sim/model/searchlight/filter-state</property>
  399. <value>3</value>
  400. </equals>
  401. </condition>
  402. <emission>
  403. <red>1.0</red>
  404. <green>0.33</green>
  405. <blue>0.0</blue>
  406. </emission>
  407. <transparency>
  408. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  409. <factor>0.5</factor>
  410. <offset>0.6</offset>
  411. </transparency>
  412. </animation>
  413. <!-- IR filter -->
  414. <!-- simulate IR filter by showing less light = more transparent -->
  415. <animation>
  416. <type>material</type>
  417. <object-name>cone</object-name>
  418. <condition>
  419. <equals>
  420. <property>sim/model/searchlight/filter-state</property>
  421. <value>4</value>
  422. </equals>
  423. </condition>
  424. <emission>
  425. <red>1.0</red>
  426. <green>1.0</green>
  427. <blue>1.0</blue>
  428. </emission>
  429. <transparency>
  430. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  431. <factor>0.004</factor>
  432. <offset>0.007</offset>
  433. </transparency>
  434. </animation>
  435. <!-- IR light glow brighter than cone -->
  436. <animation>
  437. <type>material</type>
  438. <object-name>slight_glow</object-name>
  439. <condition>
  440. <equals>
  441. <property>sim/model/searchlight/filter-state</property>
  442. <value>4</value>
  443. </equals>
  444. </condition>
  445. <transparency>
  446. <alpha-prop>sim/model/searchlight/cone-visibility</alpha-prop>
  447. <factor>0.07</factor>
  448. <offset>0.1</offset>
  449. </transparency>
  450. </animation>
  451. <!-- REMBRANDT -->
  452. <!-- select volumes -->
  453. <animation>
  454. <type>select</type>
  455. <object-name>LightVolumeS</object-name>
  456. <condition>
  457. <property>/sim/rendering/rembrandt/enabled</property>
  458. <equals>
  459. <property>sim/model/searchlight/filter-state</property>
  460. <value>1</value>
  461. </equals>
  462. </condition>
  463. </animation>
  464. <animation>
  465. <type>select</type>
  466. <object-name>LightVolumeS_2</object-name>
  467. <condition>
  468. <property>/sim/rendering/rembrandt/enabled</property>
  469. <equals>
  470. <property>sim/model/searchlight/filter-state</property>
  471. <value>2</value>
  472. </equals>
  473. </condition>
  474. </animation>
  475. <animation>
  476. <type>select</type>
  477. <object-name>LightVolumeS_3</object-name>
  478. <condition>
  479. <property>/sim/rendering/rembrandt/enabled</property>
  480. <equals>
  481. <property>sim/model/searchlight/filter-state</property>
  482. <value>3</value>
  483. </equals>
  484. </condition>
  485. </animation>
  486. <animation>
  487. <type>select</type>
  488. <object-name>LightVolumeS_4</object-name>
  489. <condition>
  490. <property>/sim/rendering/rembrandt/enabled</property>
  491. <equals>
  492. <property>sim/model/searchlight/filter-state</property>
  493. <value>4</value>
  494. </equals>
  495. </condition>
  496. </animation>
  497. <!-- REMBRANDT -->
  498. <!-- white -->
  499. <animation>
  500. <type>light</type>
  501. <light-type>spot</light-type>
  502. <name>searchlight_white</name>
  503. <object-name>LightVolumeS</object-name>
  504. <condition>
  505. <property>/sim/rendering/rembrandt/enabled</property>
  506. <property>sim/model/ec130/searchlight_a800</property>
  507. <property>sim/model/searchlight/active</property>
  508. <property>controls/electric/engine/generator</property>
  509. <not>
  510. <property>sim/model/searchlight/paused</property>
  511. </not>
  512. <equals>
  513. <property>sim/model/searchlight/state</property>
  514. <value>1</value>
  515. </equals>
  516. </condition>
  517. <position>
  518. <x>-0.160 </x>
  519. <y> 0.000 </y>
  520. <z> 0.000 </z>
  521. </position>
  522. <direction>
  523. <x>-1.0</x>
  524. <y> 0.0</y>
  525. <z> 0.0</z>
  526. </direction>
  527. <diffuse>
  528. <r>1.0</r><g>1.0</g><b>1.0</b><a>1.0</a>
  529. </diffuse>
  530. <specular>
  531. <r>1.0</r><g>1.0</g><b>1.0</b><a>1.0</a>
  532. </specular>
  533. <dim-factor>
  534. <property>/sim/time/sun-angle-rad</property>
  535. <interpolation>
  536. <entry><ind> 0.00 </ind><dep> 0.25 </dep></entry>
  537. <entry><ind> 0.52 </ind><dep> 0.30 </dep></entry>
  538. <entry><ind> 1.04 </ind><dep> 0.35 </dep></entry>
  539. <entry><ind> 1.30 </ind><dep> 0.45 </dep></entry>
  540. <entry><ind> 1.40 </ind><dep> 0.55 </dep></entry>
  541. <entry><ind> 1.48 </ind><dep> 0.75 </dep></entry>
  542. <entry><ind> 1.57 </ind><dep> 1.00 </dep></entry>
  543. <entry><ind> 2.10 </ind><dep> 1.00 </dep></entry>
  544. <entry><ind> 2.62 </ind><dep> 1.00 </dep></entry>
  545. <entry><ind> 3.14 </ind><dep> 1.00 </dep></entry>
  546. </interpolation>
  547. <offset>0</offset>
  548. </dim-factor>
  549. <attenuation>
  550. <c>0.5</c>
  551. <l>0.0002</l>
  552. <q>0.000005</q>
  553. </attenuation>
  554. <exponent>80</exponent>
  555. <near-m>0.0</near-m>
  556. <far-m>1000</far-m>
  557. <cutoff>40</cutoff>
  558. </animation>
  559. <!-- REMBRANDT -->
  560. <!-- amber -->
  561. <animation>
  562. <type>light</type>
  563. <light-type>spot</light-type>
  564. <name>searchlight_amber</name>
  565. <object-name>LightVolumeS_2</object-name>
  566. <condition>
  567. <property>/sim/rendering/rembrandt/enabled</property>
  568. <property>sim/model/ec130/searchlight_a800</property>
  569. <property>sim/model/searchlight/active</property>
  570. <property>controls/electric/engine/generator</property>
  571. <not>
  572. <property>sim/model/searchlight/paused</property>
  573. </not>
  574. <equals>
  575. <property>sim/model/searchlight/state</property>
  576. <value>3</value>
  577. </equals>
  578. <equals>
  579. <property>sim/model/searchlight/filter-state</property>
  580. <value>2</value>
  581. </equals>
  582. </condition>
  583. <position>
  584. <x>-0.160 </x>
  585. <y> 0.000 </y>
  586. <z> 0.000 </z>
  587. </position>
  588. <direction>
  589. <x>-1.0</x>
  590. <y> 0.0</y>
  591. <z> 0.0</z>
  592. </direction>
  593. <diffuse>
  594. <r>1.0</r><g>0.9</g><b>0.0</b><a>1.0</a>
  595. </diffuse>
  596. <specular>
  597. <r>1.0</r><g>0.9</g><b>0.0</b><a>1.0</a>
  598. </specular>
  599. <dim-factor>
  600. <property>/sim/time/sun-angle-rad</property>
  601. <interpolation>
  602. <entry><ind> 0.00 </ind><dep> 0.25 </dep></entry>
  603. <entry><ind> 0.52 </ind><dep> 0.30 </dep></entry>
  604. <entry><ind> 1.04 </ind><dep> 0.35 </dep></entry>
  605. <entry><ind> 1.30 </ind><dep> 0.45 </dep></entry>
  606. <entry><ind> 1.40 </ind><dep> 0.55 </dep></entry>
  607. <entry><ind> 1.48 </ind><dep> 0.75 </dep></entry>
  608. <entry><ind> 1.57 </ind><dep> 1.00 </dep></entry>
  609. <entry><ind> 2.10 </ind><dep> 1.00 </dep></entry>
  610. <entry><ind> 2.62 </ind><dep> 1.00 </dep></entry>
  611. <entry><ind> 3.14 </ind><dep> 1.00 </dep></entry>
  612. </interpolation>
  613. <offset>0</offset>
  614. </dim-factor>
  615. <attenuation>
  616. <c>0.5</c>
  617. <l>0.0002</l>
  618. <q>0.000005</q>
  619. </attenuation>
  620. <exponent>80</exponent>
  621. <near-m>0.0</near-m>
  622. <far-m>1000</far-m>
  623. <cutoff>40</cutoff>
  624. </animation>
  625. <!-- REMBRANDT -->
  626. <!-- red -->
  627. <animation>
  628. <type>light</type>
  629. <light-type>spot</light-type>
  630. <name>searchlight_red</name>
  631. <object-name>LightVolumeS_3</object-name>
  632. <condition>
  633. <property>/sim/rendering/rembrandt/enabled</property>
  634. <property>sim/model/ec130/searchlight_a800</property>
  635. <property>sim/model/searchlight/active</property>
  636. <property>controls/electric/engine/generator</property>
  637. <not>
  638. <property>sim/model/searchlight/paused</property>
  639. </not>
  640. <equals>
  641. <property>sim/model/searchlight/state</property>
  642. <value>3</value>
  643. </equals>
  644. <equals>
  645. <property>sim/model/searchlight/filter-state</property>
  646. <value>3</value>
  647. </equals>
  648. </condition>
  649. <position>
  650. <x>-0.160 </x>
  651. <y> 0.000 </y>
  652. <z> 0.000 </z>
  653. </position>
  654. <direction>
  655. <x>-1.0</x>
  656. <y> 0.0</y>
  657. <z> 0.0</z>
  658. </direction>
  659. <diffuse>
  660. <r>1.0</r><g>0.3</g><b>0.0</b><a>1.0</a>
  661. </diffuse>
  662. <specular>
  663. <r>1.0</r><g>0.3</g><b>0.0</b><a>1.0</a>
  664. </specular>
  665. <dim-factor>
  666. <property>/sim/time/sun-angle-rad</property>
  667. <interpolation>
  668. <entry><ind> 0.00 </ind><dep> 0.25 </dep></entry>
  669. <entry><ind> 0.52 </ind><dep> 0.30 </dep></entry>
  670. <entry><ind> 1.04 </ind><dep> 0.35 </dep></entry>
  671. <entry><ind> 1.30 </ind><dep> 0.45 </dep></entry>
  672. <entry><ind> 1.40 </ind><dep> 0.55 </dep></entry>
  673. <entry><ind> 1.48 </ind><dep> 0.75 </dep></entry>
  674. <entry><ind> 1.57 </ind><dep> 1.00 </dep></entry>
  675. <entry><ind> 2.10 </ind><dep> 1.00 </dep></entry>
  676. <entry><ind> 2.62 </ind><dep> 1.00 </dep></entry>
  677. <entry><ind> 3.14 </ind><dep> 1.00 </dep></entry>
  678. </interpolation>
  679. <offset>0</offset>
  680. </dim-factor>
  681. <attenuation>
  682. <c>0.5</c>
  683. <l>0.0002</l>
  684. <q>0.000005</q>
  685. </attenuation>
  686. <exponent>80</exponent>
  687. <near-m>0.0</near-m>
  688. <far-m>1000</far-m>
  689. <cutoff>40</cutoff>
  690. </animation>
  691. <!-- REMBRANDT -->
  692. <!-- IR simulate less brightness-->
  693. <animation>
  694. <type>light</type>
  695. <light-type>spot</light-type>
  696. <name>searchlight_IR</name>
  697. <object-name>LightVolumeS_4</object-name>
  698. <condition>
  699. <property>/sim/rendering/rembrandt/enabled</property>
  700. <property>sim/model/ec130/searchlight_a800</property>
  701. <property>sim/model/searchlight/active</property>
  702. <property>controls/electric/engine/generator</property>
  703. <not>
  704. <property>sim/model/searchlight/paused</property>
  705. </not>
  706. <equals>
  707. <property>sim/model/searchlight/state</property>
  708. <value>3</value>
  709. </equals>
  710. <equals>
  711. <property>sim/model/searchlight/filter-state</property>
  712. <value>4</value>
  713. </equals>
  714. </condition>
  715. <position>
  716. <x>-0.160 </x>
  717. <y> 0.000 </y>
  718. <z> 0.000 </z>
  719. </position>
  720. <direction>
  721. <x>-1.0</x>
  722. <y> 0.0</y>
  723. <z> 0.0</z>
  724. </direction>
  725. <diffuse>
  726. <r>0.3</r><g>0.3</g><b>0.3</b><a>1.0</a>
  727. </diffuse>
  728. <specular>
  729. <r>0.3</r><g>0.3</g><b>0.3</b><a>1.0</a>
  730. </specular>
  731. <dim-factor>
  732. <property>/sim/time/sun-angle-rad</property>
  733. <interpolation>
  734. <entry><ind> 0.00 </ind><dep> 0.25 </dep></entry>
  735. <entry><ind> 0.52 </ind><dep> 0.30 </dep></entry>
  736. <entry><ind> 1.04 </ind><dep> 0.35 </dep></entry>
  737. <entry><ind> 1.30 </ind><dep> 0.45 </dep></entry>
  738. <entry><ind> 1.40 </ind><dep> 0.55 </dep></entry>
  739. <entry><ind> 1.48 </ind><dep> 0.75 </dep></entry>
  740. <entry><ind> 1.57 </ind><dep> 1.00 </dep></entry>
  741. <entry><ind> 2.10 </ind><dep> 1.00 </dep></entry>
  742. <entry><ind> 2.62 </ind><dep> 1.00 </dep></entry>
  743. <entry><ind> 3.14 </ind><dep> 1.00 </dep></entry>
  744. </interpolation>
  745. <offset>0</offset>
  746. </dim-factor>
  747. <attenuation>
  748. <c>0.5</c>
  749. <l>0.0002</l>
  750. <q>0.000005</q>
  751. </attenuation>
  752. <exponent>80</exponent>
  753. <near-m>0.0</near-m>
  754. <far-m>1000</far-m>
  755. <cutoff>40</cutoff>
  756. </animation>
  757. </PropertyList>