lights.png file

Post Reply
StevieLee
Posts: 13
Joined: Mon Feb 10, 2020 6:42 pm

lights.png file

Post by StevieLee »

Is there a guide out there for how to create/edit these? When I open it in GIMP it's just a blank file.
User avatar
Veitikka
Posts: 1501
Joined: Sun Jun 24, 2007 10:11 pm
Location: Finland
Contact:

RE: lights.png file

Post by Veitikka »

If you zoom in you can see transparent white dots where the roads have the lights at night. The game engine blurs them so they're not that blocky in-game. I'm not an image editor expert, but it's possible to pick certain colors from a map file (e.g. the roads) and then replace them with something like these dots.
Know thyself!
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: lights.png file

Post by Issue8 »

Here is the lights pattern
Attachments
lights_pattern.png.zip
(1.44 KiB) Downloaded 13 times
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: lights.png file

Post by Issue8 »

Basically, the idea is to fill a layer with that pattern, and then use masks, both on that layer, and in a group mask. So if you are using Gimp, you will need newer versions of Gimp that have group masks.

If you use the select by color tool, and shift select all the building colors that would likely have lights around them and then grow the selection by about 4 pixels, then you will get a mask for the lights layer.

Then for the group mask, select all the roads that will likely have lights and use that selection for a mask.

Image
Attachments
b70.jpg
b70.jpg (67.35 KiB) Viewed 501 times
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: lights.png file

Post by Issue8 »

THe masks would look something like this for the buildings:


Image
Attachments
b68.jpg
b68.jpg (2.84 KiB) Viewed 501 times
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: lights.png file

Post by Issue8 »

And something like this for the roads:

Image
Attachments
b69.jpg
b69.jpg (2.98 KiB) Viewed 501 times
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: lights.png file

Post by Issue8 »

Using both the masks together gives an intersection effect:

The actual lights.png is hard to see because of the alpha channel

Image
Attachments
b71.jpg
b71.jpg (2.3 KiB) Viewed 503 times
StevieLee
Posts: 13
Joined: Mon Feb 10, 2020 6:42 pm

RE: lights.png file

Post by StevieLee »

Issue8: Thanks much for the great explanation!
Post Reply

Return to “MODS and Scenarios”