Jump to content
  • Advertisement
Sign in to follow this  

picking bug :/

This topic is 3793 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

I'm writing appliaction which is using picking, and I have a problem: glRenderMode returns wrong names of object clicked. My object are row of quads and each quad has own name. For example when I click on 2nd quad but near border with 1st quad It returns name "1" instead of "2". I tried to make this area near cursor very small: gluPickMatrix ((GLdouble) CursorX, (GLdouble) (viewport[3] - CursorY), 0.00001, 0.000001, viewport); but It doesn't change the situation. I use prespective like this gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,1.0f,1000.0f); and glTranslatef(0,0,-7); Thank u.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!