VOGONS


Vga to Ega?

Topic actions

First post, by marcuz99

User metadata
Rank Newbie
Rank
Newbie

Hello, I would like to know if it is possible to force VGA palettes to be forcibly reduced to EGA palettes in dosbox, through some effect layer, or in other ways.

I would like to play the third episode of Eye of Beholder with EGA graphics as I did with the first two.
(and dark queen of Krynn too)

I know that VGA and EGA are more different modes than in simple palette color numbers, nut anyway...

Thank you!

Reply 1 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

There's probably a way to do it through HLSL Direct3D postprocessing using that d3d patch (found in yhkwong's build). I know i've done the same to Darkplaces and OA before.

apsosig.png
long live PCem

Reply 2 of 24, by Great Hierophant

User metadata
Rank l33t
Rank
l33t

If you had the original disks for Dark Queen of Krynn, you could install EGA or Tandy 16-color graphics. Eye of the Beholder III does not support EGA, despite what MobyGames claims (change just submitted).

http://nerdlypleasures.blogspot.com/ - Nerdly Pleasures - My Retro Gaming, Computing & Tech Blog

Reply 3 of 24, by marcuz99

User metadata
Rank Newbie
Rank
Newbie

I forgot to check DQoK for EGA files, because I was going by memory; I have it on the dos box series cd, so that's covered, unless they are somehow differently packaged, I'll have to check.

But yeah, EoB 3 has no EGA files, I was thinking something like what leileilol wrote, but I've never used yhkwong, so I'll ask: is something that even a code illiterate can use?

Reply 4 of 24, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

[Thread moved to DOSBox General Section]

Reply 5 of 24, by marcuz99

User metadata
Rank Newbie
Rank
Newbie

Thank you, I was not sure that was the right section indeed...

By the way, is there some way to do the thing leileilol says without scripting an effect, that I've no clue?

Reply 7 of 24, by VileR

User metadata
Rank l33t
Rank
l33t
leileilol wrote:

I'd do it if I knew HLSL. I've done it before in GLSL (really, it was a bunch of if's)

Haha, W3C needs to adopt "SkiFreeDogPee" as the official CSS name for #AAAA00, POST-HASTE.

anyway, here's a quick and dirty HLSL port. Needs "shader.code" which is included with ykhwong's distribution anyway.
http://ompldr.org/vZ3ltMg/EGAfilter.fx
I just tinkered with some of the numbers... can't really get it to look "right", and dark gray doesn't show up at all - there's probably a way to fix that, I just didn't try very hard (never touched HLSL before either). Anyone else want to play with this?

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]

Reply 8 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Well yeah, it could be done much better. I had a hard time getting even grays. Best to test with an actual EGA game (Commander Keen 4 is a good one for its use of grays)
I think the shader I posted was modified to adjust for OA's overbrights

apsosig.png
long live PCem

Reply 9 of 24, by marcuz99

User metadata
Rank Newbie
Rank
Newbie

This looks interesting, I'll test this evening, and try to understand the code, thank you!

Reply 10 of 24, by VileR

User metadata
Rank l33t
Rank
l33t

Here's a rewrite... it uses a lookup table for downsampling, so you get dark gray, and actual EGA/tandy games show no changes.
http://ompldr.org/vZ3l4OQ/EGAfilter.fx

Performance is surprisingly semi-OK even on my crap GPU!

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]

Reply 11 of 24, by marcuz99

User metadata
Rank Newbie
Rank
Newbie

Aww! This is so cool! Thank you very much! 😀

Reply 12 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Sometimes I don't ever see the dark greens, i.e. in Heretic

How would this look with crtfx... 😁

apsosig.png
long live PCem

Reply 13 of 24, by Joey_sw

User metadata
Rank Oldbie
Rank
Oldbie

I tried to port the shader into Media Player Classic, weird result.
is therey any good (16 color) dithering shaders available?

-fffuuu

Reply 14 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

A dither table could also work in HLSL, maybe a simple 50% one

apsosig.png
long live PCem

Reply 15 of 24, by nikiniki

User metadata
Rank Member
Rank
Member

I played Settlers 2 in 16 colours. Not that bad.

Reply 16 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Here's a modified version with saturation control.

apsosig.png
long live PCem

Reply 17 of 24, by VileR

User metadata
Rank l33t
Rank
l33t

ooh, good idea - keeps the gray away. More greens are showing up 😀

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]

Reply 18 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Unfortunately there's bugs with oversaturation like at 4.5, didn't really cap it
Check out the clipping on X's boots

(this is ZSNES in 16-bit color mode)

Also I was able to combine it with the CRT shader, though for some reason it takes a long time to load

apsosig.png
long live PCem

Reply 19 of 24, by Rekrul

User metadata
Rank Member
Rank
Member

I don't think I've ever heard of anyone wanting less colors in a game before...