# Meshes dont show properly

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

## Recommended Posts

I hope that there is a very simple answer to this question. My application runs in full screen and has a fixed resolution which I initiate direct3D with. Whenever I load in a mesh however they stretch out a little bit to compensate for the screen. They are fine if I have a window with an equal x and y-value but now it seams to stretch. Any help would be much appreciated.

##### Share on other sites
This is actually correct behaviour. You can control it, however. The projection matrix determines how the 3D objects are rastered onto a 2D plane (the back buffer). It has a horizontal viewing angle (in 3D terms) and a vertical viewing angle (respetively X-field-of-view and Y-field-of-view). You have to make their ratio equivalent to the aspect ratio of the screen. Such that
fovx / fovy ~ width / height

If you are using D3DX as well, this can be accomplished by passing only fovy and the aspect ratio to D3DXMatrixProjectionFovYLH().

Greetz,

Illco

##### Share on other sites
Thanks a lot. You cannot imagine how long I have been trying to get this to work.

1. 1
2. 2
frob
15
3. 3
4. 4
5. 5

• 14
• 13
• 14
• 69
• 15
• ### Forum Statistics

• Total Topics
632138
• Total Posts
3004319

×