Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Upscaling of fullscreen mode in mobile Chrome browser

Discussion in 'Web' started by DanOrgan, Oct 14, 2019.

  1. DanOrgan

    DanOrgan

    Joined:
    Mar 13, 2018
    Posts:
    6
    Hi. I want to discuss the upscaling problem, it is actual only for mobile browsers (or for mobile browser emulator).
    I've noticed it in a few Unity releases, from 2018.2 to 2018.4.10f1.
    As you may know, Screen.fullScreen is not working for mobile browsers (but working for desktop). But with Default WebGL Template we have a button to trigger a fullscreen mode externally. Yeah, this button is working for mobile browsers too, but it cause an upscale effect on a whole image. As a result, both 2d canvas elements and 3d models became blurry.
    Why is it? Do you know any workaround for this?
     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    This sounds like it could be due to a CSS pixels vs hardware pixels difference, i.e. "standard DPI" vs "high DPI"/"retina" display adaptation. By default Unity renders to standard DPI, but recently there is an option to adjust to use high DPI instead. See e.g. here https://forum.unity.com/threads/webgl-on-retina.540297/
     
  3. DanOrgan

    DanOrgan

    Joined:
    Mar 13, 2018
    Posts:
    6
    Thanks. It is probably fixed in 2019.3 beta, I need to check it myself.