Sign in to follow this  

picking bug :/

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

This topic is 3576 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this