I ws wondering another thing. I have to project a point into an image, whoses camera projection matrix I have. This point is then queried in texture.
On just multiplying, the projection matrix with point coordinates, I get negative coordinates for x and y, which is confusing me.Are these correct? if yes, then wuld just query with thses in texture give me the correct result that I want.
if not, then do i use gluProject() to get the coordinate to query. or is there any other way.
I have set the viewport to my texture size for gluProject function.