Rotate the camera instead of the object...
2 posters
Rotate the camera instead of the object...
Hello to all, looking for a little tips. How do I rotate the camera instead of the object? To rotate the object using this code:
_SIO2object = ( SIO2object * )sio2ResourceGet( sio2->_SIO2resource,SIO2_OBJECT,"object/Cube");
_SIO2object->_SIO2transform->rot->z += 0.01);
sio2TransformBindMatrix( _SIO2object->_SIO2transform );
_SIO2object = ( SIO2object * )sio2ResourceGet( sio2->_SIO2resource,SIO2_OBJECT,"object/Cube");
_SIO2object->_SIO2transform->rot->z += 0.01);
sio2TransformBindMatrix( _SIO2object->_SIO2transform );
skyman- Posts : 2
Join date : 2009-04-17
Re: Rotate the camera instead of the object...
sio2Rotate3D
sio2Rotate2D
sio2LookAt
sio2TransformRotateZ
sio2TransformRotateX
_SIO2camera->_SIO2transform->dir->xyz
glRotatef
sio2Rotate2D
sio2LookAt
sio2TransformRotateZ
sio2TransformRotateX
_SIO2camera->_SIO2transform->dir->xyz
glRotatef
Re: Rotate the camera instead of the object...
Can you send me example code?
this code:
_SIO2camera->_SIO2transform->dir->z=0.02;
sio2TransformBindMatrix( _SIO2camera->_SIO2transform );
does not seem to work.
Cheers
this code:
_SIO2camera->_SIO2transform->dir->z=0.02;
sio2TransformBindMatrix( _SIO2camera->_SIO2transform );
does not seem to work.
Cheers
skyman- Posts : 2
Join date : 2009-04-17
Re: Rotate the camera instead of the object...
Check tutorial04, 06_1, 06_2, 09, 13_2
You have sample code there
You have sample code there
Last edited by sio2interactive on Fri Apr 17, 2009 9:55 am; edited 1 time in total (Reason for editing : Typo)
Similar topics
» Camera Rotate Y
» Can't rotate the Camera straight up or down
» Camera rotate about y-axis
» how to not rotate around object
» rotate a physics object?
» Can't rotate the Camera straight up or down
» Camera rotate about y-axis
» how to not rotate around object
» rotate a physics object?
Permissions in this forum:
You cannot reply to topics in this forum