- Home /
White line along the edge
![alt text][2]![alt text][2]Hi Guys, We have created a 3D model of a building and imported in unity and have applied textures to it .The textures are in JPG hence no alpha. When i move the camera near the object the edges look good with 2K sized trextured.But when i move away from the model , the white lines appear along the edges and it spoils the overall look and feel. What have i tried and failed : 1)Adjusted the near clip and far clip values 2)enabled anti aliasing : tried upto 8X 3)Changed texture settings
a)set mip maps b)set all possible settings in advanced 4)Checked the normals of the model in MAya.No issues with it
Please find attachment of screenshot when taken near the object and far from it
Answer by mrmork · Jul 31, 2013 at 04:51 PM
It looks like result of mipmap, the texture area on the edge of the model is getting "blurred" against a brighter nearby pixels. Increase padding when bake texture, or try to fill the unused area in the texture with a darker colour.
i agree with mmork, it may be to do with mip maps. quickest way to tell is turn mip maps off on the texture import settings. if it is just change the background color in photoshop to match the main the main color of the building and then in future give your texture maps a bit more space from the uv edge
Thank you guys.. i tried the UV adjustments and the seam seems to dissapear at a distance .Now i have applied a darker color bgd ins$$anonymous$$d of white and tht made a lot of sense and it works !!
Answer by RPGstandard · Jul 31, 2013 at 11:11 AM
what wrap mode do you have it set to in the inspector? try setting it to clamp
are you using any special shaders or settings on the camera?
Hi rowdyp,im using only default unlit/texture shaders here.. Im actually testing with the default Camera here.. As i move my camera away the white line comes into picture..
It probably has something to do with the clipping mode or render settings on the camera. I would try those, if not, it may actually be a missed seam in the texture map...