sio2IpoPlay backwards?
2 posters
sio2IpoPlay backwards?
Hello,
is it possible to play the ipo backwards?
is it possible to play the ipo backwards?
skaterazn- Posts : 12
Join date : 2009-07-03
Re: sio2IpoPlay backwards?
I don't know where i have to edit the code.
can you tell me where to edit the code?
i have added in the sio2_ipo.cc:
void sio2IpoBackwards( SIO2ipo *_SIO2ipo )
{ _SIO2ipo->state = SIO2_BACKWARDS; }
and in the method sio2IpoRender the same like it is done for SIO2_PLAY.
if( _SIO2ipo->state == SIO2_BACKWARDS )
{
if( _SIO2ipo->locx )
{ _SIO2ipo->_SIO2transform->loc->x = sio2IpoCurveRender( _SIO2ipo->locx, _SIO2window ); }
if( _SIO2ipo->locy )
{ _SIO2ipo->_SIO2transform->loc->y = sio2IpoCurveRender( _SIO2ipo->locy, _SIO2window ); }
if( _SIO2ipo->locz )
{ _SIO2ipo->_SIO2transform->loc->z = sio2IpoCurveRender( _SIO2ipo->locz, _SIO2window ); }
if( _SIO2ipo->rotx )
{ _SIO2ipo->_SIO2transform->rot->x = sio2IpoCurveRender( _SIO2ipo->rotx, _SIO2window ); }
if( _SIO2ipo->roty )
{ _SIO2ipo->_SIO2transform->rot->y = sio2IpoCurveRender( _SIO2ipo->roty, _SIO2window ); }
if( _SIO2ipo->rotz )
{ _SIO2ipo->_SIO2transform->rot->z = sio2IpoCurveRender( _SIO2ipo->rotz, _SIO2window ); }
if( _SIO2ipo->sclx )
{ _SIO2ipo->_SIO2transform->scl->x = sio2IpoCurveRender( _SIO2ipo->sclx, _SIO2window ); }
if( _SIO2ipo->scly )
{ _SIO2ipo->_SIO2transform->scl->y = sio2IpoCurveRender( _SIO2ipo->scly, _SIO2window ); }
if( _SIO2ipo->sclz )
{ _SIO2ipo->_SIO2transform->scl->z = sio2IpoCurveRender( _SIO2ipo->sclz, _SIO2window ); }
}
and added into the enum in sio2_utils.h , SIO2_BACKWARD:
typedef enum
{
SIO2_STOP = 0,
SIO2_BACKWARDS,
SIO2_PLAY,
SIO2_PAUSE
} SIO2_STATE;
when i start it with sio2IpoBackwards( _SIO2ipo ); it won't even play forward. it doesn nothing.
can you tell me where to edit the code?
i have added in the sio2_ipo.cc:
void sio2IpoBackwards( SIO2ipo *_SIO2ipo )
{ _SIO2ipo->state = SIO2_BACKWARDS; }
and in the method sio2IpoRender the same like it is done for SIO2_PLAY.
if( _SIO2ipo->state == SIO2_BACKWARDS )
{
if( _SIO2ipo->locx )
{ _SIO2ipo->_SIO2transform->loc->x = sio2IpoCurveRender( _SIO2ipo->locx, _SIO2window ); }
if( _SIO2ipo->locy )
{ _SIO2ipo->_SIO2transform->loc->y = sio2IpoCurveRender( _SIO2ipo->locy, _SIO2window ); }
if( _SIO2ipo->locz )
{ _SIO2ipo->_SIO2transform->loc->z = sio2IpoCurveRender( _SIO2ipo->locz, _SIO2window ); }
if( _SIO2ipo->rotx )
{ _SIO2ipo->_SIO2transform->rot->x = sio2IpoCurveRender( _SIO2ipo->rotx, _SIO2window ); }
if( _SIO2ipo->roty )
{ _SIO2ipo->_SIO2transform->rot->y = sio2IpoCurveRender( _SIO2ipo->roty, _SIO2window ); }
if( _SIO2ipo->rotz )
{ _SIO2ipo->_SIO2transform->rot->z = sio2IpoCurveRender( _SIO2ipo->rotz, _SIO2window ); }
if( _SIO2ipo->sclx )
{ _SIO2ipo->_SIO2transform->scl->x = sio2IpoCurveRender( _SIO2ipo->sclx, _SIO2window ); }
if( _SIO2ipo->scly )
{ _SIO2ipo->_SIO2transform->scl->y = sio2IpoCurveRender( _SIO2ipo->scly, _SIO2window ); }
if( _SIO2ipo->sclz )
{ _SIO2ipo->_SIO2transform->scl->z = sio2IpoCurveRender( _SIO2ipo->sclz, _SIO2window ); }
}
and added into the enum in sio2_utils.h , SIO2_BACKWARD:
typedef enum
{
SIO2_STOP = 0,
SIO2_BACKWARDS,
SIO2_PLAY,
SIO2_PAUSE
} SIO2_STATE;
when i start it with sio2IpoBackwards( _SIO2ipo ); it won't even play forward. it doesn nothing.
skaterazn- Posts : 12
Join date : 2009-07-03
Permissions in this forum:
You cannot reply to topics in this forum
|
|