CRT screen imitation in DOSBox SVN Daum

All topics about DOS / old Windows games.
Post Reply
User avatar
MrFlibble
00 Agent
Posts: 281
Joined: Tue Mar 20, 2012 8:37 pm
Location: Russia

CRT screen imitation in DOSBox SVN Daum

Post by MrFlibble » Sat Apr 05, 2014 5:28 pm

I was playing around with pixel shaders that are included with DOSBox SVN Daum when I realized that several of them alter the DOSBox output to make it look like an image on an authentic CRT screen. One of them even goes as far as to recreate the "fishbowl" distortion of an actual monitor:
Image

Image

Another shader creates a less distorted (but still not completely rectangular) image:
Image

In my opinion, this looks pretty awesome (especially the fishbowl effect one). To configure DOSBox SVN Daum to use this shader, you need to make the following changes in dosbox.conf:

Code: Select all

[sdl]
output=direct3d
pixelshader=CRT-geom-curved.fx

[render]
aspect=true
scaler=hardware2x
The CRT-geom-curved.fx shader will create the fishbowl effect. You can use are CRT.D3D.fx instead to get a less prominent surface distortion, and CRT.D3D.br.fx for a brighter version of CRT.D3D.fx.

This works both in the windowed and fullscreen modes.

You can also get higher resolution images by using hardware3x, hardware4x and hardware5x instead of hardware2x:
Image

User avatar
MrFlibble
00 Agent
Posts: 281
Joined: Tue Mar 20, 2012 8:37 pm
Location: Russia

Re: CRT screen imitation in DOSBox SVN Daum

Post by MrFlibble » Sun Apr 06, 2014 6:34 pm

The CRT-geom-curved.fx shader turns out to be quite customizable and allows to adjust screen curvature, gamma correction and other stuff, similar to an actual CRT screen. Detailed info can be found here.

User avatar
MrFlibble
00 Agent
Posts: 281
Joined: Tue Mar 20, 2012 8:37 pm
Location: Russia

Re: CRT screen imitation in DOSBox SVN Daum

Post by MrFlibble » Mon Apr 28, 2014 11:15 am

I've asked the experts at VOGONS and it turns out that I made the mistake of taking screenshots in windowed mode, which does not do justice to the shaders' actual capabilities. leilei also suggested to use CRT.D3D.br.fx as the preferred shader.

Here's a comparison of all three shaders in fullscreen mode (1600x900): CRT-geom.curved.fx, CRT.D3D.fx, CRT.D3D.br.fx.

Post Reply