Advertisement

Meshes look squished

Started by January 01, 2012 06:15 AM
9 comments, last by ryan20fun 12 years, 10 months ago

I'm starting to think this has to do with your aspect ratio, where you have width/height

Thank You smile.png smile.png smile.png


From initialize():
[source]
aspectRatio = ScreenWidth / ScreenHeight;

[/source]

Both ScreenWidth and ScreenHeight are integers, so you're performing an integer division and the results is thus an integer. That is, your aspect ratio is wrong. Cast the numerator and/or the denominator to a floating point value to perform a floating point division.


Thank You smile.png smile.png smile.png

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.

This topic is closed to new replies.

Advertisement