Drag Selection

Hi,
I’m just wondering if anyone can point me in the right direction regarding drag selection? I’m trying to drag a rectangle over a bunch of little cubes, pyramids, etc in my program, then have those objects added to a list of items that were selected: The only thing I’m having a problem with is recording which objects the selection rect passed through/hit.

Should I draw the selection rect in screen coords or world coords?

Any idea how those Warcraft3 people do it? lol

Thanks.

The selection rectangle on your screen defines a frustum from the eye due to the projection of your application’s frustum. Using this new frustum for the selection rendering will produce a selection under the dragged area rectangle.

Thanks.