Hi,
I'm totaly new to Plib. I've been playing around with the
examples and was trying to play a MD2 animation instead of
tux in the tux example, so far with no success.
Can sombody give me a hint or so? Looking at the source of
ssgloadmd2.cpp I've wrote these lines:
static ssgTransform *penguin = NULL ;
// load md2 object
ssgEntity *tux_obj = ssgLoadMD2( "weapon.md2");
ssgTimedSelector *ts1 = (ssgTimedSelector *)tsmain -> getKid
( 0 );
tsmain->selectStep ( SSG_MD2_STAND );
penguin -> addKid ( ts1 ) ;
scene -> addKid ( penguin ) ;
Well the object is shown alright, but it is not animated. I
checked the md2 file, it has the whole animation sequences.
Thanks for any help,
Eli
|