Jump to content
  • Announcement

    The HyperSpin 2 beta is here!

    We’re starting the first public testing phase with Platinum Members to keep the scope manageable while we test the current feature set and begin to add more. In the future, we’ll provide a version for basic members as well.  On behalf of the entire HyperSpin team, we look forward to another exciting adventure with our community.

hlsl scan lines. Can't find any solid info on it! frustrating


irthwirm

Recommended Posts

Posted

I've search everywhere, youtube, forurms and there is no how to steps. Just the hlsl code you put in the meme.ini file which i've done with no results. Is there a program that does this for you. I'm using mameplus64 to create the mame.ini file. That's the only way I can seem to find a mame.ini file. It's in the root folder of the mameplus64. That's where mamepUI puts it. I have to be missing a step but again there is no solid walk throughs that I can find which is amazing to me since this a huge factor in improving the quality of a LCD screen emulation. Please help. Also can you apply these same affects to hyperspin or only the png images? Just to be consistent.

this is the code I'm trying to use

# DIRECT3D POST-PROCESSING OPTIONS

#

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 1366

hlsl_snap_height 768

shadow_mask_alpha 0.15

shadow_mask_texture aperture.png

shadow_mask_x_count 1280

shadow_mask_y_count 720

shadow_mask_usize 0.09375

shadow_mask_vsize 0.09375

curvature 0.0

pincushion 0.0

scanline_alpha 1.00

scanline_size 1.00

scanline_height 0.7

scanline_bright_scale 1.5

scanline_bright_offset 0.60

scanline_jitter 0.05

defocus 0.8,0.8

converge_x 0.0,0.0,0.0

converge_y 0.0,0.0,0.0

radial_converge_x 0.0,0.0,0.0

radial_converge_y 0.0,0.0,0.0

red_ratio 1.0,0.0,0.0

grn_ratio 0.0,1.0,0.0

blu_ratio 0.0,0.0,1.0

saturation 1.3

offset 0.0,0.0,0.0

scale 1.0,1.0,1.0

power 1.0,1.0,1.0

floor 0.03,0.03,0.03

phosphor_life 0.0,0.0,0.0

yiq_enable 0

yiq_cc 3.59754545

yiq_a 0.5

yiq_b 0.5

yiq_o 0.0

yiq_p 1.0

yiq_n 1.0

yiq_y 3.0

yiq_i 1.2

yiq_q 0.6

yiq_scan_time 52.6

yiq_phase_count 2

Posted

Okay, it looked like I had to have Directx installed and then the hlsl code I put in the mame.ini worked. Super laggy so I'm going to try some other stuff. But the DirextX install is key. Not really mentioned anywhere. I just heard a couple of people vaguely mention it. But seems to be a key step.

Posted

I found these new settings online and they look freaking awesome. Except Mame becomes completely unplayable. Anyone have any insight? I have a i5 2500 at 3.3 ghz, 4 gigs of ram. I'm running off the onboard Graphics card. Not sure if that's the problem but from what I heard mame doesn't use the graphics card. Not sure if utilizing hlsl might change that though and I might have to get myself a graphics card or it's just metalling with some other settings.

Here are the settings for you mame.ini

#

# DIRECT3D POST-PROCESSING OPTIONS

#

hlsl_enable 1

hlslini hlsl

hlslpath hlsl

hlsl_prescale_x 0

hlsl_prescale_y 0

hlsl_preset -1

hlsl_snap_width 1920

hlsl_snap_height 1200

shadow_mask_alpha 0.100000

shadow_mask_texture aperture.png

shadow_mask_x_count 320

shadow_mask_y_count 240

shadow_mask_usize 0.093750

shadow_mask_vsize 0.093750

curvature 0.050000

curvature 0.050000

pincushion 0.050000

scanline_alpha 0.600000

scanline_size 1.000000

scanline_height 0.700000

scanline_bright_scale 1.500000

scanline_bright_offset 0.600000

scanline_jitter 0.000000

defocus 1.500000,1.500000

converge_x 0.000000,0.000000,0.000000

converge_y 0.000000,0.000000,0.000000

radial_converge_x 0.000000,0.000000,0.000000

radial_converge_y 0.000000,0.000000,0.000000

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.050000

offset 0.000000,0.000000,0.000000

scale 1.000000,1.000000,1.000000

power 2.200000,2.200000,2.200000

floor 0.020000,0.020000,0.020000

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

Posted

HLSL is the only mame feature to use videocard, actually hlsl is a videocard's shader. Intel's IGP can be a problem, it sucks in terms of features support and drivers. With my htpc i could not use HLSL before upgrading videocard from x1550 to 9800gtx

Also consider this:

hlsl_prescale_x 0

hlsl_prescale_y 0

yiq_enable 0

These are really "demanding" settings. Yiq is an overkill, dont' use it. Prescale on Y and X improves graphic but it can kill performance.

If you use "shadow_mask" consider this to avoid "moire" effect.

hlsl_snap_width 1920

hlsl_snap_height 1200

This must fit your screen resolution

shadow_mask_x_count 320

shadow_mask_y_count 240

This must fit the original resolution of the game you're running (yes, hlsl setting should be game-dependant).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...