PDA

View Full Version : how make that the view not stretch in the screen?



oscar leo
09-24-2011, 01:37 PM
hi I'm using some polygon cube, and when I resizing the window, the view and cube is stretch
how i can do that the view doing that the model looks small or far away if the window is stretched by side, and near, if the window is maximized. how is apreciated in some applications of 3d

thanks! in advance

ZbuffeR
09-26-2011, 05:00 AM
You have to tie glViewports calls to changes in the GL projection to link aspect ratio to the window ratio.

A tutorial here :
http://www.lighthouse3d.com/tutorials/glut-tutorial/preparing-the-window-for-a-reshape/