Actually, kinda funny, I was thinkin of trying this as work on the other one has kinda stalled(hopefully temporarly). At least an "align to face" function. Hmm. I would say you're best bet is after the end of every camera movement or object movement, figure out the x,y position of every vertex in the scene, and store it in an array. Then, when selecting, figure out what x,ys are inside the selection box. However, selecting isn't as easy as that. You'll probably want to also store triangles along with the vertex data. then when vertexes of the triangle are inside the box, check if the triangle is facing the camera with the dot product. If so, select it.
Good luck!
|