problem with frustum

Started by
5 comments, last by Hodgman 13 years, 2 months ago
[font="Arial,"]I have set up a frustum with fov=60, near=0.1,far=1000,aspect ratio=3/2 yet it isn`t coming nice--my object appears to be stretched in forward direction.suggest something that might help.[/font]
[font="Arial,"]here is a screen shot it appears compressed from top. [/font]
[font="Arial,"]image.tiff[/font]
Advertisement
30 fov sounds quite narrow, have you experimented with some other values? Also make sure your aspect ratio matches the pixel ratio in your viewport.
[size=2]My Projects:
[size=2]Portfolio Map for Android - Free Visual Portfolio Tracker
[size=2]Electron Flux for Android - Free Puzzle/Logic Game
I did 45 60 90 and yes pixel ratio matches
also i m using width and height of view port to get aspect ratio.
post a screenshot please!
image.tiff

image.tiff
3/2 or 3.0/2.0?

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

computing this ratio using screen width and height.
I think he was implying that you may be doing int/int division, which will give you a result that is not what you expect.
[size=2]My Projects:
[size=2]Portfolio Map for Android - Free Visual Portfolio Tracker
[size=2]Electron Flux for Android - Free Puzzle/Logic Game
post a screenshot please

This topic is closed to new replies.

Advertisement