FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sio2IpoPlay backwards?

2 posters

Go down

sio2IpoPlay backwards? Empty sio2IpoPlay backwards?

Post  skaterazn Sat Aug 15, 2009 8:14 am

Hello,

is it possible to play the ipo backwards?

skaterazn

Posts : 12
Join date : 2009-07-03

Back to top Go down

sio2IpoPlay backwards? Empty Re: sio2IpoPlay backwards?

Post  sio2interactive Sat Aug 15, 2009 3:41 pm

hummmm a few line of code in the source will do all that Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

sio2IpoPlay backwards? Empty Re: sio2IpoPlay backwards?

Post  skaterazn Sat Aug 29, 2009 8:02 am

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.

skaterazn

Posts : 12
Join date : 2009-07-03

Back to top Go down

sio2IpoPlay backwards? Empty Re: sio2IpoPlay backwards?

Post  sio2interactive Sat Aug 29, 2009 4:32 pm

You need to edit the code is sio2_ipocurve...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

sio2IpoPlay backwards? Empty Re: sio2IpoPlay backwards?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum