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

Unordinary texture size

Discussion in 'General Graphics' started by Feeron, Feb 17, 2015.

  1. Feeron

    Feeron

    Joined:
    Nov 4, 2012
    Posts:
    22
    Hi,

    Is it ok, when the texture size is 16384 x 1024? its 2 power and its ekvuvalent of 4096 x 4096 texture. however i never seen such a texture in real practice. I only want to know whether it is a trap. or can i use such a texture?

    Thanks!
     
  2. KingMatthew

    KingMatthew

    Joined:
    Jul 7, 2013
    Posts:
    166
    You will need a lot of vram to use that texture. Maybe if you break it into multiple textures it will be possible.
     
  3. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You can't use a texture that size since Unity doesn't support it. The max is 4096x4096 (or 8192x8192 in Unity 5).

    --Eric
     
  4. Feeron

    Feeron

    Joined:
    Nov 4, 2012
    Posts:
    22
    oh, it really has to be a square? But other unordinary sizes like 1024 x 2048 are allowed, aren they? Or there is limit to one side set at 4096 (8192 in unity5)? and hence it is possible to have 512 x 4096 but not 512 x 16384?

    I very much appreciate your advices, tank you
     
  5. Feeron

    Feeron

    Joined:
    Nov 4, 2012
    Posts:
    22
    Ou, i see it now in texture setup. It make sence.

    I got it. Thanks!
     
  6. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    No.

    Yes.

    --Eric
     
    Feeron likes this.
  7. Feeron

    Feeron

    Joined:
    Nov 4, 2012
    Posts:
    22
    Ok, and in that case. Here is the final question for the king.

    Is it possible to make tilleable texture which is part of the textureatlas? For example, using a some plugin?
    Just say yes and I can start to research properly...
     
  8. KingMatthew

    KingMatthew

    Joined:
    Jul 7, 2013
    Posts:
    166
    Yes you can make a tillable texture that is part of an texture atlas. I did a quick google search and it appears there is some code in your shader you would have to change.
     
  9. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Either that or do it by designing the mesh to do tiling, using UVs as appropriate.

    --Eric
     
  10. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Besides unity's limits, graphics hardware has a maximum texture size... 4096 is probably commonplace, and 2048 certainly is.. but bigger than that is more rare.
     
  11. Dolkar

    Dolkar

    Joined:
    Jun 8, 2013
    Posts:
    576
    Well, dx11 gpus, which are most common on desktops today, support up to 16384... which hurts even more considering Unity has no support for texture arrays