Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Leyder Dylan

Cross hair

This topic is 6490 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, With the lesson 22 or 23, we can use the mouse. How can i do to display a cross hair like in Half-Life ? Thanks in advance. dylan.leyder@ibelgique.com

Share this post


Link to post
Share on other sites
Advertisement
i wouldnt use billboards

just 2 viewmatrices eg
gluPerspective(...)
draw 3d stuff and world.

glOrtho(..)
draw HUD and 2d stuff like the crosshairs

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Why not use :

glRasterPos2f(..);
//print Cross hair

glTranslatef(..);
//draw 3d world



This should work just fine...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!