Anonymous's picture

How to get xyz from screen point

hi,everyone.
when i want to display points using OpenTK. How to convert screen coordinate to real world corrdinate.following is example data:
650000,4768900,2500
650000,4769000,2300
650200,4768900,2800
651000,4763400,2500
.......
Thanks.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JTalton's picture

You may want to look at the OpenGL GLU functions gluProject and gluUnProject.

the Fiddler's picture

I am not sure what you wish to do (shouldn't screen coordinates be like (x,y) instead of (x,y,z)?), but these two functions are probably the answer. Man pages. :)