diff options
Diffstat (limited to 'o3d/import/test_data/crate.dae')
-rw-r--r-- | o3d/import/test_data/crate.dae | 239 |
1 files changed, 239 insertions, 0 deletions
diff --git a/o3d/import/test_data/crate.dae b/o3d/import/test_data/crate.dae new file mode 100644 index 0000000..36565ffd --- /dev/null +++ b/o3d/import/test_data/crate.dae @@ -0,0 +1,239 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright 2009, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> + <asset> + <contributor> + <authoring_tool>Maya2008 | ColladaMaya v3.05B</authoring_tool> + <comments>ColladaMaya export options: bakeTransforms=0;exportPolygonMeshes=1;bakeLighting=0;isSampling=0; +curveConstrainSampling=0;removeStaticCurves=1;exportCameraAsLookat=0; +exportLights=1;exportCameras=1;exportJointsAndSkin=1; +exportAnimations=1;exportTriangles=0;exportInvisibleNodes=0; +exportNormals=1;exportTexCoords=1; +exportVertexColors=1;exportVertexColorsAnimation=0;exportTangents=0; +exportTexTangents=0;exportConstraints=1;exportPhysics=1;exportXRefs=0; +dereferenceXRefs=1;cameraXFov=0;cameraYFov=1</comments> + </contributor> + <created>2008-03-05T22:10:14Z</created> + <modified>2008-03-05T22:10:14Z</modified> + <unit meter="0.01" name="centimeter"/> + <up_axis>Y_UP</up_axis> + </asset> + <library_physics_scenes> + <physics_scene id="MayaNativePhysicsScene"> + <technique_common> + <gravity>0 -980 0</gravity> + <time_step>0.083</time_step> + </technique_common> + </physics_scene> + </library_physics_scenes> + <library_images> + <image id="file1" name="file1"> + <init_from>rock01.tga</init_from> + <extra> + <technique profile="MAYA"> + <dgnode_type>kFile</dgnode_type> + <image_sequence>0</image_sequence> + </technique> + </extra> + </image> + </library_images> + <library_materials> + <material id="phong1" name="phong1"> + <instance_effect url="#phong1-fx"/> + </material> + </library_materials> + <library_effects> + <effect id="phong1-fx"> + <profile_COMMON> + <newparam sid="file1-surface"> + <surface type="2D"> + <init_from>file1</init_from> + <format>A8R8G8B8</format> + </surface> + </newparam> + <newparam sid="file1-sampler"> + <sampler2D> + <source>file1-surface</source> + <wrap_s>WRAP</wrap_s> + <wrap_t>WRAP</wrap_t> + <minfilter>NONE</minfilter> + <magfilter>NONE</magfilter> + <mipfilter>NONE</mipfilter> + </sampler2D> + </newparam> + <technique sid="common"> + <phong> + <emission> + <color>0 0 0 1</color> + </emission> + <ambient> + <color>0 0 0 1</color> + </ambient> + <diffuse> + <texture texture="file1-sampler" texcoord="TEX0"> + <extra> + <technique profile="MAYA"> + <wrapU>1</wrapU> + <wrapV>1</wrapV> + <mirrorU>0</mirrorU> + <mirrorV>0</mirrorV> + <coverageU>1</coverageU> + <coverageV>1</coverageV> + <translateFrameU>0</translateFrameU> + <translateFrameV>0</translateFrameV> + <rotateFrame>0</rotateFrame> + <stagger>0</stagger> + <fast>0</fast> + <repeatU>1</repeatU> + <repeatV>1</repeatV> + <offsetU>0</offsetU> + <offsetV>0</offsetV> + <rotateUV>0</rotateUV> + <noiseU>0</noiseU> + <noiseV>0</noiseV> + <blend_mode>NONE</blend_mode> + </technique> + </extra> + </texture> + </diffuse> + <specular> + <color>0.5 0.5 0.5 1</color> + </specular> + <shininess> + <float>20</float> + </shininess> + <reflective> + <color>0 0 0 1</color> + </reflective> + <reflectivity> + <float>0.5</float> + </reflectivity> + <transparent opaque="RGB_ZERO"> + <color>0 0 0 1</color> + </transparent> + <transparency> + <float>1</float> + </transparency> + </phong> + <extra> + <technique profile="FCOLLADA"/> + </extra> + </technique> + </profile_COMMON> + </effect> + </library_effects> + <library_geometries> + <geometry id="cubeShape" name="cubeShape"> + <mesh> + <source id="cubeShape-positions" name="position"> + <float_array id="cubeShape-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> + <technique_common> + <accessor source="#cubeShape-positions-array" count="8" stride="3"> + <param name="X" type="float"/> + <param name="Y" type="float"/> + <param name="Z" type="float"/> + </accessor> + </technique_common> + </source> + <source id="cubeShape-normals" name="normal"> + <float_array id="cubeShape-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> + <technique_common> + <accessor source="#cubeShape-normals-array" count="24" stride="3"> + <param name="X" type="float"/> + <param name="Y" type="float"/> + <param name="Z" type="float"/> + </accessor> + </technique_common> + </source> + <source id="cubeShape-map1" name="map1"> + <float_array id="cubeShape-map1-array" count="48">1 0 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 0 0 1 0 0 1 1 0 0 1 1 1 0 0 1 1 0 1 0 0 1 0 1</float_array> + <technique_common> + <accessor source="#cubeShape-map1-array" count="24" stride="2"> + <param name="S" type="float"/> + <param name="T" type="float"/> + </accessor> + </technique_common> + </source> + <vertices id="cubeShape-vertices"> + <input semantic="POSITION" source="#cubeShape-positions"/> + </vertices> + <polylist material="phong1SG" count="6"> + <input semantic="VERTEX" source="#cubeShape-vertices" offset="0"/> + <input semantic="NORMAL" source="#cubeShape-normals" offset="1"/> + <input semantic="TEXCOORD" source="#cubeShape-map1" offset="2" set="0"/> + <vcount>4 4 4 4 4 4</vcount> + <p>0 0 14 1 1 1 3 2 17 2 3 19 2 4 2 3 5 18 5 6 5 4 7 22 4 8 4 5 9 20 7 10 7 6 11 23 6 12 6 7 13 21 1 14 9 0 15 8 1 16 16 7 17 10 5 18 11 3 19 3 6 20 12 0 21 0 2 22 15 4 23 13</p> + </polylist> + </mesh> + <extra> + <technique profile="MAYA"> + <double_sided>1</double_sided> + <dynamic_attributes> + <miShadingSamplesOverride short_name="mso" type="bool">0</miShadingSamplesOverride> + <miShadingSamples short_name="msh" type="float">0</miShadingSamples> + <miMaxDisplaceOverride short_name="mdo" type="bool">0</miMaxDisplaceOverride> + <miMaxDisplace short_name="mmd" type="float">0</miMaxDisplace> + </dynamic_attributes> + </technique> + </extra> + </geometry> + </library_geometries> + <library_visual_scenes> + <visual_scene id="VisualSceneNode" name="crate"> + <node id="cube" name="cube" type="NODE"> + <rotate sid="rotateZ">0 0 1 0</rotate> + <rotate sid="rotateY">0 1 0 0</rotate> + <rotate sid="rotateX">1 0 0 0</rotate> + <instance_geometry url="#cubeShape"> + <bind_material> + <technique_common> + <instance_material symbol="phong1SG" target="#phong1"> + <bind_vertex_input semantic="TEX0" input_semantic="TEXCOORD" input_set="0"/> + </instance_material> + </technique_common> + </bind_material> + </instance_geometry> + </node> + <extra> + <technique profile="FCOLLADA"> + <start_time>0.041666</start_time> + <end_time>2</end_time> + </technique> + </extra> + </visual_scene> + </library_visual_scenes> + <scene> + <instance_physics_scene url="#MayaNativePhysicsScene"/> + <instance_visual_scene url="#VisualSceneNode"/> + </scene> +</COLLADA> |