🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

how to render a GL vertex in 3d, and find the screen coordinate for it

Started by
2 comments, last by VECTOR 23 years, 11 months ago
Is there a way to go: glBegin() glVertex(xyz) glEnd() then find the screencoordinate for that vertex?
The object of war is not to die for your country, but to make the other bastard die for his . . -General MacArthur
Advertisement

I don''t think that there is, but I could be wrong. What do you need to do that needs you to be able to do that? I can''t think of anything that you would, but I''m sure there''s something...

-----------------------------

1. "Diplomacy is the art of saying 'Nice doggie!'... till you can find a rock."

2. "Always remember you're unique, just like everyone else."

3. "If we don't succeed, we run the risk of failure."
-Dan Quayle
-----------------------------1. "Diplomacy is the art of saying 'Nice doggie!'... till you can find a rock." 2. "Always remember you're unique, just like everyone else." 3. "If we don't succeed, we run the risk of failure."-Dan Quayle4. If life gives you sour grapes, squash them and make wine!
You could use gluProject/gluUnproject. There is also a feedback (check out the specs) mecanism. But beware.. it is a *very* slow thing, try to avoid it if you can.

Y.
yes ysaneya is right gluProject is what u want, unproject finds the world coords of a specific point on the screen ie the opposite to gluproject

This topic is closed to new replies.

Advertisement