This topic is now archived and is closed to further replies.


3D to Screen Coords (GL)

Recommended Posts

Sorry I''m asking this again (I did a week or two back) My internet connection is giving hell and I can''t even browse that far into gamedev. How do I find the screen pos of a vertex in GL? I realise involves getting the matrices out but which ones and how do I multiply the vertex in? I''m trying to get a lense flare on the sun in my game Thanks

Share this post

Link to post
Share on other sites
Hi there,

use gluProject in conjunction with glGet



//get latest transformation,viewport and model matrices used in clip vertex

//get current model view matrix

//use glu project so that we ? use hardware transformations where present


Hope this helps.

PS this is delphi code pointers will need adjusting for c++.

Share this post

Link to post
Share on other sites