MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

anikom15
Instigator/Local CRT Guru
Reged: 04/11/16
Posts: 287
Send PM
Re: slot mask.png
09/03/17 12:51 AM


Note that a 'dot' here means one cluster of red, green, and blue subdots. Using trigonometry the dimensions of your display is around 517 mm x 323 mm. Let's say three pixels of your screen make up one dot. That would give you a total of 640 dots across 517 mm, giving you a dot pitch of 0.8 mm. This is pretty large. Typical dot pitches range from 0.4 to 0.2 mm.

You can't really make your shadow mask any smaller than three pixels per dot because you will get some distortion because you're now blending the individual red, green, and blue texels. So you can either turn the shadow mask off or deal with a more blown up look. Here are the HLSL settings you would use:

shadow_mask_texture slot-mask.png
shadow_mask_x_count 24
shadow_mask_y_count 24
shadow_mask_usize 1.0
shadow_mask_vsize 1.0

This will downsample slot-mask.png by two (the image size is 48x48). slot-mask.png uses six pixels for each dot so you will use three pixels per dot. You won't want to use more than five pixels per dot because that's the point where your shadow mask resolution will be below the game's resolution, assuming 320x240. To figure out this point just divide the effective screen resolution by the game resolution, e.g. 1600 / 320 = 5 and 1200 / 240 = 5.


Let me know if you have any other questions.







Entire thread
Subject Posted by Posted on
* slot mask.png John Mars 09/01/17 05:50 PM
. * Re: slot mask.png anikom15  09/01/17 06:23 PM
. * Re: slot mask.png John Mars  09/01/17 06:40 PM
. * Re: slot mask.png anikom15  09/01/17 08:44 PM
. * Re: slot mask.png John Mars  09/02/17 02:24 AM
. * Re: slot mask.png anikom15  09/03/17 12:51 AM
. * Re: slot mask.png R.Coltrane  09/03/17 03:15 PM
. * Re: slot mask.png John Mars  09/03/17 05:52 PM
. * Re: slot mask.png anikom15  09/03/17 06:08 PM
. * Re: slot mask.png John Mars  09/03/17 08:23 PM
. * Re: slot mask.png John Mars  09/03/17 08:28 PM
. * Re: slot mask.png anikom15  09/04/17 06:02 AM

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