   Converting a 3D location to a 2D raster position
  Hey Guys,Maybe you can help me out on this one. My game is in 3D, all the little monsters and characters walk around the game map. I want damage numbers to be displayed over the characters when they hit each other. Sorta like in DW VIII:I have a 2D, raster layer, which is above the 3D game layer. I want to take a monsters x,y,z location in the 3D world, and aproximate that point on the 2D layer.NOTE: I do not want to use billbording for this, I want to use 2D coordinates.Thanks for your help!   
  i thought if you had an x, y, z coordinate that you wanted to convert to x, y, then you would use x/z, y/z. i believe that's how it went.   ;  Did you try gluProject()?   ;Quote:Original post by SiCraneDid you try gluProject()?Oh! Neat.... err... ayy tutorials out there? :)I'll be lookin, but just in case anyone else had an example. Thank you so much for the info!   ;  Got it working great!For all sprites (that is, game enteties) I store these values:glGetDoublev(GL_MODELVIEW_MATRIX, modelView);glGetDoublev(GL_PROJECTION_MATRIX, projection);glGetIntegerv(GL_VIEWPORT, viewport);I don't call project till I need to request the sprites current 2D position. My question is, how costly are the calls above? I'm still getting 300+ fps on my game regardless.Is this inefficient?   