To do this I had to multiply the point I wanted to translate by the modelview matrix. The issue is that the values I get back are the opposite to what's occuring on the screen. ie. if the objects are rotated clockwise on the screen the results I get back are moving anticlockwise.

Do I need to Invert the modelview matrix or somthing like that? Could someone provide code to aid me in this?

//function to do multiplication#include <gl/gl.h>void MultiplyVMatrix(GLfloat* Vertex, GLfloat* Matrix, GLfloat* ResultMatrix){ for(int i=0;i<16;i++) ResultMatrix[i/4]+=Matrix[i]*Vertex[i%4];} **************************************************************//modelview matrix and multiply co-ordinate of cubeGLfloat matrix[16];GLfloat vertex[4]={1,2,-5,1}; //any co-ordinate for testingGLfloat resultmatrix[4]={0,0,0,0};glGetFloatv(GL_MODELVIEW_MATRIX, matrix); //grab the modelview matrixMultiplyVMatrix(vertex,matrix,resultmatrix);

How to Win a Jar of Candy Corn:
A Scientific Approach!
I love mathematics. If you love mathematics also, you may enjoy this tip on how to use math to win your own jar of candy corn and to impress your friends.
As I said, I love math, but I gu…

This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210 (2 * 3 * 5 * 7) or 2310 (2 * 3 * 5 * 7 * 11).
The larger templa…