box select in 3d?

Blitz3D Forums/Blitz3D Programming/box select in 3d?

Picklesworth(Posted 2004) [#1]
I am going to (though I am already overloaded with project ideas) start work on another tokamak rigid body generating program, and this time it will be almost fully automated! I just have one question: How can I make a function that will allow to box select multiple objects, or faces on objects, in 3d? After that, I'm almost done!! (I hope)


Bot Builder(Posted 2004) [#2]
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!