Resizing window to create more viewable area
When I resize my window, the same area is viewed and stretched to still fit the window. I want to be able to resize my window, and just see more of the world accordingly without moving or stretching anything.
You'll need to handle notifications that your window is being resized, and then resize your backbuffer and projection parameters accordingly.
What language and exact API are you using?
What language and exact API are you using?
You'll need to find some way of manipulating the projection and/or view matrix in relation to the size of the window.
A simple one would be to set the perspective field of view to be relative to a dimension of the window (e.g. diagonal) but the zooming nature of this might not be ideal in all cases...
hth
Jack
A simple one would be to set the perspective field of view to be relative to a dimension of the window (e.g. diagonal) but the zooming nature of this might not be ideal in all cases...
hth
Jack
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement