Hello,
I am not sure if I am just thinking wrong or where exactly to start with solving the problem:
I have a graph with nodes (spheres) and edges which the user can rotate around the middle point of the system (QT + glu OpenGL library). Now I implemented the dragging itself (using glUnProject), so the user can drag an object (a node) normally as long as the graph has not been rotated, as the x and y axes for the graph and the mouse are the same. However, when the graph is rotated, the 3 axes of the graph and the 2 axes of the window obviously differ. I am not sure what I should do to make the dragging work, thus, how to translate the 2 window axes into the 3D system and taking into account how much the graph was already rotated. Any hint?