Moving items withthe mouse (OpenGL (gluUnProject related))

Started by
9 comments, last by greekgoddj 16 years, 10 months ago
Hi again..

Ok, I have gone ahead and implemented honayboyz's suggestion and there is already an improvement. It still drifts, but in a more "correct way". Before, the mouse and the object drawn were only aligned perfrectly when in the centre of the screen. Now if the object is at the left of the screen, and I click on the object and drag it to the right, it will drift, with the object moving faster to the right than the mouse. But without letting go off the mouse, dragging back to the original position on the screne when the object was clicked on, the mouse and object perfectly align again.

Regarding the objectpick.depth, it always returns 1.0.

Any other ideas?

Thanks again

This topic is closed to new replies.

Advertisement