Strange 1pixel wide lines on modded hands

Discuss modding questions and implementation details.
Post Reply
User avatar
King of Worms
Posts: 2039
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 » Fri Jul 12, 2019 11:38 am

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

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

Re: Strange 1pixel wide lines on modded hands

Post by Interkarma » Fri Jul 12, 2019 2:03 pm

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 311 times

User avatar
King of Worms
Posts: 2039
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 » Sat Jul 13, 2019 2:35 pm

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: 4708
Joined: Sun Mar 22, 2015 1:51 am

Re: Strange 1pixel wide lines on modded hands

Post by Interkarma » Sat Jul 13, 2019 11:08 pm

Awesome, happy that helped,!

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

Re: Strange 1pixel wide lines on modded hands

Post by TheLacus » 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.
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

User avatar
King of Worms
Posts: 2039
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 » 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?

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

Re: Strange 1pixel wide lines on modded hands

Post by TheLacus » Tue Jul 16, 2019 9:54 am

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 ;)
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

User avatar
King of Worms
Posts: 2039
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 » Tue Jul 16, 2019 11:06 am

Best approach, thank you

Post Reply