MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

jclampy
MAME Fan
Reged: 09/16/11
Posts: 105
Send PM
Re: HLSL
10/14/11 02:23 PM


ilya-v
> > The 'shadow mask' is applied over the original games resolution right? So if game
> is
> > 320x240 then 'shadow mask' should be 320x240.
>
>
> Not exactly.
>

Hmm, this from the official Mame HLSL documentation;
shadow_mask_x_count 1+ The count of shadow mask elements, X (usually 640-ish)
shadow_mask_y_count 1+ The count of shadow mask elements, X (usually 480-ish)
http://mamedev.org/source/docs/hlsl.txt.html
or here http://mameworld.info/easyemu/mameguide/options/93e.html

These following quotes from 'Just Desserts' on a MESS board;
"...but it looks like you set shadow_mask_x_count and shadow_mask_y_count to be the number of visible pixels in your display. It should be the number of visible dots in the original display's shadow mask..."
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=69861#Post69861

Maybe he is touching on what you are refering too here further down in that same thread?
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=69937#Post69937

and here he has another description;
"shadow_mask_x_count and shadow_mask_y_count: Here's something that some emulators probably get wrong, which is that there is not a 1:1 ratio of pixels being displayed by a device to shadow mask dots. Indeed, since a CRT is just a physical device, the number of dots on the X axis and Y axis are completely fixed. This is part of what causes the classic moiré effect that you can see on a real CRT, and what causes the (currently much more prominent) moiré. If you don't like moiré, you should be able to just set shadow_mask_x_count and shadow_mask_y_count to an even multiple of the emulated machine's resolution."
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=70264#Post70264

and lastly here which pretty much sums up my original comment;
"...This is not accurate to the arcade in any way, since monitors always had a fixed-size shadow mask, but to get the "best of both worlds", select an X and Y count that's an exact multiple of the arcade game's resolution. For example, if the game was (hypothetically) 512x384, try a shadow mask of either 512x384..."
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=69866#Post69866

I think I understand what you are trying to do, but I don't think it will do what you are trying to do because the internal settings/formulas of the HLSL filter were not made to be used like that.

Make sure you are using the aperture.png file from here;
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=69868#Post69868

Also, have you thought that it could be values of other HLSL settings or even a combination that maybe causing what you are seeing?

Honestly, I think if you use values that are outside the intended realms of what were originally intended when the HLSL filter was originally created then you are bound to run into problems or artifacts. Just my opinion.

Would love to hear from anyone connected with the development team. I get the idea 'Just Desserts' from that other board is involved with the HLSL project somehow so maybe you should post there as well?


Read about my latest custom HLSL setup here;
http://gamingnos.blogspot.com/







Entire thread
Subject Posted by Posted on
* HLSL mesk 09/07/11 09:30 PM
. * HLSL support note R. Belmont  10/14/11 09:37 PM
. * Re: HLSL jclampy  10/14/11 10:59 AM
. * Re: HLSL ilya-v  10/14/11 12:16 PM
. * Re: HLSL jclampy  10/14/11 12:26 PM
. * Re: HLSL ilya-v  10/14/11 12:39 PM
. * Re: HLSL jclampy  10/14/11 12:57 PM
. * Re: HLSL ilya-v  10/14/11 01:39 PM
. * Re: HLSL jclampy  10/14/11 02:23 PM
. * Re: HLSL ilya-v  10/14/11 03:39 PM
. * Re: HLSL ilya-v  10/14/11 06:04 PM
. * Re: HLSL jclampy  10/15/11 12:08 AM
. * Re: HLSL John IV  10/15/11 01:27 AM
. * Re: HLSL jclampy  10/15/11 11:27 PM
. * Re: HLSL Mozii  09/26/11 07:00 AM
. * Re: HLSL B2K24  09/26/11 08:14 AM
. * Re: HLSL mesk  09/26/11 05:52 PM
. * Re: HLSL ilya-v  10/12/11 06:37 PM
. * Re: HLSL jclampy  10/14/11 06:52 AM
. * Re: HLSL ilya-v  10/14/11 09:00 AM
. * Re: HLSL B2K24  10/14/11 08:27 AM
. * Re: HLSL jclampy  10/14/11 10:41 AM
. * Re: HLSL DaffyDuck  09/18/11 04:43 PM
. * Re: HLSL jclampy  09/20/11 10:40 AM
. * Re: HLSL R. Belmont  09/18/11 05:49 PM
. * Re: HLSL Heihachi_73  09/19/11 08:37 AM
. * Re: HLSL DaffyDuck  09/18/11 06:11 PM
. * Re: HLSL Ziggy100  09/18/11 07:19 PM
. * Re: HLSL DaffyDuck  09/18/11 07:35 PM
. * Re: HLSL jclampy  09/17/11 04:55 AM
. * Re: HLSL Zaghadka  09/07/11 10:26 PM
. * Re: HLSL mesk  09/07/11 10:56 PM
. * Re: HLSL TafoidAdministrator  09/08/11 03:58 AM
. * Re: HLSL Acidolitis  09/09/11 03:25 AM
. * Re: HLSL mesk  09/09/11 04:50 AM
. * Re: HLSL Acidolitis  09/10/11 01:28 AM
. * Re: HLSL jufis  09/11/11 04:20 PM
. * Re: HLSL Zaghadka  09/08/11 12:35 AM
. * Re: HLSL Malmanian  09/07/11 10:15 PM

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