away3dlite ver. 1.02
I want to load simple dae file: but can't do this
Output window has a next:
! ------------- Begin Parse Collada -------------
! ------------- Begin Parse Scene -------------
! ------------- End Parse Scene -------------
TypeError: Error #1009: ...... "null".
 at away3dlite.loaders::Collada/parseScene()
 at away3dlite.loaders::Collada/prepareData()
 at away3dlite.loaders::AbstractParser/parseGeometry()
 at away3dlite.loaders::Loader3D/loadTextures()
 at away3dlite.loaders::Loader3D/onGeometryComplete()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()


My code:
file_model="mypath";
collada = new Collada();
collada.scaling = 10;
loader = new Loader3D();
loader.loadGeometry(file_model, collada);
loader.addEventListener(Loader3DEvent.LOAD_SUCCESS, onSuccess);

Why I have a error?
Who can help?
---------------------------------------------
file----------------------------
  <?xml version="1.0" encoding="utf-8" ?>
- <COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/
COLLADASchema">
- <asset>
- <contributor>
  <author>Illusoft Collada 1.4.0 plugin for Blender -
http://colladablender.illusoft.com</author>
  <authoring_tool>Blender v:249 - Illusoft Collada Exporter v:0.3.161</
authoring_tool>
  <comments />
  <copyright />
  <source_data>file://C://</source_data>
  </contributor>
  <created>2010-03-12T18:30:50.218000</created>
  <modified>2010-03-12T18:30:50.218000</modified>
  <unit meter="0.01" name="centimeter" />
  <up_axis>Z_UP</up_axis>
  </asset>
- <library_geometries>
- <geometry id="Cube_001" name="Cube_001">
- <mesh>
- <source id="Cube_001-Position">
  <float_array count="24" id="Cube_001-Position-array">3.59423 1.00000
-1.00000 3.59423 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000
1.00000 -1.00000 1.00000 1.00000 1.00000 1.00000 -1.00000 1.00000
-1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000</float_array>
- <technique_common>
- <accessor count="8" source="#Cube_001-Position-array" stride="3">
  <param type="float" name="X" />
  <param type="float" name="Y" />
  <param type="float" name="Z" />
  </accessor>
  </technique_common>
  </source>
- <source id="Cube_001-Normals">
  <float_array count="18" id="Cube_001-Normals-array">0.00000 0.00000
-1.00000 0.00000 -0.00000 1.00000 0.61056 -0.00000 0.79197 -0.00000
-1.00000 -0.00000 -1.00000 0.00000 -0.00000 0.00000 1.00000 0.00000</
float_array>
- <technique_common>
- <accessor count="6" source="#Cube_001-Normals-array" stride="3">
  <param type="float" name="X" />
  <param type="float" name="Y" />
  <param type="float" name="Z" />
  </accessor>
  </technique_common>
  </source>
- <vertices id="Cube_001-Vertex">
  <input semantic="POSITION" source="#Cube_001-Position" />
  </vertices>
- <triangles count="12">
  <input offset="0" semantic="VERTEX" source="#Cube_001-Vertex" />
  <input offset="1" semantic="NORMAL" source="#Cube_001-Normals" />
  <p>0 0 1 0 2 0 2 0 3 0 0 0 4 1 7 1 6 1 6 1 5 1 4 1 0 2 4 2 5 2 5 2 1
2 0 2 1 3 5 3 6 3 6 3 2 3 1 3 2 4 6 4 7 4 7 4 3 4 2 4 4 5 0 5 3 5 3 5
7 5 4 5</p>
  </triangles>
  </mesh>
  </geometry>
  </library_geometries>
- <library_visual_scenes>
- <visual_scene id="Scene" name="Scene">
- <node layer="L1" id="Cube" name="Cube">
  <translate sid="translate">0.00000 0.00000 0.00000</translate>
  <rotate sid="rotateZ">0 0 1 0.00000</rotate>
  <rotate sid="rotateY">0 1 0 -0.00000</rotate>
  <rotate sid="rotateX">1 0 0 0.00000</rotate>
  <scale sid="scale">2.60443 2.60443 2.60443</scale>
  <instance_geometry url="#Cube_001" />
  </node>
  </visual_scene>
  </library_visual_scenes>
- <scene>
  <instance_visual_scene url="#Scene" />
  </scene>
  </COLLADA>

Reply via email to