sio2IpoPlay backwards?

View previous topic View next topic Go down

sio2IpoPlay backwards?

Post  skaterazn on Sat Aug 15, 2009 8:14 am

Hello,

is it possible to play the ipo backwards?

skaterazn

Posts : 12
Join date : 2009-07-03

View user profile

Back to top Go down

Re: sio2IpoPlay backwards?

Post  sio2interactive on Sat Aug 15, 2009 3:41 pm

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2IpoPlay backwards?

Post  skaterazn on 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

View user profile

Back to top Go down

Re: sio2IpoPlay backwards?

Post  sio2interactive on Sat Aug 29, 2009 4:32 pm

You need to edit the code is sio2_ipocurve...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2IpoPlay backwards?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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