Created
October 25, 2018 18:36
-
-
Save wtsnz/bfa11c40e04594b260255b5dc7956f26 to your computer and use it in GitHub Desktop.
An example Collada file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> | |
<asset> | |
<contributor> | |
<authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool> | |
</contributor> | |
<created>2018-10-25T16:29:03Z</created> | |
<modified>2018-10-25T16:29:03Z</modified> | |
<unit meter="1.000000"/> | |
<up_axis>Y_UP</up_axis> | |
</asset> | |
<library_materials> | |
<material id="Blue" name="Blue"> | |
<instance_effect url="#effect_Blue"/> | |
</material> | |
</library_materials> | |
<library_effects> | |
<effect id="effect_Blue"> | |
<profile_COMMON> | |
<technique sid="common"> | |
<phong> | |
<ambient> | |
<color>0 0 0 1</color> | |
</ambient> | |
<diffuse> | |
<color>0.137255 0.403922 0.870588 1</color> | |
</diffuse> | |
<specular> | |
<color>0.5 0.5 0.5 1</color> | |
</specular> | |
<shininess> | |
<float>16</float> | |
</shininess> | |
<transparent opaque="A_ONE"> | |
<color>0 0 0 1</color> | |
</transparent> | |
<transparency> | |
<float>1</float> | |
</transparency> | |
<index_of_refraction> | |
<float>1</float> | |
</index_of_refraction> | |
</phong> | |
</technique> | |
</profile_COMMON> | |
<!-- <extra> | |
<technique profile="SceneKit"> | |
<litPerPixel>1</litPerPixel> | |
<ambient_diffuse_lock>1</ambient_diffuse_lock> | |
</technique> | |
</extra> --> | |
</effect> | |
</library_effects> | |
<library_geometries> | |
<geometry id="F1" name="Face1Geometry"> | |
<mesh> | |
<source id="cube-vertex-positions"> | |
<float_array id="ID2-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> | |
<technique_common> | |
<accessor source="#ID2-array" count="24" stride="3"> | |
<param name="X" type="float"/> | |
<param name="Y" type="float"/> | |
<param name="Z" type="float"/> | |
</accessor> | |
</technique_common> | |
</source> | |
<vertices id="cube-vertices"> | |
<input semantic="POSITION" source="#cube-vertex-positions"/> | |
</vertices> | |
<triangles count="12" material="geometryElement5"> | |
<input semantic="VERTEX" offset="0" source="#cube-vertices"/> | |
<p>0 1 2 0 2 3 4 5 6 4 6 7 8 9 10 8 10 11 12 13 14 12 14 15 16 17 18 16 18 19 20 21 22 20 22 23 </p> | |
</triangles> | |
</mesh> | |
</geometry> | |
</library_geometries> | |
<library_visual_scenes> | |
<visual_scene id="reportScene"> | |
<!-- No Spaces allowed in Name --> | |
<node id="F1" name="Face1"> | |
<instance_geometry url="#F1"> | |
<bind_material> | |
<technique_common> | |
<instance_material symbol="geometryElement5" target="#Blue"/> | |
</technique_common> | |
</bind_material> | |
</instance_geometry> | |
</node> | |
</visual_scene> | |
</library_visual_scenes> | |
<scene> | |
<instance_visual_scene url="#reportScene"/> | |
</scene> | |
</COLLADA> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment