MAME scanline/shadowmask simulation

Everything Emulator related
Post Reply
Korszca
Assistant Librarian
Posts: 2135
Joined: March 2nd, 2010, 2:14 am
Location:

Re: MAME scanline/shadowmask simulation

Post by Korszca »

Beaps wrote:It don't look quite right tho imo
You know scanlines rotate too when you rotate the monitor, right?
User avatar
AeroCityMayor
Previously alien_mame
Posts: 2005
Joined: July 25th, 2009, 1:05 pm
Location: West Yorks, UK
eBay: air_fortless
Initials: ACM

Re: MAME scanline/shadowmask simulation

Post by AeroCityMayor »

Korszca wrote: You know scanlines rotate too when you rotate the monitor, right?
Doh!

:palm:
Image
User avatar
Beaps
Posts: 127
Joined: December 29th, 2008, 6:37 pm
Location: Essex - UK

Re: MAME scanline/shadowmask simulation

Post by Beaps »

I know that :lolno:

Ill post a pic & show you what I mean
User avatar
Beaps
Posts: 127
Joined: December 29th, 2008, 6:37 pm
Location: Essex - UK

Re: MAME scanline/shadowmask simulation

Post by Beaps »

here look...

Image
User avatar
davewellington
The Librarian
Posts: 1389
Joined: July 7th, 2010, 1:42 am
Location: Wellington, New Zealand
Initials: DAV

Re: MAME scanline/shadowmask simulation

Post by davewellington »

davewellington wrote:Are you using HLSL?
all your wiki pages belong to me
User avatar
Beaps
Posts: 127
Joined: December 29th, 2008, 6:37 pm
Location: Essex - UK

Re: MAME scanline/shadowmask simulation

Post by Beaps »

No sure, do you think you can post your mame.ini?
User avatar
davewellington
The Librarian
Posts: 1389
Joined: July 7th, 2010, 1:42 am
Location: Wellington, New Zealand
Initials: DAV

Re: MAME scanline/shadowmask simulation

Post by davewellington »

I don't use scanlines, I only use mame to try before I buy tbh.
But yeah, you're either using cools method, or hlsl, so you should figure out which :D
all your wiki pages belong to me
User avatar
Beaps
Posts: 127
Joined: December 29th, 2008, 6:37 pm
Location: Essex - UK

Re: MAME scanline/shadowmask simulation

Post by Beaps »

I am using cools method
User avatar
gundarN
Officially Special
Posts: 1050
Joined: October 24th, 2009, 7:30 pm
Location: Scotchland
Initials: guN

Re: MAME scanline/shadowmask simulation

Post by gundarN »

I find the best method is wearing the following:

Image

I'm still ironing out some vertical scanline bugs though...
User avatar
Beaps
Posts: 127
Joined: December 29th, 2008, 6:37 pm
Location: Essex - UK

Re: MAME scanline/shadowmask simulation

Post by Beaps »

Haha I like that one dundarN..
User avatar
BlackGuyRX

Re: MAME scanline/shadowmask simulation

Post by BlackGuyRX »

Hi! i'm new here.

I tried following the "MAME CRT Simulation" page in the wiki, but i have no idea how to set up the mame.ini for individual game resolutions other than blanket default settings. i end up with uneven scanlines, and the game screen is slightly capped off where "1UP HIGH SCORE 2UP" should be.
User avatar
cools
Armed Police Buttrider
Posts: 13457
Joined: August 17th, 2008, 4:49 pm
Location: Wales, United Kingdom
eBay: hordarian
Initials: CLS

Re: MAME scanline/shadowmask simulation

Post by cools »

hlsl is rather good isn't it (now). Almost makes me wish I had a machine capable of running MAME + hlsl at full speed.
Image
arcnl
Posts: 615
Joined: September 16th, 2012, 1:46 pm
Location: The Netherlands

Re: MAME scanline/shadowmask simulation

Post by arcnl »

No matter what i try, HLSL always looks too blurry/filtered. I just gave up on using it.
User avatar
cools
Armed Police Buttrider
Posts: 13457
Joined: August 17th, 2008, 4:49 pm
Location: Wales, United Kingdom
eBay: hordarian
Initials: CLS

