lights.png file (Full Version)

All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios



Message


StevieLee -> lights.png file (3/21/2020 6:28:01 PM)

Is there a guide out there for how to create/edit these? When I open it in GIMP it's just a blank file.




Veitikka -> RE: lights.png file (3/21/2020 7:42:43 PM)

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.




Issue8 -> RE: lights.png file (3/21/2020 8:42:02 PM)

Here is the lights pattern




Issue8 -> RE: lights.png file (3/21/2020 8:49:12 PM)

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]local://upfiles/47125/B1048F6AF4134C729E1FABDACFCEE4BC.jpg[/image]




Issue8 -> RE: lights.png file (3/21/2020 8:50:05 PM)

THe masks would look something like this for the buildings:


[image]local://upfiles/47125/91F00D145A2D4917B2C2F789F06DF871.jpg[/image]




Issue8 -> RE: lights.png file (3/21/2020 8:50:38 PM)

And something like this for the roads:

[image]local://upfiles/47125/39197F23952F4FECA0AC11D42B1BAF21.jpg[/image]




Issue8 -> RE: lights.png file (3/21/2020 8:52:46 PM)

Using both the masks together gives an intersection effect:

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

[image]local://upfiles/47125/27DB6FD0B1EE4F82B95F0EA7EEB72442.jpg[/image]




StevieLee -> RE: lights.png file (3/24/2020 12:07:58 AM)

Issue8: Thanks much for the great explanation!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.703125