In my case its the following:

private var _c1:ObjectContainer3D;
private var _c2:ObjectContainer3D;
var l1: Loader3D = new Loader3D ();
var l2: Loader3D = new Loader3D ();

l1 = Collada.load("./anfangspunkte.DAE");
l1.addEventListener(Loader3DEvent.LOAD_SUCCESS, onModelLoadSuccess1);

l2 = Collada.load("./endpunkte.DAE");
l2.addEventListener(Loader3DEvent.LOAD_SUCCESS, onModelLoadSuccess2);



private function onModelLoadSuccess1(e:Loader3DEvent):void {
        _loaded1 = true;
        _c1= ObjectContainer3D(e.loader.handle);
        if (_loaded1 && _loaded2) addCar();
}

private function onModelLoadSuccess2(e:Loader3DEvent):void {
        _loaded2 = true;

        _c2 = ObjectContainer3D(e.loader.handle);
        if (_loaded1 && _loaded2) addCar();
}

private function addCar() {
// create animation and add car
}


There is a lot of FLAR code around so I just pasted the interesting
code. I would like to create the animation inside the addCar()
function and add the car object to the stage. c1 is an unexploded car,
c2 is an exploded car (i just moved the car parts around using 3dmax
an exported it with opencollada). The problem is that I don't know how
I can use the VertexAnimator Class to create this animation using my 2
DAE files.
Just loading one (c1) DAE and adding it is working fine. But I can't
create the animation.

Hope you can help me with that!

Thanks
Michael


On 29 Apr., 13:43, Fabrice3D <[email protected]> wrote:
> I've received no less than 11 requests for code/test debug this morning 
> only...
> I would save me time if you would post what you have so far, as I have no 
> snippet for this ready.
>
> Fabrice
>
> On Apr 29, 2011, at 1:24 PM, Michael G wrote:
>
>
>
>
>
>
>
> > Hi Fabrice,
>
> > can you please provide an example for using the VertexAnimator with
> > two objects (in my case I want to create an animation using two DAE
> > [object in start position, object in end position]).
>
> > Thank you
> > Michael
>
> > On 26 Apr., 16:17, Fabrice3D <[email protected]> wrote:
> >> You could use 3.5 and be able to do exactly as in tutorial.
>
> >> If you want to switch to 3.6, you need to use the vertexAnimator class, 
> >> where prior class was extracting the vertices for you from meshes
> >> in 3.6 you need to pass this list of vertices as Vector3D's
>
> >> Fabrice
>
> >> On Apr 26, 2011, at 3:57 PM, KZ wrote:
>
> >>> Hi, I'd like to have an hint on the new vertex animation class, I can't 
> >>> find any tutorial neither in the book there are referencies to this 
> >>> method.
>
> >>> I made my face with facegen, exported it with different "emotions", than 
> >>> with prefab I can export them as as3, so I could have the same 3d mesh 
> >>> with different expression (smile.as, anger.as, surprise.as, etc..)
>
> >>> I'd like to animate them like in this 
> >>> tutorial:http://www.closier.nl/blog/?p=71
>
> >>> But unfortunately the new version use another class (like it says 
> >>> herehttp://abiamy.com/abiyasablogs/2010/05/20/vertex-animation-with-away3d/),
> >>>  but this example is pretty complex, I'd like to know if you could help 
> >>> me with an easy example on how to use the new vertex animator class.
>
> >>> I'm looking for a solution but I still can't find a clear example, hope 
> >>> this could help even other newbies like me :)
>
> >>> Thanks in advance

Reply via email to