Is it possible to disable dithering in PS1 games using codes?

Discussion in 'Sony Programming and Development' started by Shenmue_Trilogy, May 15, 2016.

  1. Shenmue_Trilogy

    Shenmue_Trilogy Active Member

    Joined:
    Oct 29, 2015
    Messages:
    29
    Likes Received:
    21
    You know that annoying dithering effect which was back in the days not a huge factor due to bad image quality thanks to composite cables. But nowadays using rgb or component cables it makes the effect more visable and annoying:

    [​IMG]

    It is possible to disbale that effect on original hardware using codes?
     
    gwald likes this.
  2. Colek

    Colek Active Member

    Joined:
    Feb 17, 2016
    Messages:
    47
    Likes Received:
    19
    Location:
    Poland
    Got bigger preview by any chance?
     
  3. Shenmue_Trilogy

    Shenmue_Trilogy Active Member

    Joined:
    Oct 29, 2015
    Messages:
    29
    Likes Received:
    21
    Sorry here is another example of the dithering effect:

    [​IMG]
     
  4. DeChief

    DeChief Rustled.

    Joined:
    Jan 25, 2014
    Messages:
    1,004
    Likes Received:
    222
    Location:
    Tokyo
    I can't quite see what you're talking about, it looks like a regular PS1 game to me.
     
  5. Fandangos

    Fandangos <B>Site Supporter 2013</B>

    Joined:
    Sep 19, 2012
    Messages:
    578
    Likes Received:
    17
    He's talking about this:

    [​IMG]

    See the pattern with the colors? This is dithering.


    Also to reply, I don't think this is possible because the PS1 uses a 16bit frame buffer.
    But probably someone with waaaayy more knowledge than me can point the limitations of the system for you and why it can't be done.

    Also just wanted to point the curious fact that you want to remove it and I was hopping someone could bring it to PC emulation. :)
     
    gwald likes this.
  6. Shenmue_Trilogy

    Shenmue_Trilogy Active Member

    Joined:
    Oct 29, 2015
    Messages:
    29
    Likes Received:
    21
    Yep, I am talking about the small squares/pixels filter which are not a part of the polygon graphics:

    [​IMG]
     
  7. gwald

    gwald Net Yaroze '98

    Joined:
    Jan 6, 2016
    Messages:
    61
    Likes Received:
    9
    Location:
    Melbourne, Australia
    TMK, there's no 'filter' on the PSX VRAM which does that natively.
    It's not like the N64 which has a built in anti-aliasing.
    Are these images from an emulator's VRAM or is it going out via a PSX RCA into a capture card?
     
  8. Gemini

    Gemini Retro developer

    Joined:
    Apr 1, 2008
    Messages:
    384
    Likes Received:
    58
    Location:
    Italy
    There is one bit in the drawing structures that can disable dithering, which I is indeed possible to suppress via cheat codes.
     
    tkeely4777 likes this.
  9. Shenmue_Trilogy

    Shenmue_Trilogy Active Member

    Joined:
    Oct 29, 2015
    Messages:
    29
    Likes Received:
    21
    Gemini

    That sounds interisting. So how can i find that bit/cheatcode? ^^ Try&Error? Anyone who tried to find it?
     
    Last edited: May 16, 2016
  10. Gemini

    Gemini Retro developer

    Joined:
    Apr 1, 2008
    Messages:
    384
    Likes Received:
    58
    Location:
    Italy
    You need to find where it populates the DR_DRAW structures used. Set the dithering attribute to 0 and most of it should go away.
     
    tkeely4777 likes this.
  11. tkeely4777

    tkeely4777 Rising Member

    Joined:
    Mar 9, 2013
    Messages:
    57
    Likes Received:
    4
    Is this theoretically possible through hex-editing the game executable, thus making the change permanent? Also, can you recommend any games to test?
     
  12. Gemini

    Gemini Retro developer

    Joined:
    Apr 1, 2008
    Messages:
    384
    Likes Received:
    58
    Location:
    Italy
    Most likely doable, since the dither value is set to 1 to enable it. Change that to 0 wherever the game sets it and it's permanent. There may be a few more cases where it changes internal resolution and settings, but that's most likely related to other parts of a game.
     

Share This Page