simple problem of plotting 4 points


I am very new to Opengl and having what seems to be a basic problem. I want to plot four points at the corner of my window at different depths. I need to figure out x, and y for a given depth (z). The points should be on top of each other.
I want to stay away from orthographic mode and stick with perspectiv projections.

I have spent hours with gluUnProject(), getting no where.

Hi !

It’s pretty messy to figure that out so what’s wrong with orthographic mode ? it would save you those lost hours of work…

A quick switch to orthographic mode, plot the points, switch back to perspective and go on with what ever you where doing, I can’t find a reason not to use it…