marquee select tool

Software: Away3D 4.x

beers, Member
Posted: 09 March 2013 03:10 AM   Total Posts: 53

I’m working on a marquee select tool (similar to a single-click model picker, except it selects all the models within the marquee rectangle).

I’ve got it drawing the dotted marquee in screen-space (by user-dragging the mouse) in the camera view, but now I’m stumped how to actually detect which models are within the marquee. Is there some utility built in to away3d that can help with this?

Or is the only solution to traverse all the scene models, and calculate whether they intersect the marquee rectangle. I would first do a bounding box check, to see if each model is inside or crosses the marquee, and if it does then go through all the vertices of each submesh to see if it is actually inside.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X