MV Maintain Aspect Ratio

Hello! I've been looking around for any plugins that can maintain a games aspect ratio when full-screened on a widescreen display. My game runs in 4:3 (640x480 specifically) and I'd like to prevent any stretching while using a pixel perfect option.

1703117075288.png

I've run into this post here, which is what I believe I'm looking for, but the link no longer works. And, the poster hasn't been active since 2019.

Does anybody have anything that could help with this? I've tried using Yanfly's Core Engine and SRD's Engine Upgrade, (which has an option for not allowing window resize, but doesn't effect aspect ratio as it seems) but neither seem to help my case.

Thank you!

EDIT: I just ended up changing the resolution. If theres anyone out there who wants a similar scale but a bit more zoomed in, I switched to 624x384
If you press F3 in-game (toggle stretch mode) does that make it display as you'd like?
Sorry, this sounds like you may have some terminology confused.
Judging by the screen shots, the aspect ratio seems to be maintained just fine. Aspect ratio is the ratio of number of pixels on the X axis to the number of pixels on the Y axis. It is a ratio, not constant number.
So 4:3 can be: 640×480, 800×600, 960×720, 1024×768, 1280×960, 1400×1050, 1440×1080, 1600×1200, 1856×1392, 1920×1440, and 2048×1536.

But, just because the output resolution is in the same ratio of pixels as the image rendered, it doesn't mean the image itself will perfectly scale.
Any partial resizing of an image (like 1.2x, 1.5x, 1.8x) will have to do something funny with the pixels, since you cannot have .5 of a pixel. A pixel is always either on or off. Actually, there is a whole science around scaling image outputs.
Anyways, all you need to know is that, the only way to get a perfect scale within RPG Maker is to scale up to a whole integer; 2x, 3x, 4x, etc.



Basically, what I am saying is that it looks like the image is being blurred because it's being scaled to a decimal value.
If it was an aspect ratio problem, things would look stretched, not blurry.
Sorry, this sounds like you may have some terminology confused.
I can see that yeah, I'm not too knowledgeable with this stuff so I def got something wrong.
Anyways, all you need to know is that, the only way to get a perfect scale within RPG Maker is to scale up to a whole integer; 2x, 3x, 4x, etc.
Is there any plugin available that can give players the option to scale the game x amount of times? I know OMORI has something like that but I can't seem to find anything about it online.
Omori had a team of developers behind it. That was likely something custom made for the game itself.
This is likely going to vary person-to-person anyways, because it's dependant on the user's screen size. It's just not something I would worry too much about. Put it on a list as "might fix eventually" but I would concern myself with the development of a fun game first before worrying about how the game might scale on a user's hardware.

Additionally, I haven't played Omori, but if I recall correctly, the "scaler" that is in it has it's own problems. Basically it's adjusting the internal resolution to render the game at set resolution values so that the screen can be rendered at perfect pixel values to maintain sharpness. The problem is that each resolution value is going to have a different amount of pixels, but a sprite is always a constant number of pixels. The result is that number of pixels on the screen increases, but the sprite itself stays the same size, which means proportionally it "looks like the spite gets smaller".
This method helps users set a resolution that matches their monitor to maintain pixel sharpness, but as a dev you have very little control of how the scene might look to different players. For example, if I set the renderer to my monitors resolution of 1440p, then the cutscenes or camera position may looked framed nicely in your 480p resolution you built the game on, but as a player I wind up with a ton of negative space in the scene.

Also, for what itself worth; growing up playing games on CRT TVs where only the absolute most expensive TVs could produce very sharp images, to me pixel games have always had some "softness" to them. I find the modern obsession with sharp pixels somewhat perplexing as it is not really emulating anything.
In other words; it's a matter of preference, and I find the mild softening of scaled pixels more pleasant.
Hello! I've been looking around for any plugins that can maintain a games aspect ratio when full-screened on a widescreen display. My game runs in 4:3 (640x480 specifically) and I'd like to prevent any stretching while using a pixel perfect option.
We have a shared problem. I've wanted to do this with my game, too. Even used a plugin that was supposed to make it so the screen wouldn't be blurry in fullscreen and used it, but it didn't really make any difference. So frustrating.....if anyone can help you they'll be helping me, too.
This is likely going to vary person-to-person anyways, because it's dependant on the user's screen size. It's just not something I would worry too much about. Put it on a list as "might fix eventually" but I would concern myself with the development of a fun game first before worrying about how the game might scale on a user's hardware.
This is true yeah, content should come first and this isn't something I should be so worried about.

We have a shared problem. I've wanted to do this with my game, too. Even used a plugin that was supposed to make it so the screen wouldn't be blurry in fullscreen and used it, but it didn't really make any difference. So frustrating.....if anyone can help you they'll be helping me, too.
If you're looking to get rid of the blurriness of fullscreen, I can forward you to some plugins and tutorials I used to have it be an option in-game. Feel free to send me a message about it and I'll get back to you when I can.
If you're looking to get rid of the blurriness of fullscreen, I can forward you to some plugins and tutorials I used to have it be an option in-game. Feel free to send me a message about it and I'll get back to you when I can.
Ok, sounds great. Send me links to them, please.
In case it helps for when you do decide to have another look at it...
Is there any plugin available that can give players the option to scale the game x amount of times?
Graphics._updateRealScale determines scale based on current window size. A simple solution could be to just round that down to an integer? Maybe this:
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Integer game canvas scale.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/164033/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (function(alias) {
  Graphics._updateRealScale = function() {
    alias.apply(this, arguments);
    if (this._realScale > 1)
      this._realScale = Math.floor(this._realScale);
  };
})(Graphics._updateRealScale);
An in-game option like 1x, 2x, 3x would be doable, but more work.

Original thread: https://forums.rpgmakerweb.com/threads/maintain-aspect-ratio.164033/