Jump to content
  • Announcement

    The HyperSpin 2 early access 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 in MAMEUIFX 162 is very improved


Metalzoic

Recommended Posts

Posted

These Jezze changes make a huge improvement to how it looks.

However does anyone know what ShadowMask settings should be now and which shadowmask is best to use? I used crt_shadow_mask.png before, but now it makes it super massive on the screen.

Posted

Ah, found the answer in this post from Jezze!

http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=341036&page=0&view=expanded&sb=5&o=&fpart=1&vc=1

He made big changes to how the Shadow Mask X/Y settings work. My old setting were in the 100's, I set them to 6 and it fixed it.

 

Short answer:


Code:

shadow_mask_texture slot-mask.png
shadow_mask_x_count 6
shadow_mask_y_count 6
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875


Long answer:

Direct3D uses textures with a size of power-of-two, which means every texture will be extended to the next power-of-two; e.g. 48x48 will be extended to 64x64. To get a complete tile of the slot-mask you need 12x12 pixel, starting at the left upper corner. Now a simple division...

12 / 64 = 0.1875

... and you have the size of the tile in uv-coordinates.

What's about the xy-count? In previous versions of the shader you could specify how many times the uv-sized texture should be tiled. Now you can specify how large one tile should be displayed on the screen.

In this example the 12x12 pixel large tile will be displayed as 6x6 pixel on your screen. In other words you can scale the mask.


Unfortunately, a large prescale is required to get a clear result. The slot-mask and the adapture-grill should be used with a prescale of at least 6, the shadow mask can be used with a prescale of 4. A smaller prescale will result in a blurry mask.

 

 

Archived

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

×
×
  • Create New...