iDevGames Forums
"stretched" drawing problem - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: "stretched" drawing problem (/thread-3621.html)



"stretched" drawing problem - joellevin - Dec 21, 2006 08:53 PM

hi, im having a problem where everything i draw (using raw OpenGL or GLUT functions and drawing externally created models) appears to be stretched out and distorted.

Examples of the problem:

[Image: stretched1.png]
[Image: stretched2.png]

what am i doing wrong here (or not doing at all)?

btw, a comparison teapot that looks normal is:
[Image: teapot.jpg]

thanks


"stretched" drawing problem - OneSadCookie - Dec 21, 2006 09:19 PM

Looks like you're not taking the window's aspect ratio into account when calling gluPerspective, or possibly even not calling gluPerspective at all.