Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Square pixels on terrain instead of smooth

Discussion in 'Editor & General Support' started by LunaRain1, Oct 10, 2011.

  1. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Hello, I am trying to solve one issue. I have 1200x1200 good, coloured, ground texture without sewn.
    $texture_ok.png

    Everything is working good in Unity3D, but when I'm making build for Android 2.3.3 I have squared pixels texture, not smooth and it is very bad quality. Everything else is cool or objects and several other textures. I have tried to override this, I have tried to change quality, tried to override settings, and also tried to change texture resolution, but nothing helps. Please advice. Previously everything is working quite good. I'm using Open GL2.0x so it also not this issue.
    Unity3D 3.4 and Samsung Galaxy S2.
    $SC20111010-230246.png $SC20111010-230252.png
     
  2. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    So, no one knows?
     
  3. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    It is funny, but where I can get answer?
     
  4. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Unity3D Pro are used in this project. Any help?
     
  5. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Check the settings of the texture you're using, make sure it's set to use trilinear filtering.
     
  6. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    $SC20111011-141335.png

    $SC20111011-141303.png

    $SC20111011-141348.png

    same thing :( But not for all textures only for wide used ground texture, for cliff texture also used on terrain it goes smooth, for roads also not smooth, but for some grain cliffs smooth again.
     
  7. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    That looks extremely strange. I really don't know what to suggest...
     
  8. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    thats an easy one

    the uv mapping precision isn't high enough for mobile devices - either tile less, or increase precision in the shader for uv coordinates.
     
  9. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Cool, but where I did the mistake? At terrain settings or at texture?
     
  10. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Either tile less on your terrain texture or change the shader. Obviously, I have no idea which shader you're using. Either method will work.

    For now, use a bigger terrain texture and tile it less if you don't want to change the shader.
     
  11. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    $SC20111011-175238.png

    $unity3dtexture_props.png

    $unity3dtexture.png

    Here is texture sizes and other settings, as you see no shaders are used :\ Really it makes me messy.
    Also I have tried 1x1 tiling and 512 on 512 tiling. 512x512 is bluring but almost no squares.
     
  12. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Strange thing, but it could be Galaxy II issue. Will check once more.
     
  13. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    APPROVED IT IS GALAXY S2 Issue
     
  14. DrChakal

    DrChakal

    Joined:
    Nov 15, 2011
    Posts:
    4
    I ve got the same issue with Motorola Defy! Any news? i dont know whats else to try...:-|
     
  15. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    some devices lack texture precision. Either raise the precision in the shader, or tile it less.
     
  16. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Could you please show example with screenshot, because issue is not resolved until now, if it wouldnt be a real waste for you... :(
     
  17. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I don't understand how a screenshot is going to help.
     
  18. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    for shader settings for example, maybe we really doesnt understand something? Or it is due to device?
     
  19. LunaRain1

    LunaRain1

    Joined:
    Jun 28, 2011
    Posts:
    30
    Please tell me where settings for terrain shader can be found?
     
  20. VivienS

    VivienS

    Joined:
    Mar 25, 2010
    Posts:
    24
    Hi there, old thread, but still not solved as it seems.

    I have the same issue on iPhone4 and Samsung Galaxy S (maybe other devices too, I didn't test).
    I'm using only polygon geometry - no terrains, my own shader and no tiling.
    Played around with texture compression (Compressed, Truecolor, 16bit, Filter Modes) and with precision of the UV coordinates in the shader (initially, they were fixed. I changed them to float) — without success.

    Here are my reference images:

    Reference from Galaxy Tab. It looks the same in the editor.
    $photo 1.jpg

    Reference from iPhone4 (it looks the same on Galaxy S)
    $photo 2.jpg

    Any suggestions appreciated!
     
    Last edited: Jan 22, 2014
  21. yuri_opolev

    yuri_opolev

    Joined:
    Aug 30, 2013
    Posts:
    1
    Don't know if it is exactly the same issue, but on Android if image cannot be loaded because it is too large, it is loaded with "inSampleSize" option, i.e. pixels are merged into squares 2x2 or 3x3 or 4x4, so on. Just a suggestion, but... try to load texture 1024x1024, not larger, it probably could help.