PDA

View Full Version : Select and move the vertices point



ajith srikukan
05-16-2011, 02:51 AM
Hi everyone,

I'm new to OpenGL.
I have drawn a 3d model using vertices and polygon. Now i want add the functionality that allows the mouse to select and move the vertices. Can somebody help me?

Thanks in advance,
ajith

V-man
05-16-2011, 08:24 AM
All CAD and design applications do that. Porject the vertex to window space with gluProject and check to see which vertex is the closest to your mouse. Or look into the source code of Blender (blender.org)