How to remove blur in fonts and in fullscreen mode?

Discussion in 'RGSS Script Requests' started by Andrea87Sky, Sep 27, 2019.

  1. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    I recently noticed that the fullscreen mode resizes everything, but blurry. Also, the pixeled fonts I use are blurry too, how to fix these two problems? (P.S: these two problems are not depending each-other, i mean, they are two different blurry problems.)
     
    #1
  2. Soulrender

    Soulrender Veteran Veteran

    Messages:
    225
    Likes Received:
    110
    First Language:
    Poland
    Primarily Uses:
    RMMV
  3. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    #3
  4. Soulrender

    Soulrender Veteran Veteran

    Messages:
    225
    Likes Received:
    110
    First Language:
    Poland
    Primarily Uses:
    RMMV
    Sorry, didn't noticed.
     
    #4
  5. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,304
    Likes Received:
    12,516
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    Blur is an artifact of resizing, and it usually exists anytime things are made bigger as the screen has to guess what the missing pixels are. About the only way to reduce it (not eliminate it, elimination is impossible unless the game is made for exactly that size screen) is the following:

    1: Make your game resolution an integer multiple of the screen resolution. That will fix it for anyone with the same screen resolution as you have, but anyone using others will hit the same problem.

    2: Force the screen to change to match your resolution. That's what AAA games do to reduce it. That will probably require some system code to fix it though, as you'll need a way to call Windows to force it to run at the same resolution as your game. Though if you use 640 x 480 you can force it to run at that resolution via the administrator settings on your PC.

    Either way, it will only reduce it. The only fool proof solution is to make a version for every resolution you want the game to run on.
     
    #5
    Engr. Adiktuzmiko and Kauzz like this.
  6. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    Uhh i'm not so expert on these things but, thanks. Anyway what about the fonts?
     
    #6
  7. DerVVulfman

    DerVVulfman Resident Werewolf Veteran

    Messages:
    309
    Likes Received:
    149
    First Language:
    English
    Primarily Uses:
    RMXP
    The bitmap class renders the fonts. So they're drawn in the screen which you are scaling. Essentially and simply put... You're scaling already-rendered, already drawn text graphics too.
     
    #7
  8. gstv87

    gstv87 Veteran Veteran

    Messages:
    1,798
    Likes Received:
    824
    First Language:
    Spanish
    Primarily Uses:
    RMVXA
    can XP read the system resolution?
    if so, there could be a way to send the render call through an intermediate step that would reverse the font size and render at correct pixel size, when at full screen.
    but, I don't know about the rest of the interface.
     
    #8
  9. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    So there's not a solution?
     
    #9
  10. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    It can if I'm not wrong, but I'm not so good on these kind of things, heh.
     
    #10
  11. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,970
    Likes Received:
    10,663
    First Language:
    English
    Primarily Uses:
    RMVXA

    Andre87Sky, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you want to quote more than one person please use the Multiquote button otherwise the forum software automatically creates a new post for each quote.
    Thanks
     
    #11
  12. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    Oh, sorry.
     
    #12
  13. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,970
    Likes Received:
    10,663
    First Language:
    English
    Primarily Uses:
    RMVXA
    NP. The forum software has some odd quirks to it which take a bit of getting used to.
     
    #13
  14. Andrea87Sky

    Andrea87Sky Just a random musician/coder. Veteran

    Messages:
    81
    Likes Received:
    1
    Location:
    Sicily
    First Language:
    Italian
    Primarily Uses:
    RMXP
    Still need to know if it's possible then to do it or it's not.
     
    #14
  15. DerVVulfman

    DerVVulfman Resident Werewolf Veteran

    Messages:
    309
    Likes Received:
    149
    First Language:
    English
    Primarily Uses:
    RMXP
    Just as you noted in your original post, fullscreen mode resizes everything. Now you felt that the blur of the screen and the blur of the fonts are independent of each other and separate issues. But they are not. The fonts are rendered by the bitmap class, a master hidden class that most graphics utilize, Sprites import graphics from bitmaps. Windows use the bitmap erase function. Tilesets utilize other aspects. And that's just touching it.

    Now I think I know what gstv87 was suggesting, to somehow have fonts re-render with a new size. But he is assuming that turning a 640x480 game screen into a fullscreen in a 1920x1024 display would make the actual window 1920x1024. But no. Your display is temporarily downgrading itself to the 640x480 scale. So his thought of redrawing it at a correct pixel size wouldn't work. The pixel size is correct for the temporary fullscreen resolution.

    So in essence... nope. But the original Diablo was one kick-ass game and was at 640x480 resolution
     
    #15

Share This Page