...but why cant emulators enhance graphics like this? >_>

Emulation of old consoles and arcades.

...but why cant emulators enhance graphics like this? >_>

Postby hifidelitygaming » 2012-2-26 @ 21:06

Something i've wondered, which i'd posted to a couple other emulation boards and got panned down over without any good explanation of why it wasn't possible.

Having seen scalers like eagle, supersai and especially hq3x and such, they let you increase the resolution of the total screen via interpolation. However interpolation looks wrong in some cases, it can make it look like your character is 'sticking' to the background (at 3x and above) because it may be interpolating between the background and the sprite...

Why cant an emulation engine simply scale up the sprite independantly (including alpha channels) and then composite the scaled up sprite onto the screen?

Instead of scaling up the whole screen as a single unit, you take each individual sprite, and each individual background layer, scaling them up in turn, and then compositing back at higher resolution. I can't figure out why this wouldn't work. :( I want to eventually write code to do this but I don't currently program.
hifidelitygaming
Newbie
 
Posts: 77
Joined: 2012-2-26 @ 18:58

Re: ...but why cant emulators enhance graphics like this? >_>

Postby Sune Salminen » 2012-2-26 @ 23:00

The filter applies to everything because it doesn't know how to tell a sprite from the background layer. You'd have to hook into the game code itself to filter things independently. Each game does things in its own way so it would have to be written individually for each game. A stupid amount of work.

Some hardware had dedicated "hardware sprites" but only the most shitty games used ROM routines back then, the best game programmers wrote their own routines which were faster, took up less memory and went way past the "limitations" of the hardware.
Sometimes whole backgrounds or other game elements were made entirely out of sprites, or sprites were multi-layered, as seen on for example Hunter's Moon and a lot of late Ocean/Imagine games on the C64.

AFAIK on late 80's 3D arcade games like SEGA's Power Drift, Out Run and Galaxy Force, maybe there is a simple text/character top layer, but everything else is sprites, the road, the sky, planets, palm trees, everything.

With so many different approaches it would be very difficult to filter the way you want. You'd need intimate knowledge of the emulated hardware platform, the assembly language the games are programmed in, and then come up with a way to split the layers and present each layer to the filtering code running on the host system.
And there's no guarantee that the sprites you want to filter will be on the same layer in level two of your game.
User avatar
Sune Salminen
Member
 
Posts: 190
Joined: 2002-7-28 @ 17:40
Location: BH, Brasil

Re: ...but why cant emulators enhance graphics like this? >_>

Postby wd » 2012-2-26 @ 23:50

I want to eventually write code to do this but I don't currently program.

Minor issue...
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: ...but why cant emulators enhance graphics like this? >_>

Postby sliderider » 2012-3-22 @ 23:38

You'd also need a separate upscaler for every game because they may not handle the sprite data in the same way. It would most likely not be stored in the same memory locations for every game in existence. You'd end up with something like bleemcast! with versions specific to one game only and that would really suck and is one of the reasons why bleem! died out so fast.
User avatar
sliderider
l33t++
 
Posts: 5754
Joined: 2010-6-25 @ 13:02

Re: ...but why cant emulators enhance graphics like this? >_>

Postby OmerMor » 2012-3-23 @ 09:19

Emulators for specific game engines, like ScummVM might pull off something like that.
They already handle game-specific drawing routines, so they can more easily tell apart the background from the foreground sprites.
OmerMor
Newbie
 
Posts: 46
Joined: 2006-4-29 @ 20:40

Re: ...but why cant emulators enhance graphics like this? >_>

Postby Mau1wurf1977 » 2012-3-23 @ 12:50

Scalers is something I really don't want to see in emulation. But accurate scrolling and adapting to the LCD refresh frequency are features they should really work on.

No point in having fancy graphics if the scrolling isn't smooth.
User avatar
Mau1wurf1977
l33t++
 
Posts: 7652
Joined: 2010-8-27 @ 04:15
Location: Western Australia

Re: ...but why cant emulators enhance graphics like this? >_>

Postby leileilol » 2012-3-23 @ 14:02

i'd like to see crt mocking more often. MAME/MESS, Dosbox+yhkwong and bsnes are the only ones I know of that can. It's something I dreamed of here in Vogons some time ago finally becoming a reality.

There's more use in that than the novelty of a scaler.
User avatar
leileilol
l33t++
 
Posts: 8347
Joined: 2006-12-16 @ 18:03

Re: ...but why cant emulators enhance graphics like this? >_>

Postby butterfly » 2012-3-26 @ 04:24

There are engine remakes for some games
Free In The Dark - Alone In The Dark (abandoned)
REminiscence - Flashback
to name a couple
Check this link for more. Maybe one of your favourite games is in the list and playable.
User avatar
butterfly
Member
 
Posts: 384
Joined: 2004-2-13 @ 10:36
Location: Italy

Re: ...but why cant emulators enhance graphics like this? >_>

Postby mr_bigmouth_502 » 2013-5-11 @ 06:57

I've noticed that some console emulators (namely VisualBoy Advance) allow you to view sprites stored in memory, so would sprite upscaling work for those? I understand it wouldn't be perfect, as some games use sprites for background elements or whatever, and some even eschew hardware sprites altogether, but I think it would work for many situations.

Sorry for the necropost. :P I just stumbled across this thread and felt like chiming in.
User avatar
mr_bigmouth_502
Oldbie
 
Posts: 1903
Joined: 2009-5-16 @ 19:43
Location: Canada

Re: ...but why cant emulators enhance graphics like this? >_>

Postby leileilol » 2013-5-11 @ 07:36

maintaining blends between block seams would work against that. Applying scaler to vram contents then emulating with it would look like the attack of badly compressed jpegs
User avatar
leileilol
l33t++
 
Posts: 8347
Joined: 2006-12-16 @ 18:03

Re: ...but why cant emulators enhance graphics like this? >_>

Postby mr_bigmouth_502 » 2013-5-11 @ 08:14

leileilol wrote:maintaining blends between block seams would work against that. Applying scaler to vram contents then emulating with it would look like the attack of badly compressed jpegs


Isn't that how most scalers end up looking anyhow? XD
User avatar
mr_bigmouth_502
Oldbie
 
Posts: 1903
Joined: 2009-5-16 @ 19:43
Location: Canada

Re: ...but why cant emulators enhance graphics like this? >_>

Postby m1so » 2013-5-21 @ 12:55

mr_bigmouth_502 wrote:
leileilol wrote:maintaining blends between block seams would work against that. Applying scaler to vram contents then emulating with it would look like the attack of badly compressed jpegs


Isn't that how most scalers end up looking anyhow? XD


Quoted for truth. I loathe all "enhancing" scalers and most sourceports (zDoom and eDuke32 are fine, but I still prefer the original keyboard controlled versions, being a physically disabled guy using the arrows + Ctrl to shoot + Shift to jump is very good for me).
User avatar
m1so
Member
 
Posts: 343
Joined: 2013-3-11 @ 14:17

Re: ...but why cant emulators enhance graphics like this? >_>

Postby kolano » 2013-5-21 @ 16:33

For some platforms sprite replacement is possible. Check out HDNes, which upscales sprite tiles in NES games. Some example images in this NESDev thread.

It's been ages now, but I believe there was also an arcade emulator that allowed for similar tile replacements for a few arcade titles (PacMan, I think a few other games). But it's been just under a decade since I recall hearing of it.
User avatar
kolano
Oldbie
 
Posts: 513
Joined: 2010-12-26 @ 21:03

Re: ...but why cant emulators enhance graphics like this? >_>

Postby kolano » 2013-5-21 @ 16:38

mr_bigmouth_502 wrote:
leileilol wrote:maintaining blends between block seams would work against that. Applying scaler to vram contents then emulating with it would look like the attack of badly compressed jpegs


Isn't that how most scalers end up looking anyhow? XD


I think the difference would happen where there are filter errors due to similar colored edges lining up between spites, other sprites, and backgrounds.
User avatar
kolano
Oldbie
 
Posts: 513
Joined: 2010-12-26 @ 21:03

Re: ...but why cant emulators enhance graphics like this? >_>

Postby Jorpho » 2013-5-21 @ 17:29

kolano wrote:It's been ages now, but I believe there was also an arcade emulator that allowed for similar tile replacements for a few arcade titles (PacMan, I think a few other games).
That was EmuDX, available for Pac-Man and Donkey Kong. And that was definitely ages ago.

In those cases the operation was relatively "simple" since it was being done to two specific games with relatively simple programs that have been thoroughly disassembled at this point.
User avatar
Jorpho
l33t++
 
Posts: 6846
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: ...but why cant emulators enhance graphics like this? >_>

Postby MikeDX » 2015-3-02 @ 16:03

Jorpho wrote:That was EmuDX, available for Pac-Man and Donkey Kong. And that was definitely ages ago.

It was in 2000, and it was for Pac-Man, Donkey Kong, Frogger, Ms Pac-Man, Galaxian and about 15 others that were work in progress
Jorpho wrote:In those cases the operation was relatively "simple" since it was being done to two specific games with relatively simple programs that have been thoroughly disassembled at this point.


Possibly a little harsh


EmuDX is alive and well in the Raine emulator, but also as an upcoming android release.

Stay tuned, as they say..
MikeDX
Newbie
 
Posts: 3
Joined: 2015-3-02 @ 15:59

Re: ...but why cant emulators enhance graphics like this? >_>

Postby Stiletto » 2015-3-02 @ 17:08

I'd give you crap for registering just to bump a two-year old thread, but when it's MikeDX... I'll forgive it. Welcome! :D
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 3544
Joined: 2002-7-01 @ 21:57

Re: ...but why cant emulators enhance graphics like this? >_>

Postby mr_bigmouth_502 » 2015-4-08 @ 06:41

That's what I was thinking as well. XD

Anyway, back on topic, I've tried looking up information for this HDNes emulator, and it seems like it's hard to find actual builds of it, or the texture packs to go with it. Now, as for the idea of upscaling and filtering individual sprites, I can see why it may be difficult to do, but a pretty generic solution would be to apply filtering to the individual background layers, as well as the tilemaps stored in memory. Now, I'm not sure how much it would actually improve the visuals, but it would be an interesting thing for an emu author to try. Maybe one could even mix and match different filtering techniques, using one for sprite layers, another for backgrounds, etc.
My NEW(ish) desktop:
Image
User avatar
mr_bigmouth_502
Oldbie
 
Posts: 1903
Joined: 2009-5-16 @ 19:43
Location: Canada

Re: ...but why cant emulators enhance graphics like this? >_>

Postby Lo Wang » 2015-6-16 @ 18:54

Scalers are absolutely horrendous, but to each there own I guess.

About the only thing that can handle this type of graphics correctly is a good ole' interlaced CRT display, and emulating that on a flat panel is about as pointless as emulating a turntable for better sound quality.

Now, in a general sense, is there a more efficient way to apply these scalers? nope. You either become familiar enough with the hardware that you're able to tell exactly how everything's laid out and how to single out a sprite from video memory (not always possible realistically speaking), or it's just mere output filtering.
User avatar
Lo Wang
Member
 
Posts: 337
Joined: 2014-12-03 @ 05:28

Re: ...but why cant emulators enhance graphics like this? >_>

Postby MikeDX » 2016-2-12 @ 16:47

Stiletto wrote:I'd give you crap for registering just to bump a two-year old thread, but when it's MikeDX... I'll forgive it. Welcome! :D


Sorry I never saw this, my life has been on turbo for the past while..

Thanks for the welcome ;)
MikeDX
Newbie
 
Posts: 3
Joined: 2015-3-02 @ 15:59

Next

Return to Console & Arcade Emulation

Who is online

Users browsing this forum: No registered users and 1 guest