MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

OfHistory
MAME Fan
Reged: 07/07/12
Posts: 8
Send PM
Re: How to strect the game only at integer ratios?
07/08/12 11:01 PM



Quote:


> So, in your setting, the screen really shows an image where the top and the bottom
> has black bars?

No of course not (*)...I don't understand why you would want that.



Then, why do you say: "For me, setting prescale to 3 takes care of it"? Your setting does not solve what I was describing, so why do you wonder "why it doesn't work for the OP"? It doesn't work because it isn't what I described in the first place.

Why I want black borders on all four sides? Because a height of 240 pixels doesn't completely fit into a screen with 768 pixels. So, I want to stretch the image to three times 240 (= 720) pixels and display them like that. Which of course means that 48 pixels will be unused. Stretching an image of 720 pixels to a screen of 768 pixels does one of two things: If you have the bilinear filter set, it still makes the image a bit blurry. Or, if you have the bilinear filter off, then some pixels will be stretched four times while most to the pixels will be stretched three times. On the other hand, if there are black bars on top and bottom, then every pixel will be stretched three times.


Quote:


I like the image to take up as much screen space as possible while keeping the correct aspect ratio - like on a real 4:3 arcade monitor.



This would be an understandable argument if MAME actually attempted to simulate the look of an actual arcade monitor. But it doesn't.

Let me show you a practical example:
This is a raw image of "Super Mario Bros.":


This is the same image stretched:


And this is the image with a filter that tries to simulate a TV screen:


However, this is not what MAME would do. MAME would do something like this:


Or, if you use the prescale option:

Which looks a bit less blurry, but still has nothing to do with a TV screen.

Or, if you disable the bilinear filter altogether, it would look like this:


None of the versions in MAME is satisfactory. That's why I want to have this:


And I don't want MAME to stretch at floating point values without me explicitly saying so.


Quote:


Moon Patrol for example uses a resolution that produces a square image, 240x252. You must stretch the image horizontally into a 4:3 aspect ratio for the wheels on the moon buggy to be round.



That's all fine and well, but the stretching in MAME neither looks like an arcade monitor, nor like the raw data of the 240x252 image. And if I have the choice between a custom stretch made by the graphic card of the computer, or showing the raw data, then I choose the raw data. Because the graphic card stretching looks totally different from the real deal while the raw data is at least what the game would look like on a handheld system like a Game Boy. And thus, I want integer scaling, which means, yes, some of the pixels are unused.


Quote:


MAME "adjusts the monitor" for you automatically



And that's the problem. Adjusting the monitor should be an option, right along with integer scaling. We shouldn't be stuck with one of them. I mean, Nestopia has all: Integer scaling, 4:3 scaling, 4:3 scaling with artificial TV-look filter, stretching with and without bilinear filter. Or no stretching at all (i.e. displaying a tiny little 256x224 image unaltered on a 1360x768 monitor). Why does MAME omit the integer scaling, especiall since it is implemented in the DirectDraw version?







Entire thread
Subject Posted by Posted on
* How to strect the game only at integer ratios? OfHistory 07/08/12 12:25 AM
. * Re: How to strect the game only at integer ratios? krick  07/08/12 07:18 AM
. * Re: How to strect the game only at integer ratios? StilettoAdministrator  07/08/12 07:37 AM
. * Re: How to strect the game only at integer ratios? H@P  07/09/12 01:08 AM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/09/12 04:28 PM
. * Re: How to strect the game only at integer ratios? H@P  07/09/12 06:48 PM
. * Re: How to strect the game only at integer ratios? krick  09/08/12 11:44 PM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/09/12 07:31 PM
. * Re: How to strect the game only at integer ratios? H@P  07/10/12 07:01 AM
. * Re: How to strect the game only at integer ratios? Trebor  07/09/12 04:45 PM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 10:45 PM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/10/12 05:03 PM
. * Re: How to strect the game only at integer ratios? Sune  07/10/12 10:10 PM
. * Re: How to strect the game only at integer ratios? TafoidAdministrator  07/11/12 04:22 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 03:09 AM
. * Re: How to strect the game only at integer ratios? StilettoAdministrator  07/09/12 01:31 AM
. * EDIT: How to strect the game only at integer ratios? H@P  07/09/12 03:09 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 03:18 AM
. * Re: How to strect the game only at integer ratios? B2K24  07/08/12 08:23 AM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 11:41 AM
. * Re: How to strect the game only at integer ratios? Calamity  07/08/12 01:47 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 02:29 PM
. * Re: How to strect the game only at integer ratios? Calamity  07/08/12 03:35 PM
. * Re: How to strect the game only at integer ratios? TafoidAdministrator  07/08/12 02:53 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 03:38 PM
. * Re: How to strect the game only at integer ratios? krick  07/09/12 07:38 AM
. * Re: How to strect the game only at integer ratios? Vas Crabb  07/08/12 04:08 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 06:23 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 07:45 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 08:45 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 11:01 PM
. * Re: How to strect the game only at integer ratios? krick  07/28/12 07:24 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:16 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 01:44 AM
. * Re: How to strect the game only at integer ratios? B2K24  07/09/12 05:19 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 02:33 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:21 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/08/12 11:44 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:56 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 12:43 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 01:07 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:01 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:11 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 02:22 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:32 AM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 05:43 PM
. * Re: How to strect the game only at integer ratios? redk9258  07/08/12 05:04 PM
. * Re: How to strect the game only at integer ratios? B2K24  07/08/12 02:26 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 02:30 AM
. * Re: How to strect the game only at integer ratios? Waremonger  07/08/12 06:10 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 05:55 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 25 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5756