🎉 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
Is there a way to go:
glBegin()
glVertex(xyz)
glEnd()
then find the screencoordinate for that vertex?
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
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.
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
Popular Topics
Advertisement