To main page | 3dengine.org

GluProject (pyOpenGL)


Example

Get current screen coordinates for (x,y,z) point:
print gluProject(x, y, z, glGetDoublev(GL_MODELVIEW_MATRIX), \
   glGetDouble(GL_PROJECTION_MATRIX), glGetInteger(GL_VIEWPORT))