Simple MD2 play

0 views
Skip to first unread message

Beka Master

unread,
Aug 29, 2008, 6:55:06 AM8/29/08
to away3d.dev
Hi guys,
I've a md2 animated file (exported by MilkShape), for get a loop
animation in Papervision3D I use this code:

...
myMD2.loop(1,200);
...

and it works.

There's some fast method like this in Away3D?

plz help.

Fabrice

unread,
Aug 29, 2008, 7:26:22 AM8/29/08
to away3...@googlegroups.com
Hey Beka
you need to import away3d.animators.data.AnimationSequence;

AnimationSequence(prefix:String, smooth:Boolean = false, loop:Boolean
= false, fps:Number = 24)

md2.play(new AnimationSequence("frameprefix", true, true , 24));

you also can add a cycle event if you need to like
md2.addOnCycle(myfunction);
if you have more prefixes, you can also use setSequence() to generate
logical combinations of moves
like "hit", "fall", "roll", "die"... they would be played after each
other on a linear fashion like a single animationsequence
You then can add sequence listeners...

you have access also to play, stop, goto, framenumbers etc...

Fabrice

Beka Master

unread,
Aug 29, 2008, 7:46:07 AM8/29/08
to away3d.dev
Fine,
but still have a problem, I've generated and animated the model by 3D
Studio Max 8, next I've imported in MilkShape and rexported to MD2, I
don't know how to set the frameprefixs. There is some tool to set the
frameprefixs?

-Beka
> > plz help.- Nascondi testo citato
>
> - Mostra testo citato -

katopz

unread,
Aug 29, 2008, 8:15:21 AM8/29/08
to away3...@googlegroups.com

Fabrice

unread,
Aug 29, 2008, 8:17:38 AM8/29/08
to away3...@googlegroups.com
well, if you just import your keyframes models (at dev time you also
can save them natively as AS3)
you can then generate the "md2" natively in Away, no need to have 3d
party app for this, you can define the prefixes as you wish.
Look at the Animator class
http://away3d.com/tutorials/tutorial-how-to-use-the-animator-class

Fabrice

Beka Master

unread,
Aug 29, 2008, 8:27:35 AM8/29/08
to away3d.dev
Thank you so much!

I've used the Quake Model Editor, is free and is very very fast, now I
can set the frames name and all works greats!

This is the direct link for donwload QME :
http://ftp.gamers.org/pub/idgames2/planetquake/rmd/q2modeller/q2mdlr9b.zip

-Beka

On 29 Ago, 14:17, Fabrice <fabric...@gmail.com> wrote:
> well, if you just import your keyframes models (at dev time you also  
> can save them natively as AS3)
> you can then generate the "md2" natively in Away, no need to have 3d  
> party app for this, you can define the prefixes as you wish.
> Look at the Animator classhttp://away3d.com/tutorials/tutorial-how-to-use-the-animator-class
> >> - Mostra testo citato -- Nascondi testo citato

katopz

unread,
Aug 29, 2008, 8:55:01 AM8/29/08
to away3...@googlegroups.com
don't forget to show your work after finish, we love to see ;D

2008/8/29 Beka Master <bekam...@elventech.com>

Beka Master

unread,
Aug 29, 2008, 9:38:17 AM8/29/08
to away3d.dev
Indeed! :)

On 29 Ago, 14:55, katopz <kat...@gmail.com> wrote:
> don't forget to show your work after finish, we love to see ;D
>
> 2008/8/29 Beka Master <bekamas...@elventech.com>
>
>
>
>
>
>
>
> > Thank you so much!
>
> > I've used the Quake Model Editor, is free and is very very fast, now I
> > can set the frames name and all works greats!
>
> > This is the direct link for donwload QME :
> >http://ftp.gamers.org/pub/idgames2/planetquake/rmd/q2modeller/q2mdlr9...
> katopzhttp://www.sleepydesign.com- Nascondi testo citato
Reply all
Reply to author
Forward
0 new messages