Pauly
11-29-2000, 04:37 AM
Somewhat offtopic I know....
I've got picking nailed down now using my own unprojection functions - I can cast rays willynilly and test for them for intersecting triangles in my low LOD models living in the view frustum. This is very nice http://www.opengl.org/discussion_boards/ubb/smile.gif
Obviously the next step is click-drag-selecting. Heh. I've got a bit stuck here. I've got a 'begindrag' ray and an 'enddrag' ray, from these I guess I can create a selection volume of some description.
I can live with bounding box/sphere testing against this pick volume for click dragging, it doesn't have to be that accurate. Anyone have any tips to set me off in the right direction?
Thanks,
Paul
I've got picking nailed down now using my own unprojection functions - I can cast rays willynilly and test for them for intersecting triangles in my low LOD models living in the view frustum. This is very nice http://www.opengl.org/discussion_boards/ubb/smile.gif
Obviously the next step is click-drag-selecting. Heh. I've got a bit stuck here. I've got a 'begindrag' ray and an 'enddrag' ray, from these I guess I can create a selection volume of some description.
I can live with bounding box/sphere testing against this pick volume for click dragging, it doesn't have to be that accurate. Anyone have any tips to set me off in the right direction?
Thanks,
Paul