Search Unity

[Help] Graphics device doesn't support Repeat wrap mode on NPOT textures.

Discussion in 'Scripting' started by Gamars, Feb 20, 2014.

  1. Gamars

    Gamars

    Joined:
    Aug 16, 2013
    Posts:
    14
    Hi all,
    I'm making a mobile game. When i update the Unity3D from 3.5.6 to Unity3D 4.3.4. I met the problem.
    Some of my textures are Repeat Wrap Mode. It's OK on Unity3D 3.5.6. But now it is not ok!

    "Graphics device doesn't support Repeat wrap mode on NPOT textures.Falling back to Clamp."

    Can anyone help me ? Please~:)
     
  2. damian.doroba

    damian.doroba

    Joined:
    Apr 4, 2013
    Posts:
    36
    You can write your own cg shader and truncate texture coordinates inside it.
     
  3. giulio-pierucci

    giulio-pierucci

    Joined:
    Sep 4, 2012
    Posts:
    8
    Open the textures on your favourite image editing tool and save them with a POWER OF 2 size, like 256*256, 512*512, 1024*1024
     
  4. ramp

    ramp

    Joined:
    Nov 6, 2012
    Posts:
    14
    Hi,
    Same error here.When i update Unity-4.3 to Unity-4.5.5.i used to all the Texture type in inspector and this happened too.
    Please help.
     
  5. jrat

    jrat

    Joined:
    Aug 19, 2015
    Posts:
    1
    The reason it's not working is because the dimensions are Non Power Of Two. You can either do what giulio.pierucci said, and make it a power of two, or you can go to the import settings, select Texture Type - Advanced and Non Power of Two - To Nearest. That's what I did, and it worked for me.
     
    SonUrquizo, MarlosR and WilliamHoyos like this.