I’ve done my own code and also used gluUnProject() to get the windows coordinates, but seems as if both my code and gluUnProject() have problems (I’m not getting the right numbers)

I also did some tests with GL_FEEDBACK with GL_2D but this gives even different numbers???

I’m plotting a single point on the screen (window under Windows 9x/NT) and trouble is, I don’t know where it’s going to be placed.

Has anyone figured out how to do this calculation, preferably without the use of any GL functions?

The only problen with what you are saying AndersO, is that the viewpoint have to be located at (0,0,0) and looking along the z-axis. When your viewpoint is placed elsewhere, or looking at another direction, you wont get the right coordinates.

You only have to multiply the desired vertex by the eye matrix. You will obtain the screen coordinates in the x,y of the new vertex.
Also, you can multiply the first vertex by the modelview matrix before, if you have changed it.

Hi get a load of my answer, it’s going to be where you put it. make a card board model of
3D space, use 3 pieces put together as left-hand 3d space. study it try my figure make your own

glBegin(GL_Lines) etc…
glVertex(x,y,z); <–6.0,4.0,2.0
glVertex(x,y,z); <–2.0,-4.0,3.3 (-4.0=-Y value of 4.0 on negative real based on local 0.0.0)

Reference 'local origin' best way there is other ways end up with floopy animations or poor ploting accuracy
+y
| /-Z
| /

-X___ |/________+x
/
/|
/ | -4.0 belongs to this real(-y)
+Z |
-y

[This message has been edited by o9i8 (edited 01-25-2002).]