Hi, i have the following setup:
i create two windows (glCreateWindow), each with its own mouse and keyboard handler.
Window A shows a 3D room in first person perspective.
Window B shows a topview of the 3D room.
What i want to do: Click on Window B on a position and the perspective in Window A ‘teleports’ to this new position.
I already managed to get the coordinates from Window B, using gluUnproject, it returns me x, y and height of the position i clicked.
Now i am stuck here: what to do with these x,y, and height values? I read something about translation and rotation etc. but do not know how to do it. I thought that i just need to position the camera in window A to the new position which was returned by gluUnproject in Window B.
Am i missing something? Anyone can give me a hint?