here is my code for a picking method with the mouse. when i have an object picked i try to move it but all the objects move. i know this is to do with the pushMatrix and pop matrix but i thought i had that done. am i calling them in the wrong place or what am i doing wrong. thanks.
GLint hits, viewport;
gluPickMatrix(x, viewport-0.1,0.1, viewport);
glOrtho(0, 0, 0, 0, 0, 0);
printf ("hits = %d\n", hits); glMatrixMode(GL_PROJECTION);
if(hits > 0)
picked = selectBuff;
then i have something like
Re: picking again.....
As pointed out in your last post you need to save before trying to translate a single object and restore it afterwards.
[This message has been edited by Furrage (edited 03-15-2002).]