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. Dismiss Notice

Game view textures are uglier than scene view!?

Discussion in 'General Graphics' started by FeastSC2, Dec 30, 2018.

  1. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    974
    My effects are not rendering as beautifully in my game view compared to my scene view. You might see that texture on the left (Scene view) is smoother than the one on the right (Game view).
    It's hard to see on the video because OBS won't capture in better quality for some reason, but it's easily noticeable on my screen.
    Edges within the texture appear despite it being a smooth noise texture panning; as if the texture has a low resolution.

    What can I do to make it look like the scene view in the game view?

     
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    926
    you mean the non-dithering? try importing the texture with a different compression/no compression or dither it (there's a dithering Importpostprocessor in github somewhere).
     
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,239
    Is the game view zoomed in? (Total guess, can’t see from your video, but check the game view zoom slider)
     
  4. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    974
    I tried all the settings in the sprite importer, doesn't make a difference as far as I can tell.

    I'm talking about a stairs effect, a bit like mach bending (https://en.wikipedia.org/wiki/Mach_bands)

    It's not due to being zoomed in in this case.

    With pictures it can be seen better actually (left picture = game view):

    Unity_2018-12-30_22-54-23.png Unity_2018-12-30_22-54-37.png
     
  5. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    926
    FeastSC2 likes this.
  6. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    974
    Interesting, I tried it out but it didn't change the issue.
    Is it really how I import my sprites however? Since it's looking better in the scene view doesn't it mean that it's not due to importing but rather something linked with how my camera renders?
     
  7. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    926
    Is your camera doing something special (post effects etc)?
     
  8. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    974
    No, I made a new one to make sure.

    upload_2018-12-31_1-20-22.png


    It could be then be that the reason is my shader. I have created a sort of UberFX shader where I do lots of operations and I checked the calculation numerous time, but I guess that must be the one then.
    It's odd that the scene view does not show the same result however, do you know the reason for this, maybe I can do the same for my game view and my problem would be fixed ;)
     
  9. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    974
    I found a solution: setting my shader to premultiplied instead of the standard Transparent mode has fixed it, I wanted to keep my transparency and color separated but if it causes problems like this I guess I have no choice.

    I'm still curious as to why the camera in the scene view renders differently. If somebody knows I'm interested!
     
    rostykul likes this.
  10. rogodoy

    rogodoy

    Joined:
    Jan 24, 2013
    Posts:
    21
    In the rendering panel in camera: turn on the textures, because you turned on: use pipeline settings.
    Pipeline settings will override the default textures to a low settings.