• Advertisement
Sign in to follow this  

problem with frustum

This topic is 2560 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Hidden
I did 45 60 90 and yes pixel ratio matches
also i m using width and height of view port to get aspect ratio.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Hidden
[color=#3c00da][color=#420082]that is not the problem here is the frustum that comes out after calculating

[color=#3c00da][color=#420082]glFrustumf[color=#000000](-.03125[color=#000000], .03125[color=#000000], -0.046875[color=#000000], .046875[color=#000000], 0.1[color=#000000], 500[color=#000000]);



i have already posted a screen shot

Share this post


Link to post
Sign in to follow this  

  • Advertisement