VOGONS

Common searches


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 7 of 24, by VileR

User metadata
Rank Oldbie
Rank
Oldbie
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?

Attachments

  • EGAfilter_t2.png
    Filename
    EGAfilter_t2.png
    File size
    27.47 KiB
    Views
    3564 views
    File license
    Fair use/fair dealing exception
  • EGAfilter_moonstone.png
    Filename
    EGAfilter_moonstone.png
    File size
    31.57 KiB
    Views
    3564 views
    File license
    Fair use/fair dealing exception

[ 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 10 of 24, by VileR

User metadata
Rank Oldbie
Rank
Oldbie

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!

Attachments

  • egafilter2_t2.png
    Filename
    egafilter2_t2.png
    File size
    25.11 KiB
    Views
    3437 views
    File license
    Fair use/fair dealing exception
  • egafilter2_sod.png
    Filename
    egafilter2_sod.png
    File size
    25.63 KiB
    Views
    3437 views
    File license
    Fair use/fair dealing exception
  • egafilter2_sango.png
    Filename
    egafilter2_sango.png
    File size
    32.88 KiB
    Views
    3437 views
    File license
    Fair use/fair dealing exception
  • egafilter2_msmap.png
    Filename
    egafilter2_msmap.png
    File size
    50.18 KiB
    Views
    3437 views
    File license
    Fair use/fair dealing exception

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

Reply 15 of 24, by nikiniki

User metadata
Rank Member
Rank
Member

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

Attachments

  • s2ega.png
    Filename
    s2ega.png
    File size
    116.62 KiB
    Views
    3065 views
    File comment
    Settlers 2 in 16 colours.
    File license
    Fair use/fair dealing exception

Reply 16 of 24, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Here's a modified version with saturation control.

Attachments

  • Filename
    EGAfilter3.txt
    File size
    3.27 KiB
    Downloads
    116 downloads
    File license
    Fair use/fair dealing exception

apsosig.png
long live PCem

Reply 17 of 24, by VileR

User metadata
Rank Oldbie
Rank
Oldbie

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

Attachments

  • turri.PNG
    Filename
    turri.PNG
    File size
    33.99 KiB
    Views
    2464 views
    File license
    Fair use/fair dealing exception

[ 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

Attachments

  • Filename
    egacrt.jpg
    File size
    218.45 KiB
    Downloads
    63 downloads
    File license
    Fair use/fair dealing exception
  • egafilter3.png
    Filename
    egafilter3.png
    File size
    6.16 KiB
    Views
    2450 views
    File license
    Fair use/fair dealing exception

apsosig.png
long live PCem