I'm working on a DOOM-esque game in opengl for 7dfps and I need to make the billboarded pickups and enemies. Is there somewhere which documents the 'correct' way to rotate the quads and to choose which sprite of the enemy to show? If not, can someone tell me if there's anything wrong with the algorithms I've come up with?
I have made the billboard perpendicular to the player's view angle. I also tried making it perpendicular to a line pointing at the player's position, but it looked worse.
radiansToSide=PI*2/8 (8 is the number of sprites I have for enemy)
//angle is now an int 0-7