1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

GM:S 1.4 Game Resolution

Discussion in 'Programming' started by Imperial, Jun 29, 2016.

Tags:
  1. Imperial

    Imperial Member

    Joined:
    Jun 29, 2016
    Posts:
    136
    How to change the Game Resolution In Runtime as the game settings/options

    we should change the view_wview[view_current] or view_wport[view_current] ?
     
  2. RangerX

    RangerX Member

    Joined:
    Jun 20, 2016
    Posts:
    2,602
    Imperial likes this.
  3. Imperial

    Imperial Member

    Joined:
    Jun 29, 2016
    Posts:
    136
    How to actually Implement the scaling to make the game from 1200x675 to 1920x1080
     
  4. RangerX

    RangerX Member

    Joined:
    Jun 20, 2016
    Posts:
    2,602
    You mean your view size is 1200x675 ?
    If that's the case, your game will always look distorted if you scale it up to 1920x1080.
     
    Imperial likes this.
  5. Imperial

    Imperial Member

    Joined:
    Jun 29, 2016
    Posts:
    136
    but the both have the same Aspect Ratio
     
  6. elementbound

    elementbound Member

    Joined:
    Jun 30, 2016
    Posts:
    114
    Both resolutions are 16:9, indeed. However, to scale from 1200x675 to 1920x1080, one stretched pixel should occupy an 1.6x1.6 pixel area. Since only whole pixels can be drawn, most stretched pixels will occupy a 2x2 area, while others a 2x1*. This means that the stretched version's pixels will look uneven, thus distorted.

    If you want to avoid distortion, use whole numbers for scaling. For example, use 2x, 3x, 4x, etc., so your new resolution becomes 2400x1350, 3600x2025, 4800x2700. Although these are really uncommon.

    * - I'm not exactly sure about these numbers, they are just illustratory. Feel free to correct me on this,
     
    mariospants and RangerX like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice