I was wondering how I could make a sprite always face the camera in LWJGL. I mean for something like enemies in DOOM, not for a HUD.
search for ‘OpenGL Billboarding’, plenty of tutorials out there that explain this technique.
I do it in TUER, in the alpha version. You just have to port the piece of code interesting for you to LWJGL.
Cool, where can I find the TUER alpha source?
As kappa said, search for billboarding and you’ll find plenty of info.
The basic idea is that you take your ‘up’ and ‘right’ vectors out of camera matrix and use those to align your billboard quad.