MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

lamprey
MAME Fan
Reged: 12/01/11
Posts: 238
Send PM
Re: HLSL effect... (edited)
01/16/15 03:09 AM


Buchi,

Assuming you have the base-line mame and have already created the mame.ini file, here are some settings to get you goin for HLSL. Youll need to tweak them to your liking:


Code:

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
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.0
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.03
pincushion 0.03
scanline_alpha 1.0
scanline_size 1.0
scanline_height 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.0
defocus 0.0,0.0
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.15
offset 0.0,0.0,0.0
scale 0.95,0.95,0.95
power 0.8,0.8,0.8
floor 0.01,0.01,0.01
phosphor_life 0.0,0.0,0.0



I think the scanline_alpha can only be set to max of 1.0 in the MAME UI (tab -> Slider Controls), but if you set it in the mame.ini file you can set it higher. If you want a more pronounced scanline, try 2.0 instead of 1.0.

Also, If you plan on using a shadow mask, I'd suggest getting a modified post.fx file that "sets" the shadow mask U and V size for you. Here is a link to that:
http://www47.zippyshare.com/v/95165141/file.html

Here is a link to the Shmups forum discussing HLSL:
http://shmups.system11.org/viewtopic.php?f=6&t=45026


Hopefully, this will get you going!







Entire thread
Subject Posted by Posted on
* HLSL effect request (sharp image, scanlines only) Buchi 01/11/15 04:18 AM
. * Re: HLSL effect request (sharp image, scanlines only) Traso  01/12/15 09:49 AM
. * Re: HLSL effect request (sharp image, scanlines only) Buchi  01/12/15 02:02 PM
. * Re: HLSL effect request (sharp image, scanlines only) lamprey  01/12/15 07:02 PM
. * Re: HLSL effect... (edited) Traso  01/13/15 09:33 AM
. * Re: HLSL effect... (edited) MooglyGuy  01/14/15 12:15 AM
. * Re: HLSL effect... (edited) Buchi  01/14/15 01:49 AM
. * Re: HLSL effect... (edited) Sune  01/16/15 06:30 AM
. * Re: HLSL effect... (edited) Traso  01/14/15 08:43 AM
. * Re: HLSL effect... (edited) Buchi  01/14/15 11:55 PM
. * Re: HLSL effect... (edited) lamprey  01/15/15 12:39 AM
. * Re: HLSL effect... (edited) Buchi  01/15/15 12:58 AM
. * Re: HLSL effect... (edited) Traso  01/15/15 05:26 AM
. * Re: HLSL effect... (edited) Buchi  01/15/15 04:21 PM
. * Re: HLSL effect... (edited) lamprey  01/16/15 03:09 AM
. * Re: HLSL effect... (edited) lamprey  01/16/15 03:16 AM
. * Re: HLSL effect... (edited) Buchi  01/16/15 02:51 PM
. * Re: HLSL effect... (edited) Traso  01/16/15 09:33 PM
. * Re: HLSL effect... (edited) lamprey  01/14/15 06:57 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 19 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3427