After a series of mouse rotation, translation & scaling then selecting point using GL_FEEDBACKI got the window coordinate and with gluUnProject the computed coordinate.
My problem is how to programmatically compute for selected Object coordinates given the Window coordinate with the following parameters without affecting the current view:
glTranslated(0.0, 0.0, 0.0);
glScalef(1.0, 1.0, 1.0);
glRotatef(720, 1.0, 0.0, 0.0);
glRotatef(360, 0.0, 0.0, 1.0);
What I intend to do is to verify the selected points INDEX to the original array of vertices in which I lost due to the different ID returned by GL_FEEDBACK.
Please help. Thanks.