Factorio HD Age: Base Game - Railway


This mod contains and integrates HD textures for the railway entities of the base game.

Tweaks
a month ago
2.0
13.3K
Trains

b Reduce brightness of straight rails

7 months ago

Hi, great mod. It completely changed the appeal of the game for me.

I noticed that straight rails (north and east) at certain zoom levels at my screen resolution (1440p) become insanely bright. Those straight, bright lines look out of place and it's weird how they blink when zooming.

I tried editing graphics locally, and slightly reducing bright areas in data\base\graphics\entity\rails\rail\rail-metals\straight-east.png and data\base\graphics\entity\rails\rail\rail-metals\straight-north.png fixed the issue without affecting too much looks at other zoom levels.

Here's how it looks: https://ibb.co/R4gS7NHY (abofe: before, below: after edits)

7 months ago

Hi, I'm glad you like my mod.

I can't reproduce the bright lines on my 4k monitor. It probably has something to do with the combination of zoom level and scaling on a 1440p monitor.
If you have the DLC, do you have this effect on the elevated rails as well?

I'll see if I can test it in the near future with a friend who has a 1440p monitor.

7 months ago

I tried elevated rails, and white lines appear. I made a screenshot at zoom level just before entering "no details" view. I didn't touch files from elevated rails module, so that was expected. I'll try 4k later, TV is currently occupied.
https://ibb.co/yc7kwRvf

7 months ago

Screenshot from 4k. Different computer, without any of my edits: https://ibb.co/5xgKv0xx

7 months ago

Thanks for the additional information, I was able to reproduce the phenomenon in my image editing tool by using odd scaling factors. I will try to fix this over the weekend.

7 months ago

That's so weird... I was able to reproduce it on various resolution on 3 screens. But all my screens are LCD. Are you perhaps using OLED?

7 months ago
(updated 7 months ago)

That's really weird. No, I also have an LCD monitor, I'm wondering if it has something to do with my graphicscard settings, because I can reproduce the phenomenon in my image editing program, but not in factorio itself.
However, I will try to fix it this weekend.

7 months ago

I found out why I could not reproduce this phenomenon in Factorio in my test setup. Every few parallel possible tracks does not have this phenomenon and I got exactly this grid vertically and horizontally with my test crossing.

7 months ago

Sounds plausible. I was wondering why sometimes top and sometimes bottom rail looks too bright.
Now i wonder if it's maybe a problem with game engine and how it reduces size of textures. It's weird that it picks brightest points from image.
Anyways, I'm happy for the upcoming official fix :)

7 months ago

It is a multi-layered problem, as soon as I build 20 tracks parallel to each other (both vertically and horizontally), this phenomenon occurs to a greater or lesser extent, regardless of the brightness of the texture. When zooming out, several pixels are combined and the average value is displayed, so it happens that, for example, the two middle pixels with high brightness are combined and thus remain "bright", or that the two middle pixels are combined with the dark pixels on the left and right, resulting in a darker color. If I now adjust the colors so that this effect does not occur for any of the 20 parallel tracks, the tracks no longer look good when zoomed in (solid gray stripes).
I don't have any other solutions at the moment, but I will pursue this, I can't promise a quick solution for now.

7 months ago

I walked through a field of rails. I noticed that bright rails and dark rails make a gradient. At this point I might be getting more interested in this graphic issue than in the game itself... https://fileport.io/Gs71qLp5Rxx2

7 months ago

I walked through a field of rails. I noticed that bright rails and dark rails make a gradient. At this point I might be getting more interested in this graphic issue than in the game itself... https://fileport.io/Gs71qLp5Rxx2 https://fileport.io/kMsvPGffgfZV

7 months ago

Haha, that's how many people got into modding.
The video is only displayed as a pixel mash, but I know what you mean by the gradient.

7 months ago

Do you use a mod to zoom out further?

7 months ago

I wanted to make the video not too big but keep enough details. I guess only I thought it was good because I knew what to look at. But as least I had some fun trying to stabilize the various zoom levels :)
As for zoom. I had some mods, so I'm not 100% sure... But, I tested in scenario editor and if I remember correctly, it always allowed for more zoom than the actual game.

7 months ago
(updated 7 months ago)

I completely solved the problem with the elevated rails and was able to improve it with the normal rails so that it only happens in the last 3 zoom levels.

7 months ago

It's difficult to say given your involvement, but I can't really see that much of a difference. And I have even weirder observation. I colorized rails graphic red (Photoshop / curves / colorize). From up close, the tracks are slightly reddish. But at farther zooms some tracks are solid red while others are very bright grey. https://ibb.co/4Rdf3T1q

Originally I just decreased brightness of light areas and it pretty much worked for me. You seem to have done much more the the rail graphic.
I honestly think that unless you are intrigued by this issue (like I am), you may just ignore it. Especially that it's not really repeatable on your computer.

7 months ago

I completely removed alpha channel and used only single gray 128 color in straight-east and -north. Now some rails are gray and some are black when zooming out :) I'd say it's beyond fixing on my machine.

7 months ago

Once you've seen it, you can't unsee it. That's why I would like to find a solution.

Yes, I took a different approach by adjusting the brightness for each pixel row/line to find a width of "bright" pixels where the phenomenon no longer occurred. This was easier with the elevated rails because they already had high brightness over a width of 6 pixels and hardly any color gradient over the width (black -> white -> black). The normal rails, on the other hand, have a different color gradient (black -> white -> gray -> black) and thus bring much more color gradations to the same width.

Do you still have the same problem with the elevated rails with my update from yesterday?

7 months ago

Sorry, I completely forgot about elevated. Yeah, they seem better. At closer zoom levels they no longer flicker that much when changing zoom.

7 months ago

But you still have flickering with the elevated rails?
That's very interesting, because I don't have that anymore unless I zoom out further in the editor than in the normal game.

7 months ago

Hi, I didn't have a chance to test this earlier. All in all it looks a bit better but the general light and dark lines are in the same places as they were. They're just the slightest bit less pronounced, which is better :)

7 months ago

Thanks for the feedback.
Since I have already adjusted the elevated rails so that they are always displayed correctly within the normal zoom range on my setup, it will of course be very time-consuming if this is not the case for others. I will leave the elevated rails as they are for now.
Maybe I will find another approach once I have found a solution for the normal rails.

New response