MAME HLSL CRT SCANLINE EMULATION PRESETS

The place for all discussion on gaming hardware
User avatar
emphatic
Posts: 7918
Joined: Mon Aug 18, 2008 3:47 pm
Location: Alingsås, Sweden
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by emphatic »

Just tried this and wow. I applaud you, sir.
Image | My games - http://www.emphatic.se | (Click) I have YEN stickers for sale
RegalSin wrote:Street Fighters. We need to aviod them when we activate time accellerator.
User avatar
Overkill
Posts: 512
Joined: Mon Aug 22, 2011 6:11 pm
Location: Portugal

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Overkill »

I think one of this:

hlsl_snap_width 2048
hlsl_snap_height 1536 try change this value to see what happens

but let user cools see it first, because is more inside this HLSL thing than me
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

All that will do is change the screenshot size when pressing alt and f12
Image
User avatar
Overkill
Posts: 512
Joined: Mon Aug 22, 2011 6:11 pm
Location: Portugal

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Overkill »

Ho, sorry then, its just i haven't see anything else for screen size.
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

Nor me. Is it stock MAME or a third party compilation? I've never seen the menu bar at the top of the stock one.
Image
cskcsk
Posts: 60
Joined: Tue Mar 11, 2008 5:12 pm

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cskcsk »

cools wrote:Nor me. Is it stock MAME or a third party compilation? I've never seen the menu bar at the top of the stock one.
Oh, i forget to mention that i was using the hlsl settings in mess. I suppose it does not work the same.
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

It should do if it's the latest UME.
Image
cskcsk
Posts: 60
Joined: Tue Mar 11, 2008 5:12 pm

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cskcsk »

cools wrote:It should do if it's the latest UME.
Turns out it was the menu bar that was causing the scanline weirdness, just had to not show it when in full screen. :oops:
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

I was wondering if it was the cause, but it looked like it was overlaying the image rather than squashing it. Good news.
Image
cskcsk
Posts: 60
Joined: Tue Mar 11, 2008 5:12 pm

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cskcsk »

Looks really really good, but the colours dont quite "pop". Lacks the glow of a crt.
Image
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

I didn't touch brightness, contrast, gamma, saturation or colour simply because they're highly dependent on the screen you're using and how it's calibrated.
Image
User avatar
moh
Posts: 1617
Joined: Tue Oct 18, 2011 9:26 pm
Location: Canada

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by moh »

noob question:

where exactly am i putting all this information? my mame folder has an 'hlsl' folder inside it, but its completely empty. i ams lost ,_,
GaijinPunch wrote:Ketsui with suction cup.
User avatar
Thjodbjorn
Posts: 439
Joined: Mon Apr 12, 2010 2:36 pm
Location: Minnesota

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Thjodbjorn »

moh wrote:noob question:

where exactly am i putting all this information? my mame folder has an 'hlsl' folder inside it, but its completely empty. i ams lost ,_,
I am also a noob, so maybe I can help. You just put it in the main config file.

Like, just paste it in there, but make sure it has the

#
# DIRECT3D POST-PROCESSING OPTIONS
#

in there. Your config file may already have something there, but you can overwrite it.
User avatar
moh
Posts: 1617
Joined: Tue Oct 18, 2011 9:26 pm
Location: Canada

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by moh »

hmm...it seems like whenever I overwrite it, it just reverts back to

