Hello,
I have a 3D viewer application with an XYZ indicator in the lower left hand side. I am trying to place "x" "y" "z" labels on the arrows that are always facing forward using rasterpos and having no luck.

I would think that I could place the labels during the drawing code but it just doesnt work

Any help would be great

-Derrek

void C3DRender:rawXYZOrientation(void)
{
glPushMatrix();
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
glTranslated(-0.21, -0.14, -0.5);
glRotated(m_RotX, 1.0, 0.0, 0.0);
glRotated(m_RotY, 0.0, 1.0, 0.0);
glRotated(m_RotZ, 0.0, 0.0, 1.0);
// z-axis
// make it blue
glColor3d(0.0, 0.0, 1.0);
// draw a cylinder
gluCylinder(quadratic, CYLINDER_DIAMETER, CYLINDER_DIAMETER, CYLINDER_LENGTH, 20, 10);
// move to the end of the cylinder
glTranslated(0.0, 0.0, CYLINDER_LENGTH);
// draw a cone at the end of the cylinder
gluCylinder(quadratic, ARROW_DIAMETER, 0.0, ARROW_LENGTH, 20, 1);
// return to center
glTranslated(0.0, 0.0, -CYLINDER_LENGTH);
// y-axis
// rotate around to the Y axis
glRotated(-90.0, 1.0, 0.0, 0.0);
// make it green
glColor3d(0.0, 1.0, 0.0);
// draw a cylinder
gluCylinder(quadratic, CYLINDER_DIAMETER, CYLINDER_DIAMETER, CYLINDER_LENGTH, 20, 10);
// move to the end of the cylinder
glTranslated(0.0, 0.0, CYLINDER_LENGTH);
// draw a cone at the end of the cylinder
gluCylinder(quadratic, ARROW_DIAMETER, 0.0, ARROW_LENGTH, 20, 1);
// return to center
glTranslated(0.0, 0.0, -CYLINDER_LENGTH);
// x-axis
// rotate around to the x axis
glRotated(90, 0.0, 0.5, 0.0);
// make it red
glColor3d(1.0, 0.0, 0.0);
// draw a cylinder
gluCylinder(quadratic, CYLINDER_DIAMETER, CYLINDER_DIAMETER, CYLINDER_LENGTH, 20, 10);
// move to the end of the cylinder
glTranslated(0.0, 0.0, CYLINDER_LENGTH);
// draw a cone at the end of the cylinder
gluCylinder(quadratic, ARROW_DIAMETER, 0.0, ARROW_LENGTH, 20, 1);
// return to center
glTranslated(0.0, 0.0, -CYLINDER_LENGTH);
// select gray
glColor3d(0.5, 0.5, 0.5);
// draw a sphere
gluSphere(quadratic, SPHERE_RADIUS, 20, 10);
glPopMatrix ();
glColor3d(0.0, 1.0, 0.0);
glRasterPos2d(-0.81, -0.14);
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18 ,
'Y');
}