Hi, I’m having a bit of an experiment with exporting an animated .dae from blender, importing that into prefab3D, and exporting as an AWD2, and then importing that into an away3d scene.
So far, I’ve successfully exported the .dae, and importing it into prefab3D I have the model (albeit rotated 90 along x), and the animation.
However, if I try to import this into away3D, by changing the filename in the ‘Intermediate_PolarBearAWDAnimation.as’ example, I get an error at
polarBearMesh.animator = skeletonAnimator;
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
and if I try to trace (polarBearMesh.animator) I get the same error.
Sooo, I’m wondering what is different about my dae?
I notice that in prefab3D, the animation states IDs are ‘null’, whereas if I load the polar bear awd the states have IDs like walk etc…
If i comment out the
‘polarBearMesh.animator = skeletonAnimator;’
line, the dae imports fine.
Also, how does the forward and backwards motion work? With my imported dae I can rotate, but not move forwards or backwards, and I notice that if I disable the skeleton for the polar bear example, I have the same result. How does the skeleton animation dictate the direction of movement?
Thanks