MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM
Re: Dithering
01/04/20 09:37 PM


Regarding dithering:



The Megadrive (Genesis) made use of dithering specifically because being displayed through a composite connection would tend to blur colors together horizontally.

Making MAME "dither" the output is exactly what you don't want.

Instead, what you want is to use one of the post-processing shaders that MAME supports, with a few tweaks to handle the resolution difference between the Megadrive and the NES (which is what the NTSC simulation was designed for).

So yeah, first things first.

Create a file in the following path, with the following name, relative to the MAME executable: ini/presets/source/megadriv.ini

Next, copy/paste the following data into it:


Code:


#
# NTSC POST-PROCESSING OPTIONS
#
yiq_enable 1
yiq_jitter 0.0
yiq_cc 3.57954545
yiq_a 0.0
yiq_b 0.5
yiq_o 0.0
yiq_p 1.0
yiq_n 2.0
yiq_y 6.0
yiq_i 1.2
yiq_q 0.6
yiq_scan_time 45.1
yiq_phase_count 2



Finally, when you run MAME, be sure to:

A) Run the 'genesis' driver, not the 'megadriv' driver, and
B) Run with the "-hlsl" parameter, to enable HLSL post-processing.

This all assumes that you are running on a Windows-based machine with a halfway-decent graphics card. If one or both of these things aren't the case, all bets are off.

But the end result is that this choppy-looking, obviously-dithered picture:



Will be smoothed out into something more akin to what you'd get on a real CRT, including various adjustments to color balance:



Share and enjoy!







Entire thread
Subject Posted by Posted on
* Dithering DJX 01/04/20 08:00 PM
. * Re: Dithering MooglyGuy  01/04/20 09:37 PM
. * Re: Dithering ICEknight  01/07/20 07:45 PM
. * Re: Dithering ICEknight  01/08/20 08:24 PM
. * Re: Dithering MooglyGuy  01/08/20 01:53 AM
. * Re: Dithering Envisaged0ne  01/08/20 02:40 AM
. * Re: Dithering ICEknight  01/08/20 05:31 PM
. * Re: Dithering MooglyGuy  01/08/20 02:59 AM
. * Re: Dithering ICEknight  01/08/20 05:52 PM
. * Re: Dithering R. Belmont  01/14/20 05:19 PM
. * Re: Dithering DJX  01/06/20 04:48 AM
. * Re: Dithering DJX  01/10/20 03:27 AM

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