cube_tristrips.dae 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
  3. <asset>
  4. <contributor/>
  5. <created>2014-12-01T18:05:27Z</created>
  6. <modified>2014-12-01T18:05:27Z</modified>
  7. <unit/>
  8. <up_axis>Z_UP</up_axis>
  9. </asset>
  10. <library_visual_scenes>
  11. <visual_scene id="defaultScene">
  12. <node id="sceneRoot">
  13. <node id="Collada visual scene group">
  14. <rotate sid="rotate">1 0 0 90</rotate>
  15. <node id="Camera">
  16. <matrix sid="Camera_matrix">0.838671 0.205746 -0.504282 -427.749 0 0.925901 0.377766 333.855 0.544639 -0.316822 0.776526 655.017 0 0 0 1</matrix>
  17. <instance_camera url="#PerspCamera"/>
  18. </node>
  19. <node id="Light">
  20. <matrix sid="Light_matrix">1 0 0 -500 0 1 0 1000 0 0 1 400 0 0 0 1</matrix>
  21. <instance_light url="#light"/>
  22. </node>
  23. <node id="Box">
  24. <matrix sid="Box_matrix">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
  25. <instance_geometry url="#BlueSG">
  26. <bind_material>
  27. <technique_common>
  28. <instance_material symbol="BlueSG_material" target="#material"/>
  29. </technique_common>
  30. </bind_material>
  31. </instance_geometry>
  32. </node>
  33. <node id="testCamera">
  34. <matrix sid="testCamera_matrix">0.838671 0.205746 -0.504282 -427.749 0 0.925901 0.377766 333.855 0.544639 -0.316822 0.776526 655.017 0 0 0 1</matrix>
  35. <instance_camera url="#testCameraShape"/>
  36. </node>
  37. <node id="pointLight1">
  38. <matrix sid="pointLight1_matrix">1 0 0 3 0 1 0 4 0 0 1 10 0 0 0 1</matrix>
  39. <instance_light url="#pointLightShape1"/>
  40. </node>
  41. </node>
  42. </node>
  43. </visual_scene>
  44. </library_visual_scenes>
  45. <library_cameras>
  46. <camera id="PerspCamera">
  47. <optics>
  48. <technique_common>
  49. <perspective>
  50. <yfov>37.8493</yfov>
  51. <aspect_ratio>1</aspect_ratio>
  52. <znear>1</znear>
  53. <zfar>1000</zfar>
  54. </perspective>
  55. </technique_common>
  56. </optics>
  57. </camera>
  58. <camera id="testCameraShape">
  59. <optics>
  60. <technique_common>
  61. <perspective>
  62. <yfov>37.8501</yfov>
  63. <aspect_ratio>1</aspect_ratio>
  64. <znear>1</znear>
  65. <zfar>1000</zfar>
  66. </perspective>
  67. </technique_common>
  68. </optics>
  69. </camera>
  70. </library_cameras>
  71. <library_lights>
  72. <light id="light"/>
  73. <light id="light">
  74. <technique_common>
  75. <point>
  76. <color>1 1 1</color>
  77. <constant_attenuation>1</constant_attenuation>
  78. <linear_attenuation>0</linear_attenuation>
  79. <quadratic_attenuation>0</quadratic_attenuation>
  80. </point>
  81. </technique_common>
  82. </light>
  83. <light id="pointLightShape1"/>
  84. <light id="pointLightShape1">
  85. <technique_common>
  86. <point>
  87. <color>1 1 1</color>
  88. <constant_attenuation>1</constant_attenuation>
  89. <linear_attenuation>0</linear_attenuation>
  90. <quadratic_attenuation>0</quadratic_attenuation>
  91. </point>
  92. </technique_common>
  93. </light>
  94. </library_lights>
  95. <library_geometries>
  96. <geometry id="BlueSG">
  97. <mesh>
  98. <source id="BlueSG-positions">
  99. <float_array id="BlueSG-positions-array" count="72">-50 50 50 -50 50 50 -50 50 50 50 50 50 50 50 50 50 50 50 -50 -50 50 -50 -50 50 -50 -50 50 50 -50 50 50 -50 50 50 -50 50 -50 50 -50 -50 50 -50 -50 50 -50 50 50 -50 50 50 -50 50 50 -50 -50 -50 -50 -50 -50 -50 -50 -50 -50 50 -50 -50 50 -50 -50 50 -50 -50</float_array>
  100. <technique_common>
  101. <accessor count="24" source="#BlueSG-positions-array" stride="3">
  102. <param name="X" type="float"/>
  103. <param name="Y" type="float"/>
  104. <param name="Z" type="float"/>
  105. </accessor>
  106. </technique_common>
  107. </source>
  108. <source id="BlueSG-normals">
  109. <float_array id="BlueSG-normals-array" count="72">0 0 1 0 1 0 -1 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 -1 0 -1 0 0 0 0 1 0 -1 0 1 0 0 0 1 0 -1 0 0 0 0 -1 0 1 0 1 0 0 0 0 -1 0 -1 0 -1 0 0 0 0 -1 0 -1 0 1 0 0 0 0 -1</float_array>
  110. <technique_common>
  111. <accessor count="24" source="#BlueSG-normals-array" stride="3">
  112. <param name="X" type="float"/>
  113. <param name="Y" type="float"/>
  114. <param name="Z" type="float"/>
  115. </accessor>
  116. </technique_common>
  117. </source>
  118. <vertices id="BlueSG-vertices">
  119. <input semantic="POSITION" source="#BlueSG-positions"/>
  120. </vertices>
  121. <tristrips count="6" material="BlueSG_material">
  122. <input offset="0" semantic="VERTEX" source="#BlueSG-vertices" set="0"/>
  123. <input offset="1" semantic="NORMAL" source="#BlueSG-normals" set="0"/>
  124. <p>6 6 9 9 0 0 3 3</p>
  125. <p>12 12 1 1 15 15 4 4</p>
  126. <p>14 14 17 17 20 20 23 23</p>
  127. <p>5 5 11 11 16 16 22 22</p>
  128. <p>13 13 19 19 2 2 8 8</p>
  129. <p>21 21 10 10 18 18 7 7</p>
  130. </tristrips>
  131. </mesh>
  132. </geometry>
  133. </library_geometries>
  134. <library_materials>
  135. <material id="material">
  136. <instance_effect url="#material_effect"/>
  137. </material>
  138. </library_materials>
  139. <library_effects>
  140. <effect id="material_effect">
  141. <profile_COMMON>
  142. <technique sid="t0">
  143. <phong>
  144. <emission>
  145. <color>0 0 0 1</color>
  146. </emission>
  147. <ambient>
  148. <color>0 0 0 1</color>
  149. </ambient>
  150. <diffuse>
  151. <color>0.137255 0.403922 0.870588 1</color>
  152. </diffuse>
  153. <specular>
  154. <color>0.5 0.5 0.5 1</color>
  155. </specular>
  156. <shininess>
  157. <float>16</float>
  158. </shininess>
  159. </phong>
  160. </technique>
  161. </profile_COMMON>
  162. </effect>
  163. </library_effects>
  164. <scene>
  165. <instance_visual_scene url="#defaultScene"/>
  166. </scene>
  167. </COLLADA>