Previous Thread
Next Thread
Print Thread
Page 3 of 9 1 2 3 4 5 6 7 8 9
#69876 - 05/26/11 01:21 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Jul 2001
Posts: 100
Reznor007 Offline
Senior Member
Reznor007  Offline
Senior Member

Joined: Jul 2001
Posts: 100
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

#69877 - 05/26/11 03:10 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Aug 2009
Posts: 662
Kaylee Offline
Senior Member
Kaylee  Offline
Senior Member

Joined: Aug 2009
Posts: 662
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

Last edited by Kaylee; 05/26/11 07:15 AM.
#69878 - 05/26/11 03:59 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Jul 2007
Posts: 4,624
Anna Wu Offline
Very Senior Member
Anna Wu  Offline
Very Senior Member

Joined: Jul 2007
Posts: 4,624
Looks like a hercules graphic with green screen. smile
How about amber ?

#69879 - 05/26/11 05:30 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Anna Wu]  
Joined: Aug 2009
Posts: 662
Kaylee Offline
Senior Member
Kaylee  Offline
Senior Member

Joined: Aug 2009
Posts: 662
I'm trying to get the correct amber color

#69880 - 05/26/11 06:45 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Kaylee]  
Joined: Mar 2006
Posts: 1,013
Lord Nightmare Offline
Very Senior Member
Lord Nightmare  Offline
Very Senior Member

Joined: Mar 2006
Posts: 1,013
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!"
#69882 - 05/26/11 07:14 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Aug 2009
Posts: 662
Kaylee Offline
Senior Member
Kaylee  Offline
Senior Member

Joined: Aug 2009
Posts: 662
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



#69884 - 05/26/11 07:57 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Jul 2007
Posts: 4,624
Anna Wu Offline
Very Senior Member
Anna Wu  Offline
Very Senior Member

Joined: Jul 2007
Posts: 4,624
Thanks Kaylee. smile

#69937 - 05/27/11 10:50 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Anna Wu]  
Joined: May 2009
Posts: 1,670
Just Desserts Offline
Very Senior Member
Just Desserts  Offline
Very Senior Member

Joined: May 2009
Posts: 1,670
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

#70523 - 06/07/11 06:08 AM Re: SHADER PRESET ONE-STOP SHOP [Re: Just Desserts]  
Joined: Nov 2009
Posts: 29
Envisaged0ne Offline
Member
Envisaged0ne  Offline
Member

Joined: Nov 2009
Posts: 29
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.

#73239 - 09/14/11 05:41 PM Re: SHADER PRESET ONE-STOP SHOP [Re: Envisaged0ne]  
Joined: Sep 2011
Posts: 28
Hunk Offline
Member
Hunk  Offline
Member

Joined: Sep 2011
Posts: 28
Can anyone recommended hlsl settings for Mame 143u5?

Page 3 of 9 1 2 3 4 5 6 7 8 9

Who's Online Now
3 registered members (AJR, Sune, Duke), 19 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,534
Posts111,540
Members4,793
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.044s Queries: 15 (0.020s) Memory: 5.0317 MB (Peak: 5.2572 MB) Zlib enabled. Server Time: 2018-05-22 15:39:44 UTC