Strange 1pixel wide lines on modded hands

Discuss modding questions and implementation details.
Post Reply
User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Strange 1pixel wide lines on modded hands

Post by King of Worms »

Ok guys, Im not able to get rid of this artefact
01.jpg
01.jpg (50.03 KiB) Viewed 1796 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 1796 times
Any help would be appreciated to get rid of this

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Strange 1pixel wide lines on modded hands

Post 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 1775 times

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Strange 1pixel wide lines on modded hands

Post 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!

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Strange 1pixel wide lines on modded hands

Post by Interkarma »

Awesome, happy that helped,!

User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Strange 1pixel wide lines on modded hands

Post 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.

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Strange 1pixel wide lines on modded hands

Post 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?

User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Strange 1pixel wide lines on modded hands

Post 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 ;)

User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Strange 1pixel wide lines on modded hands

Post by King of Worms »

Best approach, thank you

Post Reply