how to play non-bone Animation (simple movement,no bone) from awd2 ?

Software: Away3D 4.x

Doyle, Newbie
Posted: 22 October 2012 02:15 AM   Total Posts: 4

hello,i am new to Away3D 4.0.

  recently,i export a collada file from 3ds max 2011 (open collada),and then i put it into prefab3D for exporting awd2 file, this collada is not a bone animation file,it is just a simple movement such as rorate,moving xyz…..

  i find many tutorial about awd2 “bone animation”  in google search ,but how to play the animation just like my case( no bone,movement only)??


my code is now look something like this:

//load awd
 
Parsers.enableAllBundled();
 
    var _loader:Loader3D = new Loader3D();
        _loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
  _loader.load( new URLRequest(’./awd/COLA3/COLA3.awd’) );
 
 
    function onResourceComplete(ev : LoaderEvent) {
     
              trace(“loaded”);
    _view.scene.addChild(_loader);
    _view.camera.lookAt(_loader.position);
   
    Mesh(_loader.getChildAt(0)).animator.start();
    }

but i get a error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

   

Avatar
Fabrice Closier, Administrator
Posted: 22 October 2012 08:47 AM   Total Posts: 1265   [ # 1 ]

There is no concept of linear/timeline animation implemented yet. The nearest equivallent would be to use Prefab’s behaviours.

   

Doyle, Newbie
Posted: 22 October 2012 09:00 AM   Total Posts: 4   [ # 2 ]
Fabrice Closier - 22 October 2012 08:47 AM

There is no concept of linear/timeline animation implemented yet. The nearest equivallent would be to use Prefab’s behaviours.

OH…THANK for the reply smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X