Click to See Complete Forum and Search --> : help with selection/picking?????


ali_5680
June 5th, 2007, 02:39 AM
hi

I am currently working on a drawing application using openGL and C#..........having a nightmare trying to grasp concept of selection/picking...

my application will be drawing 2D(later 3D) objects...the user will be able to select any edge of a polygon and move it around/modify it..
I am still confused with the idea of drawing/redrawing in selection mode because in most cases my scene will be rendered before the user will select any part of it..i have seen few tutorials but they were not really helpful

kindly help
please suggest links/tutorials (better if in C#)

thanks

ali_5680
June 6th, 2007, 05:49 AM
hey
i am drawing a polygon using GL_LINE_LOOP...
but when i click around the drawing no hits are recorded..i have checked the code 3-4 times...
what could be the problem

thanks

bitshifter420
June 25th, 2007, 06:53 PM
There is a simple tutorial on picking\sorting at nehe.gamedev.net

On the home page find TUTORIALS and goto Lesson 32.

The tutorial has been ported to many programming languages, so choose the one that suits you.

Save the web page for reference and download the source code.

Happy Coding!