[Plib-cvs] plib/src/ssg ssgLoadASE.cxx,1.47,1.48
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-29 22:41:50
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6948 Modified Files: ssgLoadASE.cxx Log Message: Implemented *CONTROL_TCB_ROT_KEY (translation not implemented yet). This creates ssgAnimTransform nodes for animation. Index: ssgLoadASE.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadASE.cxx,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- ssgLoadASE.cxx 4 Oct 2004 08:11:26 -0000 1.47 +++ ssgLoadASE.cxx 29 Oct 2004 22:41:37 -0000 1.48 @@ -169,7 +169,7 @@ static u32 last_frame ; static u32 frame_speed ; static u32 ticks_per_frame ; -static u32 num_frames ; +static u32 num_frames=0 ; static _ssgParserSpec parser_spec = { @@ -1144,10 +1144,13 @@ return( &obj->tkeys[ frame ] ); } [...82 lines suppressed...] for ( u32 i = 1 ; i < obj->num_tkeys ; i++ ) { @@ -1514,13 +1559,11 @@ sgMakeTransMat4 ( tmp, pos ) ; sgPostMultMat4 ( mat, tmp ) ; - ta -> add ( mat ) ; + at->setATransform ( mat, i); } - - ssgTransform* tr = new ssgTransform ; - tr = current_options -> createTransform ( tr, ta ) ; - tr -> addKid ( mesh_entity ) ; - mesh_entity = tr ; + // insert the ssgAnimTransform into the scene graph: + at-> addKid ( mesh_entity ) ; + mesh_entity = at; } parent_branch -> addKid ( mesh_entity ) ; |