Code: Select all

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default" />
</mameconfig>
any suggestions? :(
GaijinPunch wrote:Ketsui with suction cup.
User avatar
Thjodbjorn
Posts: 439
Joined: Mon Apr 12, 2010 2:36 pm
Location: Minnesota

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Thjodbjorn »

Ack. That's officially over my noob head. :(
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

MAME.INI
Image
User avatar
emphatic
Posts: 7918
Joined: Mon Aug 18, 2008 3:47 pm
Location: Alingsås, Sweden
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by emphatic »

If you don't have a mame.ini, create a .bat file like this and run it:

Code: Select all

mame -createconfig
The "mame" will have to match the name of your executable, like "shmupmame64_v42" or what you're running.
Image | My games - http://www.emphatic.se | (Click) I have YEN stickers for sale
RegalSin wrote:Street Fighters. We need to aviod them when we activate time accellerator.
User avatar
Softdrink 117
Posts: 562
Joined: Sat Sep 15, 2012 4:15 am
Location: Los Angeles
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Softdrink 117 »

If you're on windows, you can also use the command prompt.

First, navigate to the directory where your mame.exe is located. This should be as simple as copy-pasting the file path and using the cd command; you should get something similar to the following (the specific path will obviously be different depending on where you have your files stored):

Code: Select all

cd C:\Users\SFT\Documents\MAME
Then, once you're in the correct directory, use -cc on the mame executable (name should match your mame executable exactly) to create the configuration file. This should look similar to the following:

Code: Select all

mame.exe -cc
This does exactly the same thing as what emphatic suggested, just another way of doing it.
1CC List | youtube | twitch
I love Ibara.
User avatar
Thjodbjorn
Posts: 439
Joined: Mon Apr 12, 2010 2:36 pm
Location: Minnesota

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Thjodbjorn »

cools wrote:MAME.INI
Ugh. Enough of a noob that I can't keep the file names straight. Thanks! :)
User avatar
ThEmperorIsDead
Posts: 51
Joined: Tue Jan 22, 2013 2:32 pm
Location: London Maximum Death Anger

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by ThEmperorIsDead »

Just started using these settings for my office where I only have a LCD.
Looks great, very nice work!
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

Code: Select all

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_ini_read             0
hlsl_ini_write            0
hlslini                   %g
hlsl_prescale_x           3
hlsl_prescale_y           3
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.000000
scanline_bright_offset    0.600000
scanline_jitter           0.000000
defocus                   0.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
I've messed around with the brightness and contrast settings in UME and it's not possible to find a sane setting that works for all - brightness 1.01, contrast 1.2 is fantastic for SMS but gives a horrible picture with arcade stuff. So best left alone.
Last edited by cools on Thu May 23, 2013 7:36 am, edited 1 time in total.
Image
User avatar
Overkill
Posts: 512
Joined: Mon Aug 22, 2011 6:11 pm
Location: Portugal

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Overkill »

cools is that your last settings to update on MAME or its just for use in mess/ume?
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

Both.

I'm wondering if I can be bothered to bug the MAME guys to include them as the defaults (switched off, of course)
Image
User avatar
Overkill
Posts: 512
Joined: Mon Aug 22, 2011 6:11 pm
Location: Portugal

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Overkill »

Well, as they included other things from other people outside the mame itself, i think this one will be another great add on. Unless they still want MAME to be "light" as in the beggining, as this needs a more powerfull PC
User avatar
lettuce
Posts: 1334
Joined: Wed Jun 22, 2011 7:10 pm
Location: Bedfordshire, England.

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by lettuce »

I wonder how NES games would look with cools above settings?
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

Overkill wrote:Well, as they included other things from other people outside the mame itself, i think this one will be another great add on. Unless they still want MAME to be "light" as in the beggining, as this needs a more powerfull PC
I'm thinking just as the default for HLSL, but disabled. At the moment, enabling HLSL does nothing, you have to configure it.

I'll be trying NES myself at some point.

Gamegear/SMS/MD all look good. Even though GG wasn't a CRT.
Image
User avatar
lettuce
Posts: 1334
Joined: Wed Jun 22, 2011 7:10 pm
Location: Bedfordshire, England.

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by lettuce »

I also find adding some slight saturation helps (1.50000) with the CRT looks also.
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

Just tried playing around with saturation - even on low settings it wipes out detail. Sonic 2 on the SMS, the first level background on the bottom of the level gets totally mangled by it.
Image
User avatar
Overkill
Posts: 512
Joined: Mon Aug 22, 2011 6:11 pm
Location: Portugal

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by Overkill »

Finally HLSL is going on the right way. In the beggining i saw many users posting their settings in the MAME fórum, and it seems people were trying to simulate a cracked old monitor, instead of a good rgb monitor. Maybe the majority of them don't know what a real rgb monitor look like.
User avatar
cools
Posts: 2055
Joined: Mon Nov 26, 2007 4:57 pm
Location: South Wales
Contact:

Re: MAME HLSL CRT SCANLINE EMULATION PRESETS

Post by cools »

I'm done with those settings.

Alter pincushion to taste, and brightness/contrast/saturation depending on your screen. Suggest using a CPS2 colour test to set them up correctly.
Image
Post Reply