I need to implement a 3D-rotation with a fixed object, with mouse interaction. It’s like dragging the object, and rotating it in every direction.
For example pointing the mouse in the upper middle of the window and press button and move the mouse down, the object rotates around the x axis, the same but more difficult if the mouse is pointed in the upper right corner, and you are “dragging” the mouse pointer to the middle the object rotates to the lower left corner.
I have tried some solution on my own, but they were not satisfiable. Does anybody know a hint how to solve this?