Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Draw 3D axes with text in OpenGL

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi there,

I would like to know if there is an easy way to draw a 3D axes for a scene with each axis labelled X, Y and Z?

All links and examples are welcome!

Thanks.
 
Hi fabien,
please be a little more specific.
If you would like to have the axis shown independent of the camera position in the scene then you should use a different viewer matrix for displaying the axis.
The axis themselves whould be best to draw with lines, the text could be added by retrieving the screen coordinates for some point on each axis and then simply draw the text at this location.

Christoph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top