Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.36 KB | None | 0 0
  1. <lxs>
  2. <scene root="root" axis_length="50" />
  3.  
  4. <views default="defaultCamera">
  5. <perspective id="defaultCamera" near="0.1" far="500" angle="60">
  6. <from x="50" y="5" z="70" />
  7. <to x="0" y="-10" z="0" />
  8. </perspective>
  9. <perspective id="Over the Sea" near="0.1" far="500" angle="90">
  10. <from x="30" y="10" z="50" />
  11. <to x="5" y="-5" z="0" />
  12. </perspective>
  13. <perspective id="Under the Sea" near="0.1" far="500" angle="30">
  14. <from x="0" y="-15" z="100" />
  15. <to x="0" y="-27" z="0" />
  16. </perspective>
  17. <ortho id="orthoCamera (Boat)" near="0.1" far="500" left="-15" right="15" top="15" bottom="-15">
  18. <from x="30" y="15" z="30" />
  19. <to x="0" y="0" z="0" />
  20. </ortho>
  21. <perspective id="Fish" near="0.1" far="500" angle="45">
  22. <from x="0" y="0" z="15" />
  23. <to x="0" y="-27" z="0" />
  24. </perspective>
  25. </views>
  26.  
  27. <globals>
  28. <ambient r="0.2" g="0.2" b="0.2" a="1.0" />
  29. <background r="0.0" g="0.0" b="0.0" a="1.0" />
  30. </globals>
  31.  
  32. <lights>
  33. <omni id="defaultLight" enabled="1">
  34. <location x="0" y="5" z="70" w="1.0" />
  35. <ambient r="0.6" g="0.6" b="0.6" a="1.0" />
  36. <diffuse r="1.0" g="1.0" b="1.0" a="1.0" />
  37. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  38. </omni>
  39. <omni id="DayLight" enabled="0" >
  40. <location x="0" y="20" z="0" w="0" />
  41. <ambient r="0.0" g="0.0" b="0.0" a="1.0" />
  42. <diffuse r="1.0" g="1.0" b="1.0" a="1.0" />
  43. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  44. </omni>
  45. <omni id="oceanLight" enabled="0" >
  46. <location x="0" y="-20" z="0" w="0" />
  47. <ambient r="0.0" g="0.0" b="0.0" a="1.0" />
  48. <diffuse r="1.0" g="1.0" b="1.0" a="1.0" />
  49. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  50. </omni>
  51. <spot id="spotLight" enabled="0" angle="0" exponent="1">
  52. <location x="0" y="0" z="5.0" w="1.0" />
  53. <target x="0" y="0" z="3.0" />
  54. <ambient r="0.0" g="0.0" b="0." a="1.0" />
  55. <diffuse r="1.0" g="1.0" b="1.0" a="1.0" />
  56. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  57. <attenuation constant="1" linear="0" quadratic="0" />
  58. </spot>
  59. </lights>
  60.  
  61. <textures>
  62. <texture id="blueScale" file="scenes/images/blue-scales.jpg" />
  63. <texture id="redScale" file="scenes/images/red-scales.jpg" />
  64. <texture id="greenScale" file="scenes/images/green-scales.jpg" />
  65. <texture id="iron" file="scenes/images/iron.png" />
  66. <texture id="floater" file="scenes/images/floater.png" />
  67. <texture id="water" file="scenes/images/water.jpg" />
  68. </textures>
  69.  
  70. <materials>
  71. <material id="blueMetal" shininess="10">
  72. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  73. <ambient r="0.27" g="0.51" b="0.71" a="1.0" />
  74. <diffuse r="0.27" g="0.51" b="0.71" a="1.0" />
  75. <specular r="0.0" g="0.25" b="0.71" a="1.0" />
  76. </material>
  77. <material id="greyMetal" shininess="10">
  78. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  79. <ambient r="0.5" g="0.5" b="0.5" a="1.0" />
  80. <diffuse r="0.5" g="0.5" b="0.5" a="1.0" />
  81. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  82. </material>
  83. <material id="redMetal" shininess="10">
  84. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  85. <ambient r="0.5" g="0.5" b="0.5" a="1.0" />
  86. <diffuse r="0.5" g="0.5" b="0.5" a="1.0" />
  87. <specular r="1.0" g="0.2" b="0.2" a="1.0" />
  88. </material>
  89. <material id="blueScale" shininess="10">
  90. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  91. <ambient r="0.0" g="0.6" b="0.8" a="1.0" />
  92. <diffuse r="0.0" g="0.2" b="0.4" a="1.0" />
  93. <specular r="0.0" g="0.6" b="0.8" a="1.0" />
  94. </material>
  95. <material id="redScale" shininess="10">
  96. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  97. <ambient r="0.9" g="0.5" b="0.4" a="1.0" />
  98. <diffuse r="0.45" g="0.25" b="0.2" a="1.0" />
  99. <specular r="0.9" g="0.5" b="0.4" a="1.0" />
  100. </material>
  101. <material id="greenScale" shininess="10">
  102. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  103. <ambient r="0.70" g="0.93" b="0.23" a="1.0" />
  104. <diffuse r="0.35" g="0.46" b="0.11" a="1.0" />
  105. <specular r="0.7" g="0.93" b="0.23" a="1.0" />
  106. </material>
  107. <material id="clearWater" shininess="10">
  108. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  109. <ambient r="0.0" g="0.75" b="1.0" a="0.0" />
  110. <diffuse r="0.0" g="0.30" b="0.5" a="0.0" />
  111. <specular r="0.0" g="0.75" b="1.0" a="0.0" />
  112. </material>
  113. <material id="muddyWater" shininess="1">
  114. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  115. <ambient r="0.66" g="0.51" b="0.30" a="0.0" />
  116. <diffuse r="0.66" g="0.51" b="0.30" a="0.0" />
  117. <specular r="0.0" g="0.25" b="0.15" a="0.0" />
  118. </material>
  119. <material id="redFloater" shininess="1">
  120. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  121. <ambient r="0.0" g="0.0" b="0.0" a="1.0" />
  122. <diffuse r="0.0" g="0.1" b="0.1" a="1.0" />
  123. <specular r="0.2" g="0.2" b="0.2" a="1.0" />
  124. </material>
  125. <material id="shinyFloater" shininess="10">
  126. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  127. <ambient r="0.0" g="0.0" b="0.0" a="1.0" />
  128. <diffuse r="0.0" g="0.0" b="0.0" a="1.0" />
  129. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  130. </material>
  131. <material id="testFloater" shininess="1">
  132. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  133. <ambient r="0.0" g="1.0" b="1.0" a="1.0" />
  134. <diffuse r="0.0" g="1.0" b="1.0" a="1.0" />
  135. <specular r="0.0" g="0.2" b="0.2" a="1.0" />
  136. </material>
  137. <material id="black" shininess="1">
  138. <emission r="0.0" g="0.0" b="0.0" a="1.0" />
  139. <ambient r="0.0" g="0.0" b="0.0" a="1.0" />
  140. <diffuse r="0.0" g="0.0" b="0.0" a="1.0" />
  141. <specular r="1.0" g="1.0" b="1.0" a="1.0" />
  142. </material>
  143. </materials>
  144.  
  145. <transformations>
  146. <transformation id="translateSuperior">
  147. <translate x="0" y="0.3" z="0" />
  148. </transformation>
  149. </transformations>
  150.  
  151. <primitives>
  152. <primitive id="myRectangle">
  153. <rectangle x1="-0.5" y1="-1" x2="0.5" y2="1" />
  154. </primitive>
  155. <primitive id="myRectangle2">
  156. <rectangle x1="0" y1="0" x2="1" y2="1" />
  157. </primitive>
  158. <primitive id="myTriangle1">
  159. <triangle x1="0" y1="0" z1="-3" x2="0" y2="2" z2="0" x3="0" y3="0" z3="0"/>
  160. </primitive>
  161. <primitive id="myTriangle2">
  162. <triangle x1="0" y1="2" z1="0" x2="0" y2="0" z2="3" x3="0" y3="0" z3="0"/>
  163. </primitive>
  164. <primitive id="myTriangle3">
  165. <triangle x1="0" y1="0.5" z1="0" x2="-0.5" y2="0" z2="0" x3="0.5" y3="0" z3="0"/>
  166. </primitive>
  167. <primitive id="myTriangle4">
  168. <triangle x1="0" y1="0.5" z1="0" x2="-0.5" y2="0" z2="0" x3="0.5" y3="0" z3="0"/>
  169. </primitive>
  170. <primitive id="myTriangle5">
  171. <triangle x1="0" y1="0" z1="-3" x2="0" y2="0" z2="0" x3="0" y3="2" z3="0"/>
  172. </primitive>
  173. <primitive id="myTriangleBoat1">
  174. <triangle x1="0" y1="0" z1="0" x2="0" y2="1" z2="0" x3="2" y3="1" z3="0"/>
  175. </primitive>
  176. <primitive id="myTriangleBoat2">
  177. <triangle x1="0" y1="0" z1="0" x2="0" y2="1" z2="0" x3="-2" y3="0" z3="0"/>
  178. </primitive>
  179. <primitive id="myTriangleBoat3">
  180. <triangle x1="0" y1="0" z1="0.5" x2="0" y2="0" z2="-0.5" x3="-2" y3="0" z3="0"/>
  181. </primitive>
  182. <primitive id="myTriangleBoat4">
  183. <triangle x1="0" y1="0" z1="0.5" x2="0" y2="0" z2="-0.5" x3="2.179" y3="0" z3="0"/>
  184. </primitive>
  185. <primitive id="myCylinder">
  186. <cylinder base="0.1" top="0.1" height="2" slices="20" stacks="4" />
  187. </primitive>
  188. <primitive id="mySphere">
  189. <sphere radius="1" slices="50" stacks="50" />
  190. </primitive>
  191. <primitive id="myTorus">
  192. <torus inner="0.5" outer="1" slices="50" loops="50" />
  193. </primitive>
  194. <primitive id="myTorus2">
  195. <torus inner="0.25" outer="1" slices="50" loops="50" />
  196. </primitive>
  197. </primitives >
  198.  
  199. <components>
  200.  
  201. <component id="root">
  202. <transformation>
  203. <scale x="2" y="2" z="2" />
  204. </transformation>
  205. <materials>
  206. <material id="greyMetal" />
  207. </materials>
  208. <texture id="none"/>
  209. <children>
  210. <componentref id="myOcean" />
  211. </children>
  212. </component>
  213.  
  214. <component id="myOcean">
  215. <transformation>
  216. </transformation>
  217. <materials>
  218. <material id="clearWater" />
  219. <material id="muddyWater" />
  220. </materials>
  221. <texture id="none" />
  222. <children>
  223. <componentref id="mySurface" />
  224. <componentref id="myInferior" />
  225. <componentref id="mySuperior" />
  226. </children>
  227. </component>
  228.  
  229. <component id="mySurface">
  230. <transformation>
  231. <scale x="8" y="1" z="5" />
  232. <rotate axis="x" angle="-90" />
  233. <scale x="8" y="5" z="1" />
  234. </transformation>
  235. <materials>
  236. <material id="inherit" />
  237. </materials>
  238. <texture id="water" length_s="0.5" length_t="0.2" />
  239. <children>
  240. <primitiveref id="myRectangle" />
  241. </children>
  242. </component>
  243.  
  244. <component id="myInferior">
  245. <transformation>
  246. </transformation>
  247. <materials>
  248. <material id="clearWater" />
  249. </materials>
  250. <texture id="none"/>
  251. <children>
  252. <componentref id="bubbleChain1" />
  253. <componentref id="bubbleChain2" />
  254. <componentref id="bubbleChain3" />
  255. <componentref id="bubbleChain4" />
  256. <componentref id="bubbleChain5" />
  257.  
  258. <componentref id="cardume1" />
  259. <componentref id="cardume2" />
  260. <componentref id="cardume3" />
  261. </children>
  262. </component>
  263.  
  264. <component id="mySuperior">
  265. <transformation>
  266. <translate x="0" y="0.5" z="0" />
  267. </transformation>
  268. <materials>
  269. <material id="inherit" />
  270. </materials>
  271. <texture id="none"/>
  272. <children>
  273. <componentref id="floater" />
  274. <componentref id="ship" />
  275. </children>
  276. </component>
  277.  
  278. <component id="ship">
  279. <transformation>
  280. <translate x="0" y="1" z="0"/>
  281. </transformation>
  282. <materials>
  283. <material id="greyMetal" />
  284. <material id="blueMetal" />
  285. </materials>
  286. <texture id="iron" length_s="1" length_t="1"/>
  287. <children>
  288. <componentref id="bodyShip1" />
  289. <componentref id="bodyShip2" />
  290. <componentref id="chimney1" />
  291. <componentref id="chimney2" />
  292. <componentref id="chimney3" />
  293. </children>
  294. </component>
  295.  
  296. <component id="bodyShip1">
  297. <transformation>
  298. <scale x="3" y="3" z="4"/>
  299. </transformation>
  300. <materials>
  301. <material id="inherit" />
  302. </materials>
  303. <texture id="inherit"/>
  304. <children>
  305. <componentref id="rect1" />
  306. <componentref id="rect2" />
  307. <componentref id="rect3" />
  308. <componentref id="rect4" />
  309. <componentref id="triangle1" />
  310. <componentref id="triangle2" />
  311. <componentref id="triangle3" />
  312. <componentref id="triangle4" />
  313. <componentref id="triangle5" />
  314. <componentref id="triangle6" />
  315. <componentref id="triangle7" />
  316. <componentref id="triangle8" />
  317. </children>
  318. </component>
  319.  
  320. <component id="bodyShip2">
  321. <transformation>
  322. <translate x="0" y="2" z="0"/>
  323. <scale x="3" y="3.5 " z="2"/>
  324. </transformation>
  325. <materials>
  326. <material id="inherit" />
  327. </materials>
  328. <texture id="inherit"/>
  329. <children>
  330. <componentref id="rect1" />
  331. <componentref id="rect2" />
  332. <componentref id="rect4" />
  333. <componentref id="rect5" />
  334. <componentref id="rect6" />
  335. </children>
  336. </component>
  337.  
  338. <component id="chimney1">
  339. <transformation>
  340. <translate x="-2" y="6" z="0"/>
  341. </transformation>
  342. <materials>
  343. <material id="inherit" />
  344. </materials>
  345. <texture id="inherit"/>
  346. <children>
  347. <componentref id= "cylinder1" />
  348. <componentref id= "torus1" />
  349. </children>
  350. </component>
  351.  
  352. <component id="chimney2">
  353. <transformation>
  354. <translate x="0" y="6" z="0"/>
  355. </transformation>
  356. <materials>
  357. <material id="inherit" />
  358. </materials>
  359. <texture id="inherit"/>
  360. <children>
  361. <componentref id= "cylinder1" />
  362. <componentref id= "torus1" />
  363. </children>
  364. </component>
  365.  
  366. <component id="chimney3">
  367. <transformation>
  368. <translate x="2" y="6" z="0"/>
  369. </transformation>
  370. <materials>
  371. <material id="inherit" />
  372. </materials>
  373. <texture id="inherit"/>
  374. <children>
  375. <componentref id= "cylinder1" />
  376. <componentref id= "torus1" />
  377. </children>
  378. </component>
  379.  
  380. <component id="cylinder1">
  381. <transformation>
  382. <scale x="4" y="1.5" z="4"/>
  383. <rotate axis="x" angle="90"/>
  384. </transformation>
  385. <materials>
  386. <material id="inherit" />
  387. </materials>
  388. <texture id="inherit"/>
  389. <children>
  390. <primitiveref id= "myCylinder" />
  391. </children>
  392. </component>
  393.  
  394. <component id="torus1">
  395. <transformation>
  396. <scale x="0.35" y="0.35" z="0.35"/>
  397. <rotate axis="x" angle="90"/>
  398. </transformation>
  399. <materials>
  400. <material id="inherit" />
  401. </materials>
  402. <texture id="inherit"/>
  403. <children>
  404. <primitiveref id= "myTorus" />
  405. </children>
  406. </component>
  407.  
  408. <component id="rect1">
  409. <transformation>
  410. <translate x="0" y="0" z="0.5 "/>
  411. <rotate axis="z" angle="90"/>
  412. </transformation>
  413. <materials>
  414. <material id="inherit" />
  415. </materials>
  416. <texture id="inherit"/>
  417. <children>
  418. <primitiveref id="myRectangle" />
  419. </children>
  420. </component>
  421.  
  422. <component id="rect2">
  423. <transformation>
  424. <translate x="0" y="0" z="-0.5"/>
  425. <rotate axis="z" angle="90"/>
  426. <rotate axis="y" angle="180"/>
  427. </transformation>
  428. <materials>
  429. <material id="inherit" />
  430. </materials>
  431. <texture id="inherit"/>
  432. <children>
  433. <primitiveref id="myRectangle" />
  434. </children>
  435. </component>
  436.  
  437. <component id="rect3">
  438. <transformation>
  439. <translate x="0" y="-0.5" z="0"/>
  440. <rotate axis="x" angle="90"/>
  441. <rotate axis="z" angle="90"/>
  442. </transformation>
  443. <materials>
  444. <material id="inherit" />
  445. </materials>
  446. <texture id="inherit"/>
  447. <children>
  448. <primitiveref id="myRectangle" />
  449. </children>
  450. </component>
  451.  
  452. <component id="rect4">
  453. <transformation>
  454. <translate x="0" y="0.5" z="0"/>
  455. <rotate axis="x" angle="-90"/>
  456. <rotate axis="z" angle="90"/>
  457. </transformation>
  458. <materials>
  459. <material id="inherit" />
  460. </materials>
  461. <texture id="inherit"/>
  462. <children>
  463. <primitiveref id="myRectangle" />
  464. </children>
  465. </component>
  466.  
  467. <component id="rect5">
  468. <transformation>
  469. <translate x="1" y="-0.5" z="0.5"/>
  470. <rotate axis="y" angle="90"/>
  471. </transformation>
  472. <materials>
  473. <material id="inherit" />
  474. </materials>
  475. <texture id="inherit"/>
  476. <children>
  477. <primitiveref id="myRectangle2" />
  478. </children>
  479. </component>
  480.  
  481. <component id="rect6">
  482. <transformation>
  483. <translate x="-1" y="-0.5" z="-0.5"/>
  484. <rotate axis="y" angle="-90"/>
  485. </transformation>
  486. <materials>
  487. <material id="inherit" />
  488. </materials>
  489. <texture id="inherit"/>
  490. <children>
  491. <primitiveref id="myRectangle2" />
  492. </children>
  493. </component>
  494.  
  495. <component id="triangle1">
  496. <transformation>
  497. <translate x="-1" y="-0.5" z="0.5"/>
  498. <rotate axis="y" angle="-14.78"/>
  499. <rotate axis="y" angle="180"/>
  500. </transformation>
  501. <materials>
  502. <material id="inherit" />
  503. </materials>
  504. <texture id="inherit"/>
  505. <children>
  506. <primitiveref id="myTriangleBoat1" />
  507. </children>
  508. </component>
  509.  
  510. <component id="triangle2">
  511. <transformation>
  512. <translate x="1" y="-0.5" z="-0.5"/>
  513. <rotate axis="y" angle="-14.78"/>
  514. <rotate axis="y" angle="180"/>
  515. <rotate axis="y" angle="180"/>
  516. </transformation>
  517. <materials>
  518. <material id="inherit" />
  519. </materials>
  520. <texture id="inherit"/>
  521. <children>
  522. <primitiveref id="myTriangleBoat1" />
  523. </children>
  524. </component>
  525.  
  526. <component id="triangle3">
  527. <transformation>
  528. <translate x="-1" y="0.5" z="-0.5"/>
  529. <rotate axis="y" angle="14.78"/>
  530. <rotate axis="x" angle="180"/>
  531. </transformation>
  532. <materials>
  533. <material id="inherit" />
  534. </materials>
  535. <texture id="inherit"/>
  536. <children>
  537. <primitiveref id="myTriangleBoat2" />
  538. </children>
  539. </component>
  540.  
  541. <component id="triangle4">
  542. <transformation>
  543. <translate x="1" y="0.5" z="0.5"/>
  544. <rotate axis="y" angle="14.78"/>
  545. <rotate axis="y" angle="180"/>
  546. <rotate axis="x" angle="180"/>
  547. </transformation>
  548. <materials>
  549. <material id="inherit" />
  550. </materials>
  551. <texture id="inherit"/>
  552. <children>
  553. <primitiveref id="myTriangleBoat2" />
  554. </children>
  555. </component>
  556.  
  557. <component id="triangle5">
  558. <transformation>
  559. <translate x="-1" y="0.5" z="0"/>
  560. </transformation>
  561. <materials>
  562. <material id="inherit" />
  563. </materials>
  564. <texture id="inherit"/>
  565. <children>
  566. <primitiveref id="myTriangleBoat3" />
  567. </children>
  568. </component>
  569.  
  570. <component id="triangle6">
  571. <transformation>
  572. <translate x="1" y="0.5" z="0"/>
  573. <rotate axis="y" angle="180"/>
  574. </transformation>
  575. <materials>
  576. <material id="inherit" />
  577. </materials>
  578. <texture id="inherit"/>
  579. <children>
  580. <primitiveref id="myTriangleBoat3" />
  581. </children>
  582. </component>
  583.  
  584. <component id="triangle7">
  585. <transformation>
  586. <translate x="-1" y="-0.5" z="0"/>
  587. <rotate axis="z" angle="-27.2"/>
  588. <rotate axis="y" angle="180"/>
  589. </transformation>
  590. <materials>
  591. <material id="inherit" />
  592. </materials>
  593. <texture id="inherit"/>
  594. <children>
  595. <primitiveref id="myTriangleBoat4" />
  596. </children>
  597. </component>
  598.  
  599. <component id="triangle8">
  600. <transformation>
  601. <translate x="1" y="-0.5" z="0"/>
  602. <rotate axis="z" angle="27.2"/>
  603. </transformation>
  604. <materials>
  605. <material id="inherit" />
  606. </materials>
  607. <texture id="inherit"/>
  608. <children>
  609. <primitiveref id="myTriangleBoat4" />
  610. </children>
  611. </component>
  612.  
  613. <component id="cardume1">
  614. <transformation>
  615. </transformation>
  616. <materials>
  617. <material id="testFloater" />
  618. </materials>
  619. <texture id="redScale" length_s="1" length_t="1"/>
  620. <children>
  621. <componentref id="fish1" />
  622. <componentref id="fish2" />
  623. <componentref id="fish3" />
  624. <componentref id="fish4" />
  625. </children>
  626. </component>
  627.  
  628. <component id="cardume2">
  629. <transformation>
  630. <translate x="14" y="-3" z="-1" />
  631. </transformation>
  632. <materials>
  633. <material id="testFloater" />
  634. </materials>
  635. <texture id="blueScale" length_s="1" length_t="1"/>
  636. <children>
  637. <componentref id="fish1" />
  638. <componentref id="fish2" />
  639. <componentref id="fish3" />
  640. <componentref id="fish4" />
  641. </children>
  642. </component>
  643.  
  644. <component id="cardume3">
  645. <transformation>
  646. <rotate axis="y" angle="-90" />
  647. <translate x="14" y="-3" z="12" />
  648. </transformation>
  649. <materials>
  650. <material id="testFloater" />
  651. </materials>
  652. <texture id="greenScale" length_s="1" length_t="1"/>
  653. <children>
  654. <componentref id="fish1" />
  655. <componentref id="fish2" />
  656. <componentref id="fish3" />
  657. <componentref id="fish4" />
  658. </children>
  659. </component>
  660.  
  661. <component id="fish1">
  662. <transformation>
  663. <translate x="-2" y="-5" z="-0.3" />
  664. </transformation>
  665. <materials>
  666. <material id="inherit" />
  667. </materials>
  668. <texture id="inherit"/>
  669. <children>
  670. <componentref id="body" />
  671. <componentref id="stripe1" />
  672. <componentref id="stripe2" />
  673. <componentref id="eye1" />
  674. <componentref id="eye2" />
  675. <componentref id="fin1" />
  676. <componentref id="fin2" />
  677. <componentref id="fin3" />
  678. <componentref id="fin4" />
  679. <componentref id="tail1" />
  680. <componentref id="tail2" />
  681. </children>
  682. </component>
  683.  
  684. <component id="fish2">
  685. <transformation>
  686. <translate x="-3" y="-7" z="-0.3" />
  687. </transformation>
  688. <materials>
  689. <material id="inherit" />
  690. </materials>
  691. <texture id="inherit"/>
  692. <children>
  693. <componentref id="body" />
  694. <componentref id="stripe1" />
  695. <componentref id="stripe2" />
  696. <componentref id="eye1" />
  697. <componentref id="eye2" />
  698. <componentref id="fin1" />
  699. <componentref id="fin2" />
  700. <componentref id="fin3" />
  701. <componentref id="fin4" />
  702. <componentref id="tail1" />
  703. <componentref id="tail2" />
  704. </children>
  705. </component>
  706.  
  707. <component id="fish3">
  708. <transformation>
  709. <translate x="-3" y="-4" z="-1" />
  710. </transformation>
  711. <materials>
  712. <material id="inherit" />
  713. </materials>
  714. <texture id="inherit"/>
  715. <children>
  716. <componentref id="body" />
  717. <componentref id="stripe1" />
  718. <componentref id="stripe2" />
  719. <componentref id="eye1" />
  720. <componentref id="eye2" />
  721. <componentref id="fin1" />
  722. <componentref id="fin2" />
  723. <componentref id="fin3" />
  724. <componentref id="fin4" />
  725. <componentref id="tail1" />
  726. <componentref id="tail2" />
  727. </children>
  728. </component>
  729.  
  730. <component id="fish4">
  731. <transformation>
  732. <translate x="-3.5" y="-6" z="1" />
  733. </transformation>
  734. <materials>
  735. <material id="inherit" />
  736. </materials>
  737. <texture id="inherit"/>
  738. <children>
  739. <componentref id="body" />
  740. <componentref id="stripe1" />
  741. <componentref id="stripe2" />
  742. <componentref id="eye1" />
  743. <componentref id="eye2" />
  744. <componentref id="fin1" />
  745. <componentref id="fin2" />
  746. <componentref id="fin3" />
  747. <componentref id="fin4" />
  748. <componentref id="tail1" />
  749. <componentref id="tail2" />
  750. </children>
  751. </component>
  752.  
  753. <component id="eye1">
  754. <transformation>
  755. <translate x="-0.3" y="0" z="0.3" />
  756. <scale x="0.1" y="0.1" z="0.1" />
  757. </transformation>
  758. <materials>
  759. <material id="black" />
  760. </materials>
  761. <texture id="none"/>
  762. <children>
  763. <primitiveref id="mySphere" />
  764. </children>
  765. </component>
  766.  
  767. <component id="eye2">
  768. <transformation>
  769. <translate x="-0.3" y="0" z="-0.3" />
  770. <scale x="0.1" y="0.1" z="0.1" />
  771. </transformation>
  772. <materials>
  773. <material id="black" />
  774. </materials>
  775. <texture id="none"/>
  776. <children>
  777. <primitiveref id="mySphere" />
  778. </children>
  779. </component>
  780.  
  781. <component id="tail1">
  782. <transformation>
  783. <rotate axis="z" angle="90" />
  784. <translate x="0" y="-0.8" z="0" />
  785. </transformation>
  786. <materials>
  787. <material id="inherit" />
  788. </materials>
  789. <texture id="inherit"/>
  790. <children>
  791. <primitiveref id="myTriangle4" />
  792. </children>
  793. </component>
  794.  
  795. <component id="tail2">
  796. <transformation>
  797. <rotate axis="z" angle="-90" />
  798. <rotate axis="x" angle="180" />
  799. <translate x="0" y="-0.8" z="0" />
  800. </transformation>
  801. <materials>
  802. <material id="inherit" />
  803. </materials>
  804. <texture id="inherit"/>
  805. <children>
  806. <primitiveref id="myTriangle4" />
  807. </children>
  808. </component>
  809.  
  810. <component id="fin1">
  811. <transformation>
  812. <scale x="0.2" y="0.2" z="0.1" />
  813. <rotate axis="y" angle="90" />
  814. <translate x="0" y="1" z="1" />
  815. </transformation>
  816. <materials>
  817. <material id="inherit" />
  818. </materials>
  819. <texture id="inherit"/>
  820. <children>
  821. <primitiveref id="myTriangle1" />
  822. </children>
  823. </component>
  824.  
  825. <component id="fin2">
  826. <transformation>
  827. <scale x="0.2" y="0.2" z="0.1" />
  828. <rotate axis="y" angle="-90" />
  829. <translate x="0" y="1" z="-1" />
  830. </transformation>
  831. <materials>
  832. <material id="inherit" />
  833. </materials>
  834. <texture id="inherit"/>
  835. <children>
  836. <primitiveref id="myTriangle2" />
  837. </children>
  838. </component>
  839.  
  840. <component id="fin3">
  841. <transformation>
  842. <scale x="0.4" y="0.4" z="0.2" />
  843. <translate x="0" y="-0.8" z="0" />
  844. <rotate axis="z" angle="-90" />
  845. </transformation>
  846. <materials>
  847. <material id="inherit" />
  848. </materials>
  849. <texture id="inherit"/>
  850. <children>
  851. <primitiveref id="myTriangle3" />
  852. </children>
  853. </component>
  854.  
  855. <component id="fin4">
  856. <transformation>
  857. <scale x="0.4" y="0.4" z="0.2" />
  858. <translate x="0" y="-0.8" z="0" />
  859. <rotate axis="z" angle="90" />
  860. <rotate axis="x" angle="-180" />
  861. </transformation>
  862. <materials>
  863. <material id="inherit" />
  864. </materials>
  865. <texture id="inherit"/>
  866. <children>
  867. <primitiveref id="myTriangle4" />
  868. </children>
  869. </component>
  870.  
  871. <component id="stripe1">
  872. <transformation>
  873. <scale x="0.2" y="0.22" z="0.3" />
  874. <rotate axis="y" angle="-90" />
  875. </transformation>
  876. <materials>
  877. <material id="inherit" />
  878. </materials>
  879. <texture id="inherit"/>
  880. <children>
  881. <primitiveref id="myTorus" />
  882. </children>
  883. </component>
  884.  
  885. <component id="stripe2">
  886. <transformation>
  887. <translate x="0.2" y="0" z="0" />
  888. <scale x="0.12" y="0.2" z="0.28" />
  889. <rotate axis="y" angle="-90" />
  890. </transformation>
  891. <materials>
  892. <material id="inherit" />
  893. </materials>
  894. <texture id="inherit"/>
  895. <children>
  896. <primitiveref id="myTorus" />
  897. </children>
  898. </component>
  899.  
  900. <component id="body">
  901. <transformation>
  902. <scale x="0.6" y="0.3" z="0.4" />
  903. </transformation>
  904. <materials>
  905. <material id="inherit" />
  906. </materials>
  907. <texture id="inherit"/>
  908. <children>
  909. <primitiveref id="mySphere" />
  910. </children>
  911. </component>
  912.  
  913. <component id="bubbleChain1">
  914. <transformation>
  915. <translate x="0" y="-2" z="0" />
  916. </transformation>
  917. <materials>
  918. <material id="inherit" />
  919. </materials>
  920. <texture id="none"/>
  921. <children>
  922. <componentref id="bubbles1" />
  923. <componentref id="bubbles2" />
  924. <componentref id="bubbles3" />
  925. </children>
  926. </component>
  927.  
  928. <component id="bubbleChain2">
  929. <transformation>
  930. <translate x="-8" y="-3" z="-7" />
  931. </transformation>
  932. <materials>
  933. <material id="inherit" />
  934. </materials>
  935. <texture id="none"/>
  936. <children>
  937. <componentref id="bubbles1" />
  938. <componentref id="bubbles2" />
  939. <componentref id="bubbles3" />
  940. </children>
  941. </component>
  942.  
  943. <component id="bubbleChain3">
  944. <transformation>
  945. <translate x="-8" y="-9" z="7" />
  946. </transformation>
  947. <materials>
  948. <material id="inherit" />
  949. </materials>
  950. <texture id="none"/>
  951. <children>
  952. <componentref id="bubbles1" />
  953. <componentref id="bubbles2" />
  954. <componentref id="bubbles3" />
  955. </children>
  956. </component>
  957.  
  958. <component id="bubbleChain4">
  959. <transformation>
  960. <translate x="8" y="-5" z="7" />
  961. </transformation>
  962. <materials>
  963. <material id="inherit" />
  964. </materials>
  965. <texture id="none"/>
  966. <children>
  967. <componentref id="bubbles1" />
  968. <componentref id="bubbles2" />
  969. <componentref id="bubbles3" />
  970. </children>
  971. </component>
  972.  
  973. <component id="bubbleChain5">
  974. <transformation>
  975. <translate x="15" y="-3" z="-5" />
  976. </transformation>
  977. <materials>
  978. <material id="inherit" />
  979. </materials>
  980. <texture id="none"/>
  981. <children>
  982. <componentref id="bubbles1" />
  983. <componentref id="bubbles2" />
  984. <componentref id="bubbles3" />
  985. </children>
  986. </component>
  987.  
  988. <component id="bubbles1">
  989. <transformation>
  990. </transformation>
  991. <materials>
  992. <material id="inherit" />
  993. </materials>
  994. <texture id="none"/>
  995. <children>
  996. <componentref id="bubble1" />
  997. <componentref id="bubble2" />
  998. <componentref id="bubble3" />
  999. </children>
  1000. </component>
  1001.  
  1002. <component id="bubbles2">
  1003. <transformation>
  1004. <translate x="0.5" y="-1.5" z="0" />
  1005. </transformation>
  1006. <materials>
  1007. <material id="inherit" />
  1008. </materials>
  1009. <texture id="none"/>
  1010. <children>
  1011. <componentref id="bubble1" />
  1012. <componentref id="bubble2" />
  1013. <componentref id="bubble3" />
  1014. </children>
  1015. </component>
  1016.  
  1017. <component id="bubbles3">
  1018. <transformation>
  1019. <translate x="0" y="-3" z="0" />
  1020. </transformation>
  1021. <materials>
  1022. <material id="inherit" />
  1023. </materials>
  1024. <texture id="none"/>
  1025. <children>
  1026. <componentref id="bubble1" />
  1027. <componentref id="bubble2" />
  1028. <componentref id="bubble3" />
  1029. </children>
  1030. </component>
  1031.  
  1032. <component id="bubble1">
  1033. <transformation>
  1034. <scale x="0.3" y="0.3" z="0.3" />
  1035. </transformation>
  1036. <materials>
  1037. <material id="inherit" />
  1038. </materials>
  1039. <texture id="none" />
  1040. <children>
  1041. <primitiveref id="mySphere" />
  1042. </children>
  1043. </component>
  1044.  
  1045. <component id="bubble2">
  1046. <transformation>
  1047. <translate x="0.3" y="-0.4" z="0" />
  1048. <scale x="0.2" y="0.2" z="0.2" />
  1049. </transformation>
  1050. <materials>
  1051. <material id="inherit" />
  1052. </materials>
  1053. <texture id="none" />
  1054. <children>
  1055. <primitiveref id="mySphere" />
  1056. </children>
  1057. </component>
  1058.  
  1059. <component id="bubble3">
  1060. <transformation>
  1061. <translate x="-0.1" y="-0.9" z="0" />
  1062. <scale x="0.2" y="0.2" z="0.2" />
  1063. </transformation>
  1064. <materials>
  1065. <material id="inherit" />
  1066. </materials>
  1067. <texture id="none" />
  1068. <children>
  1069. <primitiveref id="mySphere" />
  1070. </children>
  1071. </component>
  1072.  
  1073. <component id="floater">
  1074. <transformation>
  1075. <translate x="0" y="0" z="10" />
  1076. </transformation>
  1077. <materials>
  1078. <material id="redFloater" />
  1079. <material id="testFloater" />
  1080. <material id="shinyFloater" />
  1081. </materials>
  1082. <texture id="floater" length_s = "10" length_t="10"/>
  1083. <children>
  1084. <componentref id="floaterBody" />
  1085. <!--<componentref id="floaterRope" />-->
  1086. </children>
  1087. </component>
  1088.  
  1089. <component id="floaterBody">
  1090. <transformation>
  1091. <scale x="1.5" y="1.5" z="1.5" />
  1092. <rotate axis="x" angle="-90" />
  1093. </transformation>
  1094. <materials>
  1095. <material id="inherit" />
  1096. </materials>
  1097. <texture id="inherit"/>
  1098. <children>
  1099. <primitiveref id="myTorus" />
  1100. </children>
  1101. </component>
  1102. </components>
  1103. </lxs>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement