how can i get screen coordinates?

Hello everyone,

In my 3D game, I can’t judge when the character is going out of the border of the screen. How to get the 2D screen coordinates from an object’s 3D coordinates?

Thanks so much and merry X’mas!

Have a look at gluProject.