PDA

View Full Version : Vertex selection



shanedudddy2
12-04-2002, 09:35 PM
Could someone please make or give me a demo or tutorial on vertex selection I know how I can translate it though. Please any help will be appriciated !!

cbwan
12-05-2002, 03:48 AM
first match in google for 'opengl picking'

Picking Tutorial: http://www.lighthouse3d.com/opengl/picking/

have fun http://www.opengl.org/discussion_boards/ubb/wink.gif
cb

shanedudddy2
12-06-2002, 07:38 PM
Thanks for your help but my request was for vertex selection not objct selection
More help please!!

cbwan
12-07-2002, 12:35 AM
what about considering a vertex as an object?

maybe if you draw your model with a dummy name on the name stack, then draw your vertex only with a relevant name on the name stack and a GL_POINT_SIZE big enough not to search the exact pixel http://www.opengl.org/discussion_boards/ubb/wink.gif

i have never done this and i have no example, but i think this should work. if you managed to do object picking this should be easy to test.
please tell me how it worked http://www.opengl.org/discussion_boards/ubb/wink.gif

have fun!
cb

GeLeTo
12-07-2002, 01:54 AM
Just extract the frustum planes ( tutorial (http://www.markmorley.com/opengl/frustumculling.html) ) and find the verts that are inside these planes.

[This message has been edited by GeLeTo (edited 12-07-2002).]

shanedudddy2
12-07-2002, 12:10 PM
Thanks for the help but if anybody has an example it would be appriciated
Thanks!!