Soulreaver
01-05-2003, 02:45 AM
How can i get real mouse coor
when i am using perspective transformation?
Halcyon
01-05-2003, 09:12 AM
Use the gluUnProject procedure. This is the format:
int gluUnProject(
GLdouble winx,
GLdouble winy,
GLdouble winz,
const GLdouble modelMatrix[16],
const GLdouble projMatrix[16],
const GLint viewport[4],
GLdouble * objx,
GLdouble * objy,
GLdouble * objz
);
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.