-
Notifications
You must be signed in to change notification settings - Fork 117
bugfix(view): Fix and improve map border camera constraints behavior to allow see all areas of the map comfortably #1752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Show resolved
Hide resolved
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Outdated
Show resolved
Hide resolved
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Outdated
Show resolved
Hide resolved
600296d to
6eac2f4
Compare
…o allow see all areas of the map comfortably (#1752)
6eac2f4 to
47aeea4
Compare
|
@Stubbjax I think we shouldn't test it widescreen until the scale fix is merged
main: But I will give it a go with a unit at the bottom of the screen on the same map. |
|
I looked into that and issue #1486 is responsible for this. It is related to |
|
|
||
| if (TheGlobalData->m_debugAI) { | ||
| offset = -1000; // push out the constraints so we can look at staging areas. | ||
| screen.y = 0.95f*getHeight()+m_originY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this factor of 0.95 is causing some of the problems with the lower edge since it is reducing the calculated height with offset.
They don't seem to do this along the X of the screen.






Merge with Rebase
This change fixes and improves the map border camera constraint behavior to allow see all areas of the map comfortably.
The first commit refactors the code a bit to be more readable.
The second commit does a number of changes to implement the improved camera constraints behavior.
TODO