Re: MAME scanline/shadowmask simulation

Post by cools »

It depends a lot on how high resolution your monitor is, and I believe it requires different settings depending on your GPU. Brightness/contrast/colour settings depend on your monitor as well.

If you don't have a CRT to compare with then it's pure guesswork...

If I get time (bored) one day I'll do a side by side setup.
Image
User avatar
cools
Armed Police Buttrider
Posts: 13457
Joined: August 17th, 2008, 4:49 pm
Location: Wales, United Kingdom
eBay: hordarian
Initials: CLS

Re: MAME scanline/shadowmask simulation

Post by cools »

Shoehorning one of these: http://www.trustedreviews.com/news/shar ... zo-monitor" into a Vewlix/Lindbergh would make for a nice simulated CRT environment.
Image
fagin
Posts: 800
Joined: February 9th, 2009, 7:04 pm
Location: UK

Re: MAME scanline/shadowmask simulation

Post by fagin »

:awe:
Braintrash
Please Continue...
Posts: 389
Joined: February 17th, 2011, 6:31 pm
Location: France
eBay: yuu_madrigal

Re: MAME scanline/shadowmask simulation

Post by Braintrash »

Was thinking of it for my VLX. ^^
User avatar
cools
Armed Police Buttrider
Posts: 13457
Joined: August 17th, 2008, 4:49 pm
Location: Wales, United Kingdom
eBay: hordarian
Initials: CLS

Re: MAME scanline/shadowmask simulation

Post by cools »

Use HLSL.

Looks fantastic in 1080p. I've tried at 768p as well, and that looks good too but you need to drop the defocus value to 0.5 or it's not sharp enough.

Special tricksy settings.

Code: Select all

hlsl_enable               1
hlslpath                  hlsl
hlsl_ini_read             0
hlsl_ini_write            0
hlslini                   %g
hlsl_prescale_x           0
hlsl_prescale_y           0
hlsl_preset               -1
hlsl_write                
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         0.200000
shadow_mask_texture       aperture.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.09375
shadow_mask_vsize         0.109375
curvature                 0.000000
pincushion                0.050000
scanline_alpha            1.000000
scanline_size             1.000000
scanline_height           1.000000
scanline_bright_scale     1.300000
scanline_bright_offset    0.600000
scanline_jitter           1.950000
defocus                   1.000000,0.000000
converge_x                -0.100000,0.000000,0.100000
converge_y                0.100000,0.000000,-0.100000
radial_converge_x         1.300000,0.000000,-1.300000
radial_converge_y         -0.300000,0.000000,0.300000
red_ratio                 1.000000,0.000000,0.000000
grn_ratio                 0.000000,1.000000,0.000000
blu_ratio                 0.000000,0.000000,1.000000
saturation                1.000000
offset                    0.000000,0.000000,0.000000
scale                     1.000000,1.000000,1.000000
power                     1.000000,1.000000,1.000000
floor                     0.000000,0.000000,0.000000
phosphor_life             0.200000,0.200000,0.200000
yiq_enable                0
yiq_cc                    3.597545
yiq_a                     0.500000
yiq_b                     0.500000
yiq_o                     0.000000
yiq_p                     1.000000
yiq_n                     1.000000
yiq_y                     6.000000
yiq_i                     1.200000
yiq_q                     0.600000
yiq_scan_time             52.599998
yiq_phase_count           2
Image
User avatar
Pete
Retired
Posts: 4287
Joined: August 19th, 2008, 8:23 pm
Location: Near London, UK
eBay: arcave

Re: MAME scanline/shadowmask simulation

Post by Pete »

When you come down to mine you need to show me all this stuff.
User avatar
cools
Armed Police Buttrider
Posts: 13457
Joined: August 17th, 2008, 4:49 pm
Location: Wales, United Kingdom
eBay: hordarian
Initials: CLS

Re: MAME scanline/shadowmask simulation

Post by cools »

No prob :)

Wouldn't be the first time I've spent hours at a meet messing with MAME configs :oops:
Image
Post Reply