Page 1 of 1

Strange 1pixel wide lines on modded hands

Posted: Fri Jul 12, 2019 11:38 am
by King of Worms
Ok guys, Im not able to get rid of this artefact
01.jpg
01.jpg (50.03 KiB) Viewed 1799 times
In Photoshop, I cant see this line. But I tryed to select that region anyways and delete it, yet the artefact is still present.

So this is not something wrong in my file, but its something off in the engine I guess.. And it happens on more files than just this one.. whole melee is messed up like this. And I get these lines in the paperdoll replacements as well..

Here is the source file.
WEAPON10.CIF_0-0.png
WEAPON10.CIF_0-0.png (51.61 KiB) Viewed 1799 times
Any help would be appreciated to get rid of this

Re: Strange 1pixel wide lines on modded hands

Posted: Fri Jul 12, 2019 2:03 pm
by Interkarma
I'm not sure, but it looks like alpha on the top row is being sampled from the bottom row (possibly due to bilinear filtering). Note how the horizontal grey line matches the width of the bottom row of pixels of the glove.

Setting texture wrap mode to "clamp" in import settings might get rid of it. And it shouldn't appear in-game at all with point filtering enabled. If that doesn't help, TheLacus might be able to throw some other ideas into the ring. He's far more knowledgeable around the mod system than myself. :)

wrap.jpg
wrap.jpg (30.74 KiB) Viewed 1778 times

Re: Strange 1pixel wide lines on modded hands

Posted: Sat Jul 13, 2019 2:35 pm
by King of Worms
Wow good eye!

I changed the wrap mode to clamp as suggested and it solved the issue.
Very easy and effective solution :geek:

Thanks a lot, Im glad its sorted!

Re: Strange 1pixel wide lines on modded hands

Posted: Sat Jul 13, 2019 11:08 pm
by Interkarma
Awesome, happy that helped,!

Re: Strange 1pixel wide lines on modded hands

Posted: Mon Jul 15, 2019 10:23 pm
by TheLacus
This is fixed for both mods and loose files by #1354. I used mirror wrapmode which allows to mirror textures for left handed weapons.

Re: Strange 1pixel wide lines on modded hands

Posted: Tue Jul 16, 2019 9:46 am
by King of Worms
TheLacus wrote: Mon Jul 15, 2019 10:23 pm This is fixed for both mods and loose files by #1354. I used mirror wrapmode which allows to mirror textures for left handed weapons.
Thank you
Should I change the texture wrap mode to mirror from a current clamp?

Re: Strange 1pixel wide lines on modded hands

Posted: Tue Jul 16, 2019 9:54 am
by TheLacus
King of Worms wrote: Tue Jul 16, 2019 9:46 am
TheLacus wrote: Mon Jul 15, 2019 10:23 pm This is fixed for both mods and loose files by #1354. I used mirror wrapmode which allows to mirror textures for left handed weapons.
Thank you
Should I change the texture wrap mode to mirror from a current clamp?
It's overridden anyway ;)

Re: Strange 1pixel wide lines on modded hands

Posted: Tue Jul 16, 2019 11:06 am
by King of Worms
Best approach, thank you