Advertisement
Guest User

A simple cube in COLLADA format

a guest
Feb 16th, 2013
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.70 KB | None | 0 0
  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>Blender User</author>
  6.       <authoring_tool>Blender 2.65.0 r52859</authoring_tool>
  7.     </contributor>
  8.     <created>2013-02-14T17:34:09</created>
  9.     <modified>2013-02-14T17:34:09</modified>
  10.     <unit name="meter" meter="1"/>
  11.     <up_axis>Z_UP</up_axis>
  12.   </asset>
  13.   <library_images>
  14.     <image id="wooden_wall_16_png" name="wooden_wall_16_png">
  15.       <init_from>wooden_wall_16.png</init_from>
  16.     </image>
  17.   </library_images>
  18.   <library_effects>
  19.     <effect id="Material-effect">
  20.       <profile_COMMON>
  21.         <newparam sid="wooden_wall_16_png-surface">
  22.           <surface type="2D">
  23.             <init_from>wooden_wall_16_png</init_from>
  24.           </surface>
  25.         </newparam>
  26.         <newparam sid="wooden_wall_16_png-sampler">
  27.           <sampler2D>
  28.             <source>wooden_wall_16_png-surface</source>
  29.           </sampler2D>
  30.         </newparam>
  31.         <technique sid="common">
  32.           <phong>
  33.             <emission>
  34.               <color sid="emission">0 0 0 1</color>
  35.             </emission>
  36.             <ambient>
  37.               <color sid="ambient">0 0 0 1</color>
  38.             </ambient>
  39.             <diffuse>
  40.               <texture texture="wooden_wall_16_png-sampler" texcoord="UVMap"/>
  41.             </diffuse>
  42.             <specular>
  43.               <color sid="specular">0.5 0.5 0.5 1</color>
  44.             </specular>
  45.             <shininess>
  46.               <float sid="shininess">50</float>
  47.             </shininess>
  48.             <index_of_refraction>
  49.               <float sid="index_of_refraction">1</float>
  50.             </index_of_refraction>
  51.           </phong>
  52.         </technique>
  53.       </profile_COMMON>
  54.     </effect>
  55.   </library_effects>
  56.   <library_materials>
  57.     <material id="Material-material" name="Material">
  58.       <instance_effect url="#Material-effect"/>
  59.     </material>
  60.   </library_materials>
  61.   <library_geometries>
  62.     <geometry id="Cube-mesh" name="Cube">
  63.       <mesh>
  64.         <source id="Cube-mesh-positions">
  65.           <float_array id="Cube-mesh-positions-array" count="72">1 1 -1 1 -1 -1 -1 -0.9999998 -1 -0.9999997 1 -1 1 0.9999995 1 0.9999994 -1.000001 1 -1 -0.9999997 1 -1 1 1 1 1 -1 1 1 -1 1 -1 -1 1 -1 -1 -0.9999997 1 -1 -0.9999997 1 -1 1 0.9999995 1 1 0.9999995 1 -1 -0.9999998 -1 -1 -0.9999998 -1 0.9999994 -1.000001 1 0.9999994 -1.000001 1 -1 -0.9999997 1 -1 -0.9999997 1 -1 1 1 -1 1 1</float_array>
  66.           <technique_common>
  67.             <accessor source="#Cube-mesh-positions-array" count="24" stride="3">
  68.               <param name="X" type="float"/>
  69.               <param name="Y" type="float"/>
  70.               <param name="Z" type="float"/>
  71.             </accessor>
  72.           </technique_common>
  73.         </source>
  74.         <source id="Cube-mesh-normals">
  75.           <float_array id="Cube-mesh-normals-array" count="36">0 0 -1 0 0 1 1 -5.66244e-7 -2.38419e-7 -4.76837e-7 -1 -2.98023e-7 -1 2.08616e-7 -1.19209e-7 2.08616e-7 1 2.38419e-7 0 0 -1 0 0 1 1 0 3.27826e-7 0 -1 0 -1 2.38419e-7 -1.49012e-7 2.68221e-7 1 1.78814e-7</float_array>
  76.           <technique_common>
  77.             <accessor source="#Cube-mesh-normals-array" count="12" stride="3">
  78.               <param name="X" type="float"/>
  79.               <param name="Y" type="float"/>
  80.               <param name="Z" type="float"/>
  81.             </accessor>
  82.           </technique_common>
  83.         </source>
  84.         <source id="Cube-mesh-map-0">
  85.           <float_array id="Cube-mesh-map-0-array" count="72">0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1</float_array>
  86.           <technique_common>
  87.             <accessor source="#Cube-mesh-map-0-array" count="36" stride="2">
  88.               <param name="S" type="float"/>
  89.               <param name="T" type="float"/>
  90.             </accessor>
  91.           </technique_common>
  92.         </source>
  93.         <vertices id="Cube-mesh-vertices">
  94.           <input semantic="POSITION" source="#Cube-mesh-positions"/>
  95.         </vertices>
  96.         <polylist material="Material-material" count="12">
  97.           <input semantic="VERTEX" source="#Cube-mesh-vertices" offset="0"/>
  98.           <input semantic="NORMAL" source="#Cube-mesh-normals" offset="1"/>
  99.           <input semantic="TEXCOORD" source="#Cube-mesh-map-0" offset="2" set="0"/>
  100.           <vcount>3 3 3 3 3 3 3 3 3 3 3 3 </vcount>
  101.           <p>0 0 0 1 0 1 2 0 2 14 1 3 22 1 4 21 1 5 9 2 6 4 2 7 18 2 8 10 3 9 5 3 10 20 3 11 16 4 12 6 4 13 7 4 14 15 5 15 8 5 16 3 5 17 12 6 18 0 6 19 2 6 20 19 7 21 14 7 22 21 7 23 11 8 24 9 8 25 18 8 26 17 9 27 10 9 28 20 9 29 13 10 30 16 10 31 7 10 32 23 11 33 15 11 34 3 11 35</p>
  102.         </polylist>
  103.       </mesh>
  104.     </geometry>
  105.   </library_geometries>
  106.   <library_visual_scenes>
  107.     <visual_scene id="Scene" name="Scene">
  108.       <node id="Cube" name="Cube" type="NODE">
  109.         <translate sid="location">0 0 0</translate>
  110.         <rotate sid="rotationZ">0 0 1 0</rotate>
  111.         <rotate sid="rotationY">0 1 0 0</rotate>
  112.         <rotate sid="rotationX">1 0 0 0</rotate>
  113.         <scale sid="scale">1 1 1</scale>
  114.         <instance_geometry url="#Cube-mesh">
  115.           <bind_material>
  116.             <technique_common>
  117.               <instance_material symbol="Material-material" target="#Material-material">
  118.                 <bind_vertex_input semantic="UVMap" input_semantic="TEXCOORD" input_set="0"/>
  119.               </instance_material>
  120.             </technique_common>
  121.           </bind_material>
  122.         </instance_geometry>
  123.       </node>
  124.     </visual_scene>
  125.   </library_visual_scenes>
  126.   <scene>
  127.     <instance_visual_scene url="#Scene"/>
  128.   </scene>
  129. </COLLADA>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement