Location of object?
Hey I'm a newbie at OpenGL. I've got a SolidSphere in space somewhere, but I can't seem to find where it is?? How can I find out where OpenGL placed the sphere when I created it? Here's some of my code :
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glutSolidSphere(1.0, 20.0, 16.0);
Does any one know where my sphere is ??
Thanks a lot!!!
Re: Location of object?
The sphere is at the origin. Since the camera is at the origin, you are inside the sphere.
Change your gluLookAt call so that you are at, say, 40 units away from the origin.