Jump to content
  • Advertisement
Sign in to follow this  
tenpoundbear

Window dimension causes distortion

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

Hey guys,

Wondering how can I prevent my sphere from becoming 'wider' when I change my window app size from 800 X 600 to 1360 X 768? And why?

This is with a 800 X 600 size.


And this is with a 1360 X 768 size? You can see in this image the Earth is fatter or wider...


Ideally, I would like the sphere to be not 'wider' while still having the extra screen space.

It looks as if the sphere is 'wider' to fill the extra space provided by the larger window size.

I don't know... anyone able tell me why and how to keep sphere normal looking size.

2nd question...
I am going to attempt to use an index buffer.
With the texture coords, that doesn't change? I still based my texels on the vertices in my vertex buffer as normal?

Thanks a million for helping previously :)

Share this post


Link to post
Share on other sites
Advertisement
You need to change the size of your back-buffer as well, otherwise this kind of stretching will occur.

[Edit] No need to do anything with the texture coordinates when using index-buffers.

Share this post


Link to post
Share on other sites
w/ my OpenGL framework i use a gluPerspective() function for keep the perspective when the window is resized, i'll take a look at the function code tonight.

Share this post


Link to post
Share on other sites
Ah yeah, you'll also need to adjust your perspective matrix for the new dimensions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!