Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Border around all decals #6

Open
andersmmg opened this issue Feb 10, 2021 · 3 comments
Open

Border around all decals #6

andersmmg opened this issue Feb 10, 2021 · 3 comments

Comments

@andersmmg
Copy link

I'm not sure what could be causing this, but all decals from this addon have a weird line border around the shape of the image used.
image

@Master-J
Copy link
Owner

This weird border is caused by aliasing and can't directly be removed. I already implemented a workaround to this which consists in using a texture mask with transparent borders to hide this aliasing.

There's a mask available in the src folder of the addon (decalco/src/alpha_mask.png), all you need to do is assign it to the bordel_mask texture field in your material's settings.

@andersmmg
Copy link
Author

I have that applied, it doesn't seem to make a difference though. Turning off mipmaps in the import settings makes the line go away, but I'm not sure that's a good solution.

@Master-J
Copy link
Owner

Mipmapping doesn't seem to be related to the issue (just tested on my workstation and it works in both cases).

This could be related to you render resolution or an issue with your graphics driver.

If disabling mipmapping solves the issue, you can go that way, just keep in mind that the texture will always keep its higher level of details at any distance from the camera. If it's an issue, you may want to implement some sort of culling on the decals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants