i’d like the user able to select a polygon
using the mouse pointer, i could do it
using a polygon/vector collision
but i don’t know how to compute the
vector defined by the mouse position.
Another method is to render each poly in a certain color. When you click on it, you use gluPickMatrix as usual and read the color in the region. You dont have to use SwapBuffers so the user will never see the oddly colored scene.
Originally posted by Majestik: well it’s object picking …
and i won’t put a name on each polygon
of my object
Then, how do you think you will recognise one polygon from another ??? Choose any method you want: you’ll still end up having to define some variable to tell which polygon is which ! And you may as well call that variable a name…
Originally posted by Majestik: and further more it’s pretty slow !
Well, what did you compare that method to ?
Regards.
Eric
[This message has been edited by Eric (edited 02-19-2002).]