I just found the answer. It is a bug. I never reported a bug, so i hope someone will read this, try to reproduce it and put it in the bugs list.
In 3.6 external mesh files do not load in the same directory as your working file. To fix it, simply put your DAE, AWD or whatever file in a subfolder and reference it. For me it seems like it is not allowed to have no filepath. This causes: TypeError: Error #1009 at away3d.loaders::Loader3D/loadTextures() at away3d.loaders::Loader3D/onGeometryComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() On 14 Okt., 10:49, fab4ce <[email protected]> wrote: > Hi all, > > i updated my Away3D project from 2.4 to 3.6 and now my collada files > won´t load. > So i started C4D and exported a simple plane. Then i started the > newest Basic_LoadModel.fla from the examples and try to load the DAE > file the same way: > > loader = new LoaderCube(); > loader.addOnSuccess(onSuccess); > loader.loadGeometry("5.dae", new Collada()); > scene.addChild(loader); > > what i get is a: > > TypeError: Error #1009 > at away3d.loaders::Loader3D/loadTextures() > at away3d.loaders::Loader3D/onGeometryComplete() > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/onComplete() > > Does that mean, that 3.6.0 will not support C4Ds DAE file format > anymore? > This is all the content of my Collada file: > > <?xml version="1.0"?> > <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" > version="1.4.1"> > <asset> > <contributor> > <authoring_tool>CINEMA4D11.532 COLLADA Exporter</ > authoring_tool> > </contributor> > <created>2010-10-14T09:32:53Z</created> > <modified>2010-10-14T09:32:53Z</modified> > <unit name="meter"/> > <up_axis>Y_UP</up_axis> > </asset> > <library_effects> > <effect id="ID2"> > <profile_COMMON> > <technique sid="COMMON"> > <blinn> > <diffuse> > <color>0.8 0.8 0.8 1</color> > </diffuse> > <specular> > <color>0.2 0.2 0.2 1</color> > </specular> > <shininess> > <float>0.5</float> > </shininess> > </blinn> > </technique> > </profile_COMMON> > </effect> > </library_effects> > <library_materials> > <material id="ID1" name="Mat"> > <instance_effect url="#ID2"/> > </material> > </library_materials> > <library_geometries> > <geometry id="ID5"> > <mesh> > <source id="ID6"> > <float_array id="ID7" count="12">-200 0 200 200 0 > 200 -200 0 -200 200 0 -200</float_array> > <technique_common> > <accessor count="4" source="#ID7" stride="3"> > <param name="X" type="float"/> > <param name="Y" type="float"/> > <param name="Z" type="float"/> > </accessor> > </technique_common> > </source> > <source id="ID8"> > <float_array id="ID9" count="3">0 1 0</ > float_array> > <technique_common> > <accessor count="1" source="#ID9" stride="3"> > <param name="X" type="float"/> > <param name="Y" type="float"/> > <param name="Z" type="float"/> > </accessor> > </technique_common> > </source> > <source id="ID10"> > <float_array id="ID11" count="2">0 1</float_array> > <technique_common> > <accessor count="1" source="#ID11" stride="2"> > <param name="S" type="float"/> > <param name="T" type="float"/> > </accessor> > </technique_common> > </source> > <vertices id="ID12"> > <input semantic="POSITION" source="#ID6"/> > </vertices> > <polylist count="1" material="Material1"> > <input offset="0" semantic="VERTEX" source="#ID12"/ > > <input offset="1" semantic="NORMAL" source="#ID8"/ > > <input offset="2" semantic="TEXCOORD" > source="#ID10" set="0"/> > <vcount>4</vcount> > <p>1 0 0 3 0 0 2 0 0 0 0 0</p> > </polylist> > </mesh> > </geometry> > </library_geometries> > <library_visual_scenes> > <visual_scene id="ID3"> > <node id="ID4" name="Ebene"> > <translate sid="translate">0 0 0</translate> > <rotate sid="rotateY">0 1 0 0</rotate> > <rotate sid="rotateX">1 0 0 0</rotate> > <rotate sid="rotateZ">0 0 1 0</rotate> > <scale sid="scale">1 1 1</scale> > <instance_geometry url="#ID5"> > <bind_material> > <technique_common> > <instance_material symbol="Material1" > target="#ID1"> > <bind_vertex_input semantic="UVSET0" > input_semantic="TEXCOORD" input_set="0"/> > </instance_material> > </technique_common> > </bind_material> > </instance_geometry> > </node> > </visual_scene> > </library_visual_scenes> > <scene> > <instance_visual_scene url="#ID3"/> > </scene> > </COLLADA>
