As an added data point, using ColladaMax 3.05C results in the same
error on the same named node. So I suspect that the away3d collada
importer is not supporting spline geometries.

Is there a dev that can confirm this?

Thanks,
Sean


On Jun 16, 9:25 am, Sean Stephens <[email protected]> wrote:
> I'm getting an error loading a collada file that only occured after
> adding animation information from 3ds Max. With a static model and
> textures, the file loads fine. I suspect either the OpenCollada plugin
> is somehow messing up on the export, or the Collada parser is not
> familiar with one of the animatino elements.
>
> I'm working to get the model running exported animations and any help
> getting past this sticking point is welcome :).
>
> Thanks,
> Sean
>
> -------------------
> Using:
> away3dlite v. 1.0.0
> 3ds Max v. 8
> OpenCollada for 3dsMax v. 1.2.5
>
> -------------------
> ActionScript stack trace:
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
>         at away3dlite.loaders::Collada/parseNode()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:677]
>         at away3dlite.loaders::Collada/parseNode()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:658]
>         at away3dlite.loaders::Collada/parseNode()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:658]
>         at away3dlite.loaders::Collada/parseNode()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:658]
>         at away3dlite.loaders::Collada/parseNode()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:658]
>         at away3dlite.loaders::Collada/parseScene()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:531]
>         at away3dlite.loaders::Collada/prepareData()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Collada.as:484]
>         at away3dlite.loaders::AbstractParser/parseGeometry()[D:\dev\env
> \away3dlite\away3dlite_1_0_0\away3dlite\loaders\AbstractParser.as:254]
>         at away3dlite.loaders::Loader3D/loadTextures()[D:\dev\env\away3dlite
> \away3dlite_1_0_0\away3dlite\loaders\Loader3D.as:367]
>         at away3dlite.loaders::Loader3D/onGeometryComplete()[D:\dev\env
> \away3dlite\away3dlite_1_0_0\away3dlite\loaders\Loader3D.as:155]
>         at flash.events::EventDispatcher/dispatchEventFunction()
>         at flash.events::EventDispatcher/dispatchEvent()
>         at flash.net::URLLoader/onComplete()
> ---------------------
>
> Gets the error in the parseNode function while processing the
> "instance_geometry" node case. The line that breaks is:
> (_objectData as MeshData).geometry =
> geometryLibrary.addGeometry(g...@id, geo);
>
> --------------------
>
> The node in the collada file that is breaking starts like this:
> <library_geometries>
>     <geometry id="geom-P_CTRL_FootR" name="P_CTRL_FootR">
>       <spline closed="1">
>         <source id="geom-P_CTRL_FootR-positions">
>           <float_array id="geom-P_CTRL_FootR-positions-array"
> count="12">7.36045e-6 4.70477e-7 -11.99407 7.34664e-6 9.484941
> -1.99891e-6 7.2269e-6 1.57992e-6 22.1596 7.3717e-6 -9.48494
> -3.93307e-6</float_array>
>           <technique_common>
>             <accessor source="#geom-P_CTRL_FootR-positions-array"
> count="4" stride="3">
>               <param name="X" type="float"/>
>               <param name="Y" type="float"/>
>               <param name="Z" type="float"/>
>             </accessor>
>           </technique_common>
>         </source>
>
> There are a couple of things I noticed in trying to determine whats
> broken. 1) This file introduced the <spline> node which was not in the
> exports I have used without rigging and animation data. 2) according
> to the Collada spec, the closed attribute in <spline> is a bool, and
> defaults to false. Perhaps there is an issue with true being
> represented as 1 from the exporter (I did try changing the value to
> true and got the same error)

Reply via email to