Right now in my project I need to export camera animation from 3Ds
Max.
I use Away 3 lite and when trying to import .3ds generated by 3DsMax
2011 I get this error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at away3dlite.loaders::Max3DS/buildMeshes()[away3dlite\loaders
\Max3DS.as:655]
        at away3dlite.loaders::Max3DS/prepareData()[away3dlite\loaders
\Max3DS.as:31]
        at away3dlite.loaders::AbstractParser/parseGeometry()[away3dlite
\loaders\AbstractParser.as:254]

with this code:   // I pasted only related code

[Embed (source="anim.3ds", mimeType="application/octet-stream")]
public static const DAEFILE:Class

import away3dlite.loaders.Max3DS
var collada:Max3DS = new Max3DS()  // the name of the variable doesnt
matter...
private var model:ObjectContainer3D
model =collada.parseGeometry(DAEFILE) as ObjectContainer3D

-----------------------------------

Anyway, I can use Collada with symilar code:

import away3dlite.loaders.Collada
var collada:Collada = new Collada()   // etcetera ...

And, using animation, with this code ( using a source from
InfiniteTurtles ) :

skinAnimation =
model.animationLibrary.getAnimation("default").animation as
BonesAnimator
//and on EnterFrame
skinAnimation.update(getTimer()*2/1000)

--

This works fine, but it takes only position parameters of animation,
like x, y and z. It use no rotation or scale parameters ((

--

I have 2 questions

a. How can I export animation for camera or whatever 3D object with
all parameters, like rotation also.
b. In Away 4 will be same classes for animation? The algorithm will be
the same?

Thanks
                         Alex

/

Reply via email to