detecting mouse click on a point

  • Follow


Hi,

I'm trying to develop an application for modeling 3D objects from
Bezier patches and I want the user to be able to drag the control
points with the mouse in order to deform the patches. Unfortunately I
don't know how to detect the mouse click on a particular control
points (just a vertex displayed using glBegin(GL_POINTS) ), and the
movement of the mouse so that the control point selected by the click
follows the mouse.
Any help please ?
Thx
Sam
0
Reply samuel 4/18/2004 9:06:53 AM

berthelot samuel schrieb:
> Hi,
> 
> I'm trying to develop an application for modeling 3D objects from
> Bezier patches and I want the user to be able to drag the control
> points with the mouse in order to deform the patches. Unfortunately I
> don't know how to detect the mouse click on a particular control
> points (just a vertex displayed using glBegin(GL_POINTS) ), and the
> movement of the mouse so that the control point selected by the click
> follows the mouse.
> Any help please ?
> Thx
> Sam

Do a glReadPixels at  the location that the user clicked.
Then a gluUnProject.

Philipp Klaus Krause
0
Reply Philipp 4/18/2004 10:05:45 AM


1 Replies
446 Views

(page loaded in 0.031 seconds)

Similiar Articles:













7/20/2012 12:47:17 PM


Reply: