I think I’m going to answer my own question here, but I would appreciate some confirmation regarding the order of drawing in opengl when blending is involved.
I have created some 3D Shape classes for drawing spheres, cylinders, etc using the gluQuadric and glutSolid/Wire objects and I have added methods to allow me to use blending with alpha values to make the objects transparent.
Additionally I have 3DS models that I load in the scene and other textured spheres (earth, moon, etc).
When I drew my scene I initially drew each 3DS model and any 3D shapes that I attached to it and then I would move on down the list of 3DS models and corresponding shapes and then a funny thing happened…my 3D shapes that were semi-transparent seemed to only intersect with the model that was drawn before they were…ie, before the blended enabled shapes were drawn and not with any models after. The models that were drawn after seemed to always be on top (or drawn over) the 3D shapes even though in many cases the model may have been inside the 3D shape.
So, I recalled that this is possibly due to the order of drawing the models and blended shapes…that I should draw all the models first, then finally loop through the shapes that use blending in order to display them all correctly - ie so that the blended shapes don’t appear in the background.
See the attached picture for the problem I had…the large YELLOW sphere is supposed to intersect the model but in the top-left picture it is BEHIND it, but in the bottom-right picture is is correctly intersecting it.