-
Notifications
You must be signed in to change notification settings - Fork 219
[WideScreen] Various fixes related with FakeResolution Mode (Pictures/Panoramas' position & Camera Scrolling) #3510
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: master
Are you sure you want to change the base?
Conversation
|
ca660b6 Fixes the calculation of Picture's offset (the fix is similar to e073662 for Panoramas). At first it didn't solve issues in Aëdemphia for some map smaller than the screen.
I discovered that when using FakeResolution mode, the result was wrong, ex. with a map of 20 horizontal tiles:
Turns out 80c4715 fixes this issue by removing this offset applying to the screen X/Y position when using FakeResolution mode. Interior are now fixed in Aëdemphia, here is a video of the first town of the city with this PR: |
|
In Aëdemphia, the waterfall map using parallax effect displays Picture with the wrong offset, both with wide and ultra-wide mode. In 320x240: OK In Ultra-wide: KO |
|
The graphical bug previously reported on Aëdemphia, in the waterfall map with parallax, is not a bug related to EasyRPG. While analyzing the code in RPG Maker, I found that the pictures used for the environments were not configured to scroll with the map. It's an error, as they are configured to scroll with the map in all other maps. By checking "Scrolls with the map", the problem is solved and the Parallax even works as expected. Here is a video showing the result: This further validates the implementation of this PR. 👍
|
|
c60093d Fixes the starting position of the camera :
It applies an offset corresponding to the black border's size. Fix one of the two problems from #3511
|
|
d580fce Fixes the scrolling of the camera :
It applies an offset corresponding to the black border's size in The issue #3511 is now completely fixed |
|
Here is a showcase of the scrolling fixed on "Onsen: A Tale of Yu" |
|
@Ghabry I fixed all the known issues related to FakeResolution mode, this PR is ready for review :) |







This PR will address problems of Panoramas/Pictures not being correctly displayed when using Custom Resolution and the FakeResolution mode.
Problems occur when displaying a map smaller than the screen. With the FakeResolution mode, the map is centered (and black bar are displayed around the screen.
But Panoramas and pictures offset are not calculated correctly, resulting in wrong positioning.
I discovered that the root cause was that the code was assuming that small maps were always of the size of 320x240, therefore maps with size larger than 320x240 but smaller than the Custom Resolution were not handled correctly.
Please do not merge yet, the issue related to Panorama should be fixed, but I discovered that we have a similar problem with Pictures.
As mentioned in #3509, Aëdemphia is a great game to test this PR.
This also fixes #3342 .