Mekanism

Mekanism

111M Downloads

Wrong texture stitching on cables

raspopov opened this issue ยท 7 comments

commented

When I tried to fix a #4920 issue (using Paint.NET ๐Ÿ˜‰ ) I found a small problem:

All cables has a rotaded on 180 degrees textures in the center of block which helps for correct texture stitching (I assumed it's a hack by design) except upper and down sides of east-west cables. I added a small arrow to \src\main\resources\assets\mekanism\textures\blocks\models\multipart\universalcableverticalbasic.png texture for better understanding.

Red arrows on screenshot shows a texture stitching error - a doubled green pixels.

Mekanism Cables

Used texture:

universalcableverticalbasic

Version:

Forge: 14.23.3.2678
Mekanism: 1.12.2-9.4.10.345

commented

Cables are rendered in 3 sections; the centre and the two ends. Can you show a screenshot with the centre selection box showing?

commented

ahh, of course, didn't notice your red/yellow lines were on the edge of the texture

commented

Here it is (north-south):

Central section

Also I added a red-yellow line and dots to test texture:

universalcableverticalbasic

Looks like end sections cut by 4 pixels on 48x48 texture or 1 pixel on original 12x12. So rotated central section helps in masking of green-dot pattern.

commented

hmm the edge green dots look stretched :|

Well its possible/probable the render doesnt line up 100% with the bounding box

commented

In fact dots are not "stretched" but two overlapped dots - dot from side section overlapped by another from central section.

Rotated one (west-east):

Rotated cable texture

commented

I've fixed the rotation issue mentioned above. The texture overlapping issue is a bit more deep-rooted, and given the minor importance of this issue I'm going to call this fixed.

commented

For reference, this was fixed in 92eb2eb.