Can anyone please tell me how it is possible to expand the drawing area?
I am drawing a 3D image (based on the XYZ-Coordinates of a set of points) which appears to be larger than my window and therefore I don’t see the entire image. I want to know how to expand the drawing area (i.e. maximum XYZ-Coordinates that is seen on my window) when, for example, I enlarge the window to Full-Screen.
I thought I could do this via glViewport (0,0,newWidth,newHeight) but it only enlarges the image to fit the enlarged window (instead of bringing in some/all of the missed out parts).
What kind of projection are you using… orthographic or perspective? Try changing your values for your projection type call such as glOrtho, glFrustum, or gluPerspective. If you aren’t using them, do.
Be especially careful of your near and far values as you will not see any vertices that do not lie between the near and far.