Page 3 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#69876 - 05/26/11 02:21 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Reznor007 Online   content
Member

Registered: 07/27/01
Posts: 90
Loc: Norman, OK, USA
Another thing that helps if you get horizontal banding, is to adjust scanline size.

This preset looks very similar to a Virtua Racing twin setup at the arcade I used to work at. Works perfect with Model1-3 in MAME. This looks great at a fullscreen res of 1920x1080, but if you swap to windowed mode the banding looks kinda bad.

Code:
hlsl_enable               1
hlslpath                  hlsl
shadow_mask_alpha         0.2
shadow_mask_texture       aperture.png
shadow_mask_x_count       496
shadow_mask_y_count       384
shadow_mask_usize         0.09375
shadow_mask_vsize         0.09375
oversample_x              4.0
oversample_y              4.0
curvature                 0.0
screen_scale_top          1.0
screen_scale_bottom       1.0
pincushion                0.0
scanline_alpha            0.6
scanline_size             0.7
scanline_bright_scale     1.0
scanline_bright_offset    0.6
scanline_jitter           0.0
defocus_x                 0.0
defocus_y                 0.0
red_converge_x            0.0
red_converge_y            0.0
green_converge_x          0.0
green_converge_y          0.0
blue_converge_x           0.0
blue_converge_y           0.0
red_radial_converge_x     0.0
red_radial_converge_y     0.0
green_radial_converge_x   0.0
green_radial_converge_y   0.0
blue_radial_converge_x    0.0
blue_radial_converge_y    0.0
red_from_r                1.0
red_from_g                0.0
red_from_b                0.0
green_from_r              0.0
green_from_g              1.0
green_from_b              0.0
blue_from_r               0.0
blue_from_g               0.0
blue_from_b               1.0
saturation                1.2
red_offset                0.0
green_offset              0.0
blue_offset               0.0
red_scale                 1.0
green_scale               1.0
blue_scale                1.0
red_power                 2.2
green_power               2.2
blue_power                2.2
red_floor                 0.02
green_floor               0.02
blue_floor                0.02
red_phosphor_life         0.4
green_phosphor_life       0.4
blue_phosphor_life        0.4
yiq_enable                0
yiq_w                     4.1187867
yiq_a                     0.5
yiq_b                     0.5
yiq_fsc                   1.5
yiq_fsc_scale             1.0
yiq_phase_count           2

Top
#69877 - 05/26/11 04:10 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Kaylee Offline
Senior Member

Registered: 08/29/09
Posts: 653
Here is a preset for the AT driver in mess
Code:
hlsl_enable               1
hlslpath                  hlsl
shadow_mask_alpha         0.0
shadow_mask_texture       aperture.png
shadow_mask_x_count       640
shadow_mask_y_count       480
shadow_mask_usize         0.1875
shadow_mask_vsize         0.1875
oversample_x              1.0
oversample_y              1.0
curvature                 0.0
screen_scale_top          1.0
screen_scale_bottom       1.0
pincushion                0.0
scanline_alpha            1.0
scanline_size             0.8
scanline_bright_scale     1.0
scanline_bright_offset    0.25
scanline_jitter           0.0
defocus_x                 0.0
defocus_y                 0.0
red_converge_x            0.0
red_converge_y            0.0
green_converge_x          0.0
green_converge_y          0.0
blue_converge_x           0.0
blue_converge_y           0.0
red_radial_converge_x     0.0
red_radial_converge_y     0.0
green_radial_converge_x   0.0
green_radial_converge_y   0.0
blue_radial_converge_x    0.0
blue_radial_converge_y    0.0
red_from_r                -0.45
red_from_g                -0.825
red_from_b                1.075
green_from_r              -2.0
green_from_g              0.0
green_from_b              0.0
blue_from_r               -1.0
blue_from_g               -0.025
blue_from_b               1.025
saturation                1.0
red_offset                0.0
green_offset              0.0
blue_offset               0.0
red_scale                 1.0
green_scale               1.0
blue_scale                1.0
red_power                 1.0
green_power               1.0
blue_power                1.0
red_floor                 0.0
green_floor               0.0
blue_floor                0.0
red_phosphor_life         0.0
green_phosphor_life       0.0
blue_phosphor_life        0.0
yiq_enable                0
yiq_w                     4.1187867
yiq_a                     0.5
yiq_b                     0.5
yiq_fsc                   1.5
yiq_fsc_scale             1.0
yiq_phase_count           2

produces a green


EDIT: Redid it now looks way better


Edited by Kaylee (05/26/11 08:15 AM)

Top
#69878 - 05/26/11 04:59 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Anna Wu Offline
Very Senior Member

Registered: 07/28/07
Posts: 3935
Looks like a hercules graphic with green screen. smile
How about amber ?
_________________________
Anna's Playground for QMC2

Top
#69879 - 05/26/11 06:30 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Anna Wu]
Kaylee Offline
Senior Member

Registered: 08/29/09
Posts: 653
I'm trying to get the correct amber color

Top
#69880 - 05/26/11 07:45 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Kaylee]
Lord Nightmare Offline
Senior Member

Registered: 03/16/06
Posts: 606
Loc: PA, USA
http://www.vintage-computer.com/images/ibmpcportscreen.jpg
For ibm 5155:
BG (when frontlit only, otherwise appears as nearly black):
783f45 or so (120, 63, 69 in 0-255 range for r,g,b; set the 'floor values' of rgb to this)
FG (the text color):
ffc62f (255, 198, 45)
Yes, this means the text actually has LESS blue than the background! adjust matrix accordingly, unless you're using a black bg.

LN
_________________________
"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"

Top
#69882 - 05/26/11 08:14 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Kaylee Offline
Senior Member

Registered: 08/29/09
Posts: 653
The Amber screen. (Finally Nailed it.)

Code:
hlsl_enable               1
hlslpath                  hlsl
shadow_mask_alpha         0.0
shadow_mask_texture       aperture.png
shadow_mask_x_count       640
shadow_mask_y_count       480
shadow_mask_usize         0.1875
shadow_mask_vsize         0.1875
oversample_x              1.0
oversample_y              1.0
curvature                 0.0
screen_scale_top          1.0
screen_scale_bottom       1.0
pincushion                0.0
scanline_alpha            1.0
scanline_size             0.8
scanline_bright_scale     1.0
scanline_bright_offset    0.5
scanline_jitter           0.0
defocus_x                 0.0
defocus_y                 0.0
red_converge_x            0.0
red_converge_y            0.0
green_converge_x          0.0
green_converge_y          0.0
blue_converge_x           0.0
blue_converge_y           0.0
red_radial_converge_x     0.0
red_radial_converge_y     0.0
green_radial_converge_x   0.0
green_radial_converge_y   0.0
blue_radial_converge_x    0.0
blue_radial_converge_y    0.0
red_from_r                1.05
red_from_g                -0.425
red_from_b                1.3
green_from_r              1.6
green_from_g              -0.475
green_from_b              -0.35
blue_from_r               -0.950
blue_from_g               0.05
blue_from_b               1.05
saturation                1.0
red_offset                0.0
green_offset              0.0
blue_offset               0.0
red_scale                 1.0
green_scale               1.0
blue_scale                1.0
red_power                 1.0
green_power               1.0
blue_power                1.0
red_floor                 0.0
green_floor               0.0
blue_floor                0.0
red_phosphor_life         0.5
green_phosphor_life       0.5
blue_phosphor_life        0.5
yiq_enable                0
yiq_w                     4.1187867
yiq_a                     0.5
yiq_b                     0.5
yiq_fsc                   1.5
yiq_fsc_scale             1.0
yiq_phase_count           2



Top
#69884 - 05/26/11 08:57 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Anna Wu Offline
Very Senior Member

Registered: 07/28/07
Posts: 3935
Thanks Kaylee. smile
_________________________
Anna's Playground for QMC2

Top
#69937 - 05/27/11 11:50 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Anna Wu]
Just Desserts Online   content
Very Senior Member

Registered: 05/23/09
Posts: 1238
Anyone who felt that the scanlines and shadow mask seeemed a bit "off" was right - the scanlines did not line up to the individual pixels. Additionally, I was bilinear filtering the texture during multiple stages rather than point sampling until the last possible moment. Sync up to the MESS SVN tree and copy the shaders into your MAME hlsl directory for goodness.

The upshot of this is that you can really crank the shadow mask and scanline settings without inducing anywhere near as much rainbow moiré as before.

Don't believe me? Here's a before (left) and after (right) with the same settings, no oversampling, no prescale, full alpha on scanlines and shadow mask: http://icips.us/emulation/crt/scanmask_before_after.png

Top
#70523 - 06/07/11 07:08 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]
Envisaged0ne Offline
Member

Registered: 11/21/09
Posts: 27
Anyone have any good hlsl settings for the new u5 version? The old ones make the colors all out of whack. For the atari 2600, 5200 & 7800 anyway. Haven't tried it on other systems yet.

Top
#73239 - 09/14/11 06:41 PM Re: SHADER PRESET ONE-STOP SHOP [Re: Envisaged0ne]
Hunk Offline
Member

Registered: 09/14/11
Posts: 28
Can anyone recommended hlsl settings for Mame 143u5?

Top
Page 3 of 9 < 1 2 3 4 5 6 7 8 9 >


Who's Online
3 registered (B2K24, Tafoid, etabeta78), 14 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4345 Members
9 Forums
7227 Topics
87064 Posts

Max Online: 183 @ 03/06/12 06:21 PM