Questions tagged [mouse-picking]
77 questions
0
votes
2 answers
How do I make opengl objects appear on mouse click?
What I need to do is click somewhere on my OpenGL viewport and have an object render in that spot. I already know the basic stuff, i.e. creating the window, detecting mouse clicks, getting the click coordinates and draw objects. The missing link I…

Samssonart
- 3,443
- 3
- 31
- 41
-1
votes
1 answer
2D mouse picking in 3D world
I'm trying to implement object movement in OpenGL towards a mouse click event but the problem is that the coordinates that are returned are not in world space but rather within the window size. I know that it is called mouse picking but all the…