PDA

View Full Version : Drag Selection



merovingian
05-14-2004, 10:32 AM
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.

dorbie
05-14-2004, 09:43 PM
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.

merovingian
05-17-2004, 10:24 AM
Thanks.