Hey iestyn can you attach full dae? should be easier ;) 2008/11/5 iestyn lloyd <[EMAIL PROTECTED]>
> > Hi list, > > I'm trying to load in a simple collada file that has two cubes, one is > linked to the other. > Please note this collada file parses and displays correctly in > Papervision, so i'm guessing it's a problem with > away3d.loaders.Collada, and I think I have a vague idea what it is. > > The error is: > TypeError: Error #1009: Cannot access a property or method of a null > object reference. > at away3d.loaders::Collada/parseNode() > > The error is on line 559: > > parent.children.push(_objectData); > trace(parent) // traces null. > > > It's line 615 that's causing this: > case "node": > parseNode(child, _objectData as ContainerData); > > "_objectData as ContainerData" <-- that's passing parseNode a value of > null. _objectData is MeshData. > > > Anyone got any ideas on this? I'd really like to start using Away3D :) > > > Relevant XML fragment of DAE is below > > Cheers! > > iestyn > =================== > <library_visual_scenes> > <visual_scene id="linked_test.max" name="linked_test_max"> > <node id="Box01-node" name="Box01" type="NODE"> > <matrix>1 0 0 8.27837 0 1 0 -10.2815 0 0 1 0 0 0 0 1</matrix> > <instance_geometry url="#Box01-mesh"> > <bind_material> > <technique_common> > <instance_material symbol="ColorMaterial" > target="#ColorMaterial_8FE15700"/> > </technique_common> > </bind_material> > </instance_geometry> > <node id="Box02-node" name="Box02" type="NODE"> > <matrix>1 0 0 27.1968 0 1 0 48.3677 0 0 1 0 0 0 0 1</matrix> > <instance_geometry url="#Box02-mesh"> > <bind_material> > <technique_common> > <instance_material symbol="ColorMaterial" > target="#ColorMaterial_8FE15700"/> > </technique_common> > </bind_material> > </instance_geometry> > </node> > </node> > <extra> > <technique profile="FCOLLADA"> > <start_time>0</start_time> > <end_time>3.32</end_time> > </technique> > </extra> > <extra> > <technique profile="MAX3D"> > <frame_rate>25</frame_rate> > </technique> > </extra> > </visual_scene> > </library_visual_scenes> > ======================== > -- katopz http://www.sleepydesign.com
