Sign in to follow this  
arczev

picking bug :/

Recommended Posts

arczev    122
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

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