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.

Bug Report - Camera IPO with no rotation

Go down

Bug Report - Camera IPO with no rotation Empty Bug Report - Camera IPO with no rotation

Post  jimmyz Wed Oct 07, 2009 1:20 am

If you add an IPO to the camera and only add location keyframes it rotates the dir variables in the camera transform.

There is something wrong in sio2CameraRender
Code:

        if( _SIO2camera->_SIO2ipo && _SIO2camera->_SIO2ipo->state == SIO2_PLAY )
        {
                sio2TransformSetLoc( _SIO2camera->_SIO2transform,
                                                        _SIO2camera->_SIO2ipo->_SIO2transform->loc );

                sio2TransformSetRot( _SIO2camera->_SIO2transform,
                                                        _SIO2camera->_SIO2ipo->_SIO2transform->rot );

                sio2Rotate3D( _SIO2camera->_SIO2transform->loc,
                                      90.0f - _SIO2camera->_SIO2ipo->_SIO2transform->rot->x,
                                      _SIO2camera->_SIO2ipo->_SIO2transform->rot->z,
                                      -1.0f,
                                      &v );

                sio2Vec3Diff( &v,
                                          _SIO2camera->_SIO2transform->loc,
                                          _SIO2camera->_SIO2transform->dir );


Temporary solution: Add LocRot keyframes.

jimmyz

Posts : 2
Join date : 2009-10-07

Back to top Go down

Back to top

- Similar topics

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