glPointSize not working with glRenderMode( GL_SELECT )
I am having a problem with glPointSize not working with glRenderMode( GL_SELECT ). I can only get the point to be selected if I click on the very center of the point. glGetError returns 0.
I think I know what's happening here... As I recall, a point is culled if its center lies outside the viewing volume, even if it "should" be visible due to a glPointSize > 1. When you use gluPickMatrix, it sets up the projection to only include the small space around the point you specify, so regardless of your point size, your point gets culled, and subsequently doesn't get added to the selection buffer.
solutions -- use a picking viewport as large as the point size, draw your points as billboarded quads instead, or use analytical intersection detection rather than relying on GL's horrible selection stuff.
Possibly Related Threads...
|GL_SELECT mode in VBOs||myfeng||0||2,798||
Feb 28, 2008 10:38 AM
Last Post: myfeng