Яндекс

Friday, February 6, 2015

Full-screen antialiasing

No FSAA:



Set FSAA:



The result:


As expected.

22 comments:

  1. This is looking amazing! Great work! Super glad I backed on IndieGoGo.

    ReplyDelete
  2. Firstly, thank you very much for these progress updates. They're very informative and useful for technical reference.

    Secondly, I think you should consider the possibility of using SMAA instead of FXAA. FXAA is somewhat outdated now, and tends to destroy texture detail. Not that this is a huge concern for N64 games, but if it were possible to use SMAA.

    Thirdly, you may want to implement some sort of restriction on whether games can use certain settings which might break them. For example, your widescreen hack will likely not play nice with games that support 16:9 natively. (Perfect Dark, for example.) However, this might make the plugin needlessly bloated.

    ReplyDelete
    Replies
    1. I'm very sure gonetz is just using MSAA'ed FBOs, FXAA and SMAA are irrelevant.

      Delete
    2. You right, I confused FXAA with FSAA. Cite "Multisampling, also known as multisample antialiasing (MSAA), is one method for achieving full-screen antialiasing (FSAA)".

      Delete
  3. FXAA is core OpenGL feature (for FBO), while SMAA is not. The difference between FXAA and SMAA is very subtle. N64 emulation is not the case where SMAA implementation is worth the efforts.

    I plan to implement per-game settings later.

    ReplyDelete
    Replies
    1. So long as FXAA gives good results, that's fine.

      In terms of per-game settings, what I meant was perhaps overriding the user if they try to enable or disable or otherwise change a setting which will definitely break a game. Or at least warn them somehow.

      Delete
  4. On an unrelated topic, gonetz, I was wondering whether LLE mode will support texture packs, or whether there's something preventing that happening.

    ReplyDelete
    Replies
    1. Texturing is low-level functionality. Texture packs work perfectly fine in LLE mode.

      Delete
  5. Hello I've a question Gonetz, I noticed you are trying to port some Bloom shader but I know the far better shader DolphinFX could you try to port it to your plugin ?

    https://github.com/Asmodean-/dolphin/blob/master/Data/Sys/Shaders/DolphinFX.glsl
    5xBR for 2D games would be good too. https://github.com/libretro/common-shaders

    ReplyDelete
  6. Bump mapping is also very good https://forums.dolphin-emu.org/attachment.php?aid=13087

    ReplyDelete
  7. Thanks for the links! DolphinFX is a powerful tool. May be later I'll try to make my code compatible with it.

    ReplyDelete
  8. I'm glad you like it, I forgot to link PS1 version http://forums.pcsx2.net/attachment.php?aid=46512

    ReplyDelete
  9. http://forums.pcsx2.net/Thread-Custom-Shaders-for-GSdx
    https://forums.dolphin-emu.org/Thread-dolphinfx-post-processing-suite-for-the-opengl-backend

    ReplyDelete
  10. Storybook/Sketch shaders https://forums.dolphin-emu.org/attachment.php?aid=12878

    ReplyDelete
  11. Hi Gonetz,

    This looks amazing! <3
    Keep up the great work!

    Are you going to implement vsync as well?

    ReplyDelete
    Replies
    1. vsync is platform dependent functionality:
      http://stackoverflow.com/questions/589064/how-to-enable-vertical-sync-in-opengl
      Plugin's build for Mupen64Plus allows to set vsync because the emulator takes care about graphics context management.
      As for other emus, I got no requests for that option. AFAIK, vsync is on by default on Windows.

      Delete
  12. Hello! does all of these features works well with textures?

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. normal mapping http://forums.pcsx2.net/attachment.php?aid=42967
    bump mapping https://forums.dolphin-emu.org/attachment.php?aid=12974
    https://forums.dolphin-emu.org/attachment.php?aid=12733
    sharpen complex 2 https://forums.dolphin-emu.org/attachment.php?aid=12791
    https://forums.dolphin-emu.org/attachment.php?aid=12583

    ReplyDelete
  16. https://forums.dolphin-emu.org/attachment.php?aid=13144

    ReplyDelete
  17. Thank you for sharing this information about the OpenGL graphics plugin. It's a great information to every developers.

    Nashville Graphic Design

    ReplyDelete