Bug Report - Camera IPO with no rotation

View previous topic View next topic Go down

Bug Report - Camera IPO with no rotation

Post  jimmyz on Wed Oct 07, 2009 9: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

View user profile

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