Monday, December 31, 2007

Converting screen coordinates to OpenGL coordinates

This article looked interesting.

http://nehe.gamedev.net/data/articles/article.asp?article=13

gluUnProject converts Windows screen coordinates to OpenGL coordinates. This means that you can get the position of your mouse on an OpenGL Window and use this method to find the x, y and z coordinate of where you clicked.

These people posted a blog entry about it:

http://gamedevofdoom.wordpress.com/

I don't know them and have not tried the code from the nehe site, but it is a start.

1 comment:

Anonymous said...

Have you ever considered about adding a little bit more than just your articles?
I mean, what you say is important and all.
Nevertheless think of if you added some great visuals or video
clips to give your posts more, "pop"! Your content is excellent but with pics and videos,
this blog could definitely be one of the most beneficial in its field.

Wonderful blog!

my page :: panic attacks treatment (http://en.wikipedia.org/)