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

POT problem

Discussion in 'Scripting' started by yariangames, Jun 8, 2016.

  1. yariangames

    yariangames

    Joined:
    Jun 8, 2016
    Posts:
    53
    Hi , so how can i make my background image which is 1920 in 1080 ready for using in unity editor without POT message? thanks.
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    huh?
     
  3. yariangames

    yariangames

    Joined:
    Jun 8, 2016
    Posts:
    53
    power of two, when you want to change a sprite to texture it will appear.
     
  4. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
    Power of Two. Graphic cards generally must have their textures sized so the width and height are a power of 2. (1px, 2px, 4px, 8px, etc...)

    I think you can make it a Sprite, then Unity should automatically add it to a sprite sheet (probably 2048x2048 in size) which would be a power of 2. The other option is to resize the image to be a power of two then scale it in-game.
     
  5. yariangames

    yariangames

    Joined:
    Jun 8, 2016
    Posts:
    53
    Dear Garth Smith, i want to have this texture scrolled as background, so i want to have it mapped with a material on a quad, so i cannot use a sprite solution , now how with which numbers i change it to correct size in photoshop? would you please say to me the exact numbers?thanks .
     
  6. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
    Hello, you can do one of these.
    1024x1024, 2048x1024, 2048x2048. (These are all POT)

    This means it will get scaled. If you go 2048x2048 you should be able to get pixel perfect with Point filtering. Bilinear/trilinear might blur something out though if you're resizing in Photoshop anyway it shouldn't be too different.

    You can also make it a sprite (manually). That is, put your 1920x1080 on a 2048x2048 (there will be empty space around) then set the UV coordinates on your quad to show only the 1920x1080 part of the 2048x2048 texture. Making it a Unity Sprite is pretty much doing this same thing automatically.

    Yes, full screen images take a lot of texture memory!
     
    Last edited: Jun 8, 2016
    yariangames likes this.
  7. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Change the format in the import settings to not be Compressed.

    This also really isn't a Scripting question.
     
  8. Dave-Carlile

    Dave-Carlile

    Joined:
    Sep 16, 2012
    Posts:
    967
    420x420, am I right? :cool:
     
  9. sngdan

    sngdan

    Joined:
    Feb 7, 2014
    Posts:
    1,131
    Also check advanced setting (vs texture). You have pot scaling options there that might work for you