How to remove Gui Image border

Hello ,

Please i need to remove those black border from Gui image , i tried thickness = 0 but it isnt work . Any help please ?

Thanks a lot

pinging @msDestiny14

thickness 0 should be working. Do you have a playground you can share so I can take a look.

1 Like

I faced the same problem. Gray frame around the image. Help me solve it please.

Looking into that

Having a look at the border aspect :
Screenshot from 2024-05-29 15-13-12

It looks a lot like either an AntiAliasing issue, either a texture interpolation issue (in Blender for example, it’s a common behavior when texture interpolation is set to linear, while default behavior on borders is using Zero-Padding, the alpha ends up black on borders of a texture plane)

Just in case it helps :sweat_smile:

++
Tricotou

Changing the sampling mode of the ADT to nearest solves this, but it is currently not possible. This PR will solve it - Allow changing sampling mode when creating GUI for mesh

@RaananW, did you try clamping instead of using nearest as nearest might not fit in some scenario ?

Yes, this sadly didn’t help. This occurs only when attaching the texture to a mesh (doesn’t happen in fullscreen), and happens only when calling canvasContext.drawImage. Nothing we set before or after influences that. I will invest a bit more time trying to understand why setting mode to nearest actually works, but for now this is the only viable solution i could find.