This programming tutorial describes methods used to select objects in a 3D editor, but even if you're more interested in 3D programming in general, there probably will be times when you can apply the ideas covered here.