Skip to content

Instantly share code, notes, and snippets.

@george-hawkins
Last active May 23, 2021 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save george-hawkins/89bb173ae88906362317967865675c53 to your computer and use it in GitHub Desktop.
Save george-hawkins/89bb173ae88906362317967865675c53 to your computer and use it in GitHub Desktop.

Why does my texture image join badly at the edges? Bad UV unwrapping?

I added a Texture Image to a torus and when I started painting on the torus, I saw this undesired effect at the point where the edges of the underlying image join:

bad join

I can see this effect also in the linked image:

linked image

The .blend file for the torus is here (I'm using Blender 2.92).

There's nothing fancy about the torus or how I linked the image. The torus has been just lightly deformed and I don't see anything unusual about the mesh at this join point:

mesh at join

I did no customization in the UV Editing workspace, in fact, I didn't go near that workspace at all.

I created the deformed torus in the Layout workspace, selected it, switched to the Texture Painting workspace. There in the Image Editor, I added a new image giving it the name "Torus_texture" and changed none of the other default image properties. I went to the Shading workspace, added a new Texture Image node, selected the "Torus_texture" and linked its Color output to the Base Color input of the material node for the torus. And that's it - the result has this odd anomaly shown above.

Clearly, I have done something wrong but I'd like to know what so I can correct it without starting from scratch again.

I know I've done something that introduced this issue as if I simply create a completely new undeformed torus, add a material and repeat the steps outlined above I don't see this problem:

good join

The hard edge that you see is a stroke that I drew directly on the underlying image, rather than the torus, so that I could see the join point. Here there's no odd anomaly at the join point when I draw directly on the torus.

Its .blend file is here for comparison.

This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment