• Advertisement

Archived

This topic is now archived and is closed to further replies.

weird aspect ratio problem in D3D7 with D3DX

This topic is 6053 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

Well I don''t know if anyone''s around that still uses D3D7, but I noticed something interesting when I tried to set the aspect ratio with the D3DXMatrixPerspectiveFov function (I don''t know if the problem exists in other functions as well). I first set the aspect ratio to the width / height, which is my case was 800/600 which equals 4/3(1.333...). However, the scene looked stretched out. I had equivalent code in OpenGL (same resolution, fov, etc.) and I didn''t get the distortion. I played around with the values and eventually placed 0.75 as the aspect ratio (recriprocal of 4/3, 600/800, etc.) and the distortion went away. So can anyone explain why this occurs? Did MS make a mistake or something? Digital Radiation

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement