box.dae 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. <author>kcunney</author>
  6. <authoring_tool>OpenCOLLADA2011 x64</authoring_tool>
  7. <comments>
  8. ColladaMaya export options:
  9. bakeTransforms=1;relativePaths=0;copyTextures=0;exportTriangles=1;exportCgfxFileReferences=0;
  10. isSampling=0;curveConstrainSampling=0;removeStaticCurves=1;exportPolygonMeshes=1;exportLights=1;
  11. exportCameras=1;exportJointsAndSkin=1;exportAnimations=1;exportInvisibleNodes=0;exportDefaultCameras=0;
  12. exportTexCoords=1;exportNormals=1;exportNormalsPerVertex=1;exportVertexColors=1;exportVertexColorsPerVertex=1;
  13. exportTexTangents=0;exportTangents=0;exportReferencedMaterials=0;exportMaterialsOnly=0;
  14. exportXRefs=1;dereferenceXRefs=1;exportCameraAsLookat=0;cameraXFov=0;cameraYFov=1;doublePrecision=0
  15. </comments>
  16. <source_data>file:///C:/code/git/GamePlay/gameplay-samples/sample05-lua/res/box.mb</source_data>
  17. </contributor>
  18. <created>2012-07-13T18:33:54</created>
  19. <modified>2012-07-13T18:33:54</modified>
  20. <unit name="centimeter" meter="0.01"/>
  21. <up_axis>Y_UP</up_axis>
  22. </asset>
  23. <library_lights>
  24. <light id="directionalLightShape1-lib" name="directionalLightShape1">
  25. <technique_common>
  26. <directional>
  27. <color>1 1 1</color>
  28. </directional>
  29. </technique_common>
  30. <extra>
  31. <technique profile="OpenCOLLADAMaya">
  32. <originalMayaNodeId>directionalLightShape1</originalMayaNodeId>
  33. </technique>
  34. </extra>
  35. </light>
  36. </library_lights>
  37. <library_cameras>
  38. <camera id="cameraShape1" name="cameraShape1">
  39. <optics>
  40. <technique_common>
  41. <perspective>
  42. <yfov>45</yfov>
  43. <aspect_ratio>1.706667</aspect_ratio>
  44. <znear>1</znear>
  45. <zfar>10000</zfar>
  46. </perspective>
  47. </technique_common>
  48. </optics>
  49. <extra>
  50. <technique profile="OpenCOLLADAMaya">
  51. <film_fit>1</film_fit>
  52. <film_fit_offset>0</film_fit_offset>
  53. <film_offsetX>0</film_offsetX>
  54. <film_offsetY>0</film_offsetY>
  55. <horizontal_aperture>4.095993</horizontal_aperture>
  56. <lens_squeeze>1</lens_squeeze>
  57. <originalMayaNodeId>cameraShape1</originalMayaNodeId>
  58. <vertical_aperture>2.399995</vertical_aperture>
  59. </technique>
  60. </extra>
  61. </camera>
  62. </library_cameras>
  63. <library_materials>
  64. <material id="lambert1" name="lambert1">
  65. <instance_effect url="#lambert1-fx"/>
  66. </material>
  67. <material id="blinn1" name="blinn1">
  68. <instance_effect url="#blinn1-fx"/>
  69. </material>
  70. </library_materials>
  71. <library_effects>
  72. <effect id="blinn1-fx">
  73. <profile_COMMON>
  74. <newparam sid="file2-surface">
  75. <surface type="2D">
  76. <init_from>file2</init_from>
  77. </surface>
  78. </newparam>
  79. <newparam sid="file2-sampler">
  80. <sampler2D>
  81. <source>file2-surface</source>
  82. </sampler2D>
  83. </newparam>
  84. <technique sid="common">
  85. <blinn>
  86. <emission>
  87. <color>0 0 0 1</color>
  88. </emission>
  89. <ambient>
  90. <color>0 0 0 1</color>
  91. </ambient>
  92. <diffuse>
  93. <texture texture="file2-sampler" texcoord="TEX0">
  94. <extra>
  95. <technique profile="OpenCOLLADAMaya">
  96. <blend_mode>NONE</blend_mode>
  97. <coverageU>1</coverageU>
  98. <coverageV>1</coverageV>
  99. <fast>0</fast>
  100. <mirrorU>0</mirrorU>
  101. <mirrorV>0</mirrorV>
  102. <noiseU>0</noiseU>
  103. <noiseV>0</noiseV>
  104. <offsetU>0</offsetU>
  105. <offsetV>0</offsetV>
  106. <repeatU>1</repeatU>
  107. <repeatV>1</repeatV>
  108. <rotateFrame>0</rotateFrame>
  109. <rotateUV>0</rotateUV>
  110. <stagger>0</stagger>
  111. <translateFrameU>0</translateFrameU>
  112. <translateFrameV>0</translateFrameV>
  113. <wrapU>1</wrapU>
  114. <wrapV>1</wrapV>
  115. </technique>
  116. </extra>
  117. </texture>
  118. </diffuse>
  119. <specular>
  120. <color>0 0 0 1</color>
  121. </specular>
  122. <shininess>
  123. <float>0.3</float>
  124. </shininess>
  125. <reflective>
  126. <color>0 0 0 1</color>
  127. </reflective>
  128. <reflectivity>
  129. <float>0.5</float>
  130. </reflectivity>
  131. <transparent opaque="RGB_ZERO">
  132. <color>0 0 0 1</color>
  133. </transparent>
  134. <transparency>
  135. <float>1</float>
  136. </transparency>
  137. <index_of_refraction>
  138. <float>1</float>
  139. </index_of_refraction>
  140. </blinn>
  141. </technique>
  142. </profile_COMMON>
  143. </effect>
  144. <effect id="lambert1-fx">
  145. <profile_COMMON>
  146. <newparam sid="file3-surface">
  147. <surface type="2D">
  148. <init_from>file3</init_from>
  149. </surface>
  150. </newparam>
  151. <newparam sid="file3-sampler">
  152. <sampler2D>
  153. <source>file3-surface</source>
  154. </sampler2D>
  155. </newparam>
  156. <technique sid="common">
  157. <lambert>
  158. <emission>
  159. <color>0 0 0 1</color>
  160. </emission>
  161. <ambient>
  162. <color>0 0 0 1</color>
  163. </ambient>
  164. <diffuse>
  165. <texture texture="file3-sampler" texcoord="TEX0">
  166. <extra>
  167. <technique profile="OpenCOLLADAMaya">
  168. <blend_mode>NONE</blend_mode>
  169. <coverageU>1</coverageU>
  170. <coverageV>1</coverageV>
  171. <fast>0</fast>
  172. <mirrorU>0</mirrorU>
  173. <mirrorV>0</mirrorV>
  174. <noiseU>0</noiseU>
  175. <noiseV>0</noiseV>
  176. <offsetU>0</offsetU>
  177. <offsetV>0</offsetV>
  178. <repeatU>1</repeatU>
  179. <repeatV>1</repeatV>
  180. <rotateFrame>0</rotateFrame>
  181. <rotateUV>0</rotateUV>
  182. <stagger>0</stagger>
  183. <translateFrameU>0</translateFrameU>
  184. <translateFrameV>0</translateFrameV>
  185. <wrapU>1</wrapU>
  186. <wrapV>1</wrapV>
  187. </technique>
  188. </extra>
  189. </texture>
  190. </diffuse>
  191. <transparent opaque="RGB_ZERO">
  192. <color>0 0 0 1</color>
  193. </transparent>
  194. <transparency>
  195. <float>1</float>
  196. </transparency>
  197. </lambert>
  198. </technique>
  199. </profile_COMMON>
  200. </effect>
  201. </library_effects>
  202. <library_images>
  203. <image id="file3" name="file3">
  204. <init_from>file:///C:/code/git/GamePlay/gameplay-samples/sample05-lua/res/box-diffuse.png</init_from>
  205. <extra>
  206. <technique profile="OpenCOLLADAMaya">
  207. <dgnode_type>kFile</dgnode_type>
  208. <image_sequence>0</image_sequence>
  209. <originalMayaNodeId>file3</originalMayaNodeId>
  210. </technique>
  211. </extra>
  212. </image>
  213. <image id="file2" name="file2">
  214. <init_from>file:///C:/git/gameplay-public/gameplay-samples/sample00-mesh/res/duck-diffuse.png</init_from>
  215. <extra>
  216. <technique profile="OpenCOLLADAMaya">
  217. <dgnode_type>kFile</dgnode_type>
  218. <image_sequence>0</image_sequence>
  219. <originalMayaNodeId>file2</originalMayaNodeId>
  220. </technique>
  221. </extra>
  222. </image>
  223. </library_images>
  224. <library_geometries>
  225. <geometry id="boxShape" name="boxShape">
  226. <mesh>
  227. <source id="boxShape-positions" name="boxShape-positions">
  228. <float_array id="boxShape-positions-array" count="24">-0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5</float_array>
  229. <technique_common>
  230. <accessor source="#boxShape-positions-array" count="8" stride="3">
  231. <param name="X" type="float"/>
  232. <param name="Y" type="float"/>
  233. <param name="Z" type="float"/>
  234. </accessor>
  235. </technique_common>
  236. </source>
  237. <source id="boxShape-normals" name="boxShape-normals">
  238. <float_array id="boxShape-normals-array" count="72">0 0 1 0 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 0 -1 0 0 -1 0 0 -1 0 0 -1 0 -1 0 0 -1 0 0 -1 0 0 -1 0 1 0 0 1 0 0 1 0 0 1 0 0 -1 0 0 -1 0 0 -1 0 0 -1 0 0</float_array>
  239. <technique_common>
  240. <accessor source="#boxShape-normals-array" count="24" stride="3">
  241. <param name="X" type="float"/>
  242. <param name="Y" type="float"/>
  243. <param name="Z" type="float"/>
  244. </accessor>
  245. </technique_common>
  246. </source>
  247. <source id="boxShape-map1" name="boxShape-map1">
  248. <float_array id="boxShape-map1-array" count="48">0 0 1 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 1 1</float_array>
  249. <technique_common>
  250. <accessor source="#boxShape-map1-array" count="24" stride="2">
  251. <param name="S" type="float"/>
  252. <param name="T" type="float"/>
  253. </accessor>
  254. </technique_common>
  255. </source>
  256. <vertices id="boxShape-vertices" name="boxShape-vertices">
  257. <input semantic="POSITION" source="#boxShape-positions"/>
  258. </vertices>
  259. <triangles material="initialShadingGroup" count="12">
  260. <input semantic="VERTEX" source="#boxShape-vertices" offset="0"/>
  261. <input semantic="NORMAL" source="#boxShape-normals" offset="1"/>
  262. <input semantic="TEXCOORD" source="#boxShape-map1" offset="2" set="0"/>
  263. <p>0 0 0 1 1 1 2 3 2 2 3 2 1 1 1 3 2 3 2 4 4 3 5 5 4 7 6 4 7 6 3 5 5 5 6 7 4 8 8 5 9 9 6 11 10 6 11 10 5 9 9 7 10 11 6 12 12 7 13 13 0 15 14 0 15 14 7 13 13 1 14 15 1 16 16 7 17 17 3 19 18 3 19 18 7 17 17 5 18 19 6 20 20 0 21 21 4 23 22 4 23 22 0 21 21 2 22 23</p>
  264. </triangles>
  265. </mesh>
  266. <extra>
  267. <technique profile="OpenCOLLADAMaya">
  268. <originalMayaNodeId>boxShape</originalMayaNodeId>
  269. <double_sided>1</double_sided>
  270. </technique>
  271. </extra>
  272. </geometry>
  273. </library_geometries>
  274. <library_visual_scenes>
  275. <visual_scene id="VisualSceneNode" name="box">
  276. <node id="camera1" name="camera1" type="NODE">
  277. <matrix sid="transform">1 0 0 0 0 0.9807853 0.1950903 1 0 -0.1950903 0.9807853 5 0 0 0 1</matrix>
  278. <instance_camera url="#cameraShape1"/>
  279. <extra>
  280. <technique profile="OpenCOLLADAMaya">
  281. <originalMayaNodeId>camera1</originalMayaNodeId>
  282. </technique>
  283. </extra>
  284. </node>
  285. <node id="directionalLight1" name="directionalLight1" type="NODE">
  286. <matrix sid="transform">0.9998477 -0.01745241 0 0 0.01745241 0.9998477 0 0 0 0 1 0 0 0 0 1</matrix>
  287. <instance_light url="#directionalLightShape1-lib"/>
  288. <extra>
  289. <technique profile="OpenCOLLADAMaya">
  290. <originalMayaNodeId>directionalLight1</originalMayaNodeId>
  291. </technique>
  292. </extra>
  293. </node>
  294. <node id="box" name="box" type="NODE">
  295. <matrix sid="transform">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
  296. <instance_geometry url="#boxShape">
  297. <bind_material>
  298. <technique_common>
  299. <instance_material symbol="initialShadingGroup" target="#lambert1">
  300. <bind_vertex_input semantic="TEX0" input_semantic="TEXCOORD" input_set="0"/>
  301. </instance_material>
  302. </technique_common>
  303. </bind_material>
  304. </instance_geometry>
  305. <extra>
  306. <technique profile="OpenCOLLADAMaya">
  307. <originalMayaNodeId>box</originalMayaNodeId>
  308. </technique>
  309. </extra>
  310. </node>
  311. </visual_scene>
  312. </library_visual_scenes>
  313. <scene>
  314. <instance_visual_scene url="#VisualSceneNode"/>
  315. </scene>
  316. </COLLADA>