When i call gluPerspective, the focus or center of the view seems to be in the corner rather than the center. this is depicted in the following link to an image:
://iimgdiodecom/0wu5E0*png
(add http in front and replace all * with . to get it working)
On the left side is how a wireframe cube would look if i used gluPerspective. The view is centered on the lower left corner.
On the right side is how i want the cube to look. The view is centered on the center, and all edges of the cube are visible.
my post was denied for some reason involving urls and forbidden words
instead, here is a link to my code and explanation. link was modified in the same way as the image was as descriped in the first post. thank you
gluPerspective should not be used with the view-model matrix. It defines the projection. The view-model matrix defines the position of the cameras and objects in the world. You uses gluLookAt to position the camera.
You might want to look at OpenGL Transformation
i understand. however, i cannot get gluPerspective to work in GL_PROJECTION. (the resulting display is the same as if i left the gluPerspective line out completely. do you have any idea why this might be the case?