Implementing a 4x and 5x scaler

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
Roth
Posts: 1
Joined: Fri Dec 28, 2007 8:26 pm

Implementing a 4x and 5x scaler

Post by Roth »

Hi, before submitting a feature request to the team, I would like to know if anyone is interested in implementing a 4x and a 5x scalers (a clean one, no HQ/AdvMAME) and if it's a difficult task.
I have a 20 inc widescreen monitor (1680x1050), and if I toggle fullscreen on a 640x400 or 960x600 window I see it very blurry, if the source could be 1200x800 or 1600x1000 the image would be very neat (the fullscreen wouldn't even be necessary with such a big windows)...
I hope you understand my request (I'm not a native english speaker), thank you!
User avatar
sev
ScummVM Lead
Posts: 2306
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

No, such requests were rejected many times in the past. There is just no huge advantage, percentage of users who would use it is really small, but code bloat is big.


Eugene
fingolfin
Retired
Posts: 1452
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin »

Actually, for a simple 4x / 5x scale (no filtering done), this would be relatively simple to do, I guess. We *might* reconsider our stance on this particular kind of scaler at some point...
NLS
Posts: 127
Joined: Sun Jan 08, 2006 4:43 pm
Location: Greece
Contact:

Post by NLS »

please do reconsider

20" monitors are cheap nowadays and everybody buying a new computer usually gets one of those

all games today support 1680x1050 (in contrast to last year games)
fingolfin
Retired
Posts: 1452
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin »

Yeah, but then usually the scaler doesn't help much with those screens: On my 24" LCD, 1920x1200, ScummVM runs just fine in full screen with no extra scaler... So...
User avatar
Glorfindel
Posts: 37
Joined: Sat Jun 24, 2006 9:02 am
Location: Italy

Post by Glorfindel »

Hi, please see this wiki page, especially the image: if a lcd monitor don't use its native resolution the image is scaled and lost details/sharpness (some lcd panel is better than other, but a little blur is always present :( ); with a 4-5x scaler this problem would probably disappear, as the fullscreen 1:1 (black borders for smaller resolution, no blur) wouldn't have giants border.
I've made this image to compare the 1:1 fullscreen on a 20" wide monitor (1680x1050):
Image
The 4x scaler should give the same result on a 1440x900 resolution.
(BTW, hope I am not the only person who doesn't want any blur on his favourite adventure games :P )
User avatar
Nagra
Posts: 43
Joined: Thu Nov 24, 2005 5:39 pm
Location: Lübeck, Germany

Post by Nagra »

Glorfindel wrote: (BTW, hope I am not the only person who doesn't want any blur on his favourite adventure games :P )
No you are not. I just played Sam And Max on my 23" display with 16:10 aspect ratio :-)
User avatar
Freddo
Posts: 287
Joined: Mon Oct 31, 2005 4:41 pm

Post by Freddo »

fingolfin wrote:Yeah, but then usually the scaler doesn't help much with those screens: On my 24" LCD, 1920x1200, ScummVM runs just fine in full screen with no extra scaler... So...
True, but some people want to play the game in a window, yet let it use a large part of the screen.
User avatar
Glorfindel
Posts: 37
Joined: Sat Jun 24, 2006 9:02 am
Location: Italy

Post by Glorfindel »

One more question: why 640x480 games (COMI, Broken Sword1&2, The Feeble Files...) don't support scaling? Are there some technical issues preventing scaling? (just curios :roll: )

Edit: the README says:
Note #3: The FM-TOWNS version of Zak McKracken uses an original resolution of 320x240, hence for this game scalers will scale to 640x480 or 960x720.
Likewise, games that originally were using 640x480 (such as COMI or Broken Sword) will be scaled to 1280x960 and 1920x1440.
but I can't scale that games in my PC...
fingolfin
Retired
Posts: 1452
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin »

Scaling works just fine for me in those games...
User avatar
Glorfindel
Posts: 37
Joined: Sat Jun 24, 2006 9:02 am
Location: Italy

Post by Glorfindel »

You're right :D , but it works only when you select the graphic mode for the single game via the "Edit game" panel, if you select 2x as graphic mode in "Options" (for all the games) it won't work (I've tried with BS1&2 and Feeble Files, no "Override global graphics settings" option was selected before the test)... Could it be a bug?
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

Glorfindel wrote:You're right :D , but it works only when you select the graphic mode for the single game via the "Edit game" panel, if you select 2x as graphic mode in "Options" (for all the games) it won't work (I've tried with BS1&2 and Feeble Files, no "Override global graphics settings" option was selected before the test)... Could it be a bug?
A feature, I believe. The assumption was probably that most games ran at 320x200 pixels originally, so if you use a 2x scaler by default you probably want to run all games at 640x400 or 640x480.

Another assumption could be that since the smoothing scalers generally don't do as good a job as with the 320x200 pixel games (the 640x480 graphics is usually pretty smooth to begin with), you would probably want the simplest 2x or 3x scalers, if you want them scaled at all.

But of course, like all "do what I mean" features, it doesn't always do what everyone means. Larger monitors and faster computers are more common now. :)
User avatar
Glorfindel
Posts: 37
Joined: Sat Jun 24, 2006 9:02 am
Location: Italy

Post by Glorfindel »

Thanks for the explanations :D !
(Returning to topic: I've submitted a FR for the implementation of the 4x-5x scalers)
MK666
Posts: 5
Joined: Wed Nov 02, 2005 12:37 pm

Post by MK666 »

I would really appreciate if you would reconsider to implement the plain scaling with higher factors. The pixelated look of the old LA games is just beautiful, I don't want to spoil it by using some kind of filtering. Unfortunately, with the 3x scaler, just a small part of my screen is covered.

Maybe it's possible to implement a plain scaler with a variable scaling factor, so the problem won't reappear with the big screens of the year 3000... ;)
tburke
Posts: 13
Joined: Sun Sep 23, 2007 12:15 am

Post by tburke »

If you search for "4x" on the patch tracker, you'll find this has actually been implemented a couple of times, but never accepted. If you were really dead-set on doing it, I think you could just apply the patches, or failing that (and assuming you're feeling adventurous) look through the patch and see where the changes need to go in the current files, and recompile. Of course, I hardly expect most users would go to so much trouble.

Personally, I rather like the idea of an arbitrary scaler (which has also been done, though I haven't tried it), as it would also eliminate the argument of whether there were too many scalers already.
Post Reply