PDA

View Full Version : image is cut off



09-19-2000, 09:09 PM
Please don't make fun of me because i'm having trouble witheasy stuff http://www.opengl.org/discussion_boards/ubb/smile.gif. I have managed to make two 3d tetrahedrons and 2 3d cubes. In two seperate viewports. One cube and one tetrahedron are wire frames. My problem is with the wirefram tetrahedron. It's like there is some invisible box around it that is cutting off a corner of the image. I have rotated the image and came to the conclusion that there is in fact an invisible box around the image. I initially thought it was the gluOrtho function, but after modifications (changing the near and far variables) to the function I found this is not what is causing the problem. Can anyone give me some suggestions as to what else could possibly cause this problem.

NewROmancer
09-20-2000, 04:05 AM
The highest probabilities come from the parameters of glPerspective. You specified the planes to close one by the other. Try something like this:
gluPerspective(45.0f, 1.0f, 3.0f, 200.0f);
Look at what each parameter means. At try LookAt also.

NewROmancer