Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

low graphics quality when my game built for WebGL

Discussion in 'WebGL' started by freedom667, Sep 4, 2018.

  1. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    Firtsly, I opened the thread in wrong section, so I'm sorry for that. Anyway, I have a game for WebGL. I increased all graphic settings but when i build the game and open, seems low graphics. images and texts are blurly or broken edges. Why is this happening? I tried many things but I could not get positive result. the graphics are still low and this problem happened in 2018.2.5f.

    Please help. Thanks
     
  2. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    Nobody knows that?
     
  3. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    687
    Need more description of the problem. Are you using any features not supported in WebGL? Did you try on different web browsers? Safari and Edge both do not support WebGL 2.0.
     
  4. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I have Chrome. my app works with this browser. I did not try another else. actually problem is just about resolution. the resolution is good. so it is high resolution in editor and game view but at release, happening low resolution like 640x480 or lower. I using WebGL 2.0
     
    Last edited: Sep 6, 2018
  5. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    869
    I had people complain about my WebGL graphics too, but it looked fine to me.

    Can you post a pic of the graphics you think doesnt look good?
     
  6. fastgamedev

    fastgamedev

    Joined:
    Mar 27, 2014
    Posts:
    79
    Let me guess, are you using a mac with Retina display for development?
     
  7. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    yes I'm using Mac but how can i learn is my development retina display?
     
  8. sumpfkraut

    sumpfkraut

    Joined:
    Jan 18, 2013
    Posts:
    241
    In player settings you can set a "Default Canvas With/Height"
    What are your values? Try with higher values. (I use 1920x1080 WxH)
     
  9. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    my res is 1920x1080 too. My canvas is canvas scaler and reference res is 1024x768. But I tried another scene as 1920x1080 reference resolution at canvas scaler and it is low resolution at release again
     
  10. fastgamedev

    fastgamedev

    Joined:
    Mar 27, 2014
    Posts:
    79
  11. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
  12. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    687
    Keep in mind it may not be the best idea to run WebGL content in full resolution as it may destroy performance and battery life.
     
  13. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    but my app must work on browser. beacuse it will be in online portal
     
  14. fastgamedev

    fastgamedev

    Joined:
    Mar 27, 2014
    Posts:
    79
    I run WebGL at full res with no problems for performance.
     
  15. superdiederik

    superdiederik

    Joined:
    Apr 25, 2012
    Posts:
    31
    We've had some issues with performance lately. It was caused by Firefox (and maybe other browsers?) not initializing WebGL 2.0 properly, reverting to 1.0 and causing extremely bad performance.
    One site I found told me to update my videocard drivers (!!!!) and it solved my problem. But it is still incredibly frustrating that this is even (randomly) happening.
     
  16. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I solved it. I bought WebGL Retina Tools and it solved. there is no another choice. unity devs will find either any solution or another else
     
  17. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    869
    Anybody knows how to set the resolution for WebGL?
     
  18. witcher101

    witcher101

    Joined:
    Sep 9, 2015
    Posts:
    516
    its through buildsettings--> Resolution and presentation
     
  19. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    869
    I must have a different version, when i click FILE-> Build Settings, i dont see Resolution and Presentation
     
  20. witcher101

    witcher101

    Joined:
    Sep 9, 2015
    Posts:
    516
    Its in player settings