Get 3D model vertices values
I have loaded a wavefront(.obj) 3D model in an opengl console application.
Now I want to read the values of XYZ coordinates of the model on mouse click event. I have formulation based on these vertex values in order to calculate values in run time as the mouse is clicked on any other part of the model.
Please help me in this regards if anyone knows any function or method or steps to achieve this task?
The function you are looking for is gluUnProject