I use arcball method to rotate a teapot by mouse in the scene. I already did it and the rotation was pretty smooth when i set the camera as following : position (0,0,10), target = (0,0,0) and upvector =(0,1,0) in gluLookAt method. But when i changed positon or target or upvector or both of them, the rotation goes so wrong with the mouse. what i want is to rotate objects in the scene freely by the mouse whatever the way the camera is set. Sorry for my English. Any ideas for this?
Thanks for any help.