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

Texture problem, shader's fault?

Discussion in 'General Graphics' started by Fossicker, Sep 8, 2017.

  1. Fossicker

    Fossicker

    Joined:
    Sep 8, 2017
    Posts:
    4
    Hi everyone

    It's the first time I post here in the forum, let's see if I do it correctly.

    We've encountered a problem with our textures (I'm writing on behalf of the artist, so my explanations may sound iffy), and we don't know if it's our fault, texture's o shader's.

    When the camera is looking at the ground of the map, this is, from above, everything is fine, but when he camera is tilted to be at ground level (easily said: when we look through the character's eyesight) the texture breaks/expands/extends to a point that it takes the one that is next to it in the atlas.

    The next texture that is loaded looks fine until the characters steps on in, when the situation starts all over again.

    I'll attach a couple of images the moment I get home, and the shader. Thanks in advance

    IMG_2328.PNG

    IMG_2329.PNG

    HERE is a gif with the issue

     
    Last edited: Sep 9, 2017
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,217
    Looks like a shader problem to me. There's no way for a texture to do that on it's own.
     
  3. Fossicker

    Fossicker

    Joined:
    Sep 8, 2017
    Posts:
    4
    Thanks for your answer!

    Have you ever come across to a problem like this? If so, how may you solve it?

    Regards
     
  4. brownboot67

    brownboot67

    Joined:
    Jan 5, 2013
    Posts:
    375
    Best guess without seeing the shader is however you're projecting the uvs is no good.
     
  5. Fossicker

    Fossicker

    Joined:
    Sep 8, 2017
    Posts:
    4
    Thanks for your reply

    I'll try to get the shader later

    What do you mean about the uvs?

    Regards
     
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Post shader code if it is custom.
     
  7. Fossicker

    Fossicker

    Joined:
    Sep 8, 2017
    Posts:
    4
    Thanks for your replys, we found the answer: the artist didn't realize that the problem was described (and semi-solved) in the info of the shader itself ¬¬

    This is the shader we used https://github.com/dsoft20/psx_retroshader
     
  8. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,217
    I was wondering if you were using one of the PS1 style shaders. :)