I am drawing two objects: a cone and a torus beneath the base of the cone. If I orient the camera with gluLookAt, so that it points to the base of the cone, I do not see the torus.
If I look at the shapes from the side, using gluLookAt like this:
gluLookAt (5.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
I see that the point of the cone is oriented along the positive z axis, and I see the torus offset to the right.
If I move the camera to the negative z-axis, looking back toward the origin, I only see the cone.
gluLookAt (0.0, 0.0, -5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
I am very much beginning here, and am likely making some fundamental mistake. I am trying to extend examples I have found online for positioning the camera, but seem to be missing something here. My code is attached.
Any suggestions on what I am doing wrong?