Original Post
Hi all,
I started programming again. I''m trying to make a simple 3D game using glut. I use the glutBitmapCharacter function to put text on screen. This works, but the text seems to stay in one place when i move the camera, while i want it to stay in the same place on the screen. I use glRasterPos to prevent this, but the text is now invisible. I tried pushing the matrix then setting it to projection then using gluOrtho2D before drawing the text and then setting the matrix back to modelview and popping the matrix, but this seems to have strange effects. (All is rendered on bottom row of pixels only, rest is black)
How can i switch between 2D and 3D easilly and fast to write fonts to the screen and render 3D?
Thanx,
Marty