Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

lights.png file

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> lights.png file Page: [1]
Login
Message << Older Topic   Newer Topic >>
lights.png file - 3/21/2020 6:28:01 PM   
StevieLee

 

Posts: 13
Joined: 2/10/2020
Status: offline
Is there a guide out there for how to create/edit these? When I open it in GIMP it's just a blank file.
Post #: 1
RE: lights.png file - 3/21/2020 7:42:43 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline
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!

(in reply to StevieLee)
Post #: 2
RE: lights.png file - 3/21/2020 8:42:02 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Here is the lights pattern

Attachment (1)

(in reply to Veitikka)
Post #: 3
RE: lights.png file - 3/21/2020 8:49:12 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.




Attachment (1)

(in reply to Issue8)
Post #: 4
RE: lights.png file - 3/21/2020 8:50:05 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
THe masks would look something like this for the buildings:





Attachment (1)

(in reply to Issue8)
Post #: 5
RE: lights.png file - 3/21/2020 8:50:38 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
And something like this for the roads:




Attachment (1)

(in reply to Issue8)
Post #: 6
RE: lights.png file - 3/21/2020 8:52:46 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Using both the masks together gives an intersection effect:

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




Attachment (1)

(in reply to Issue8)
Post #: 7
RE: lights.png file - 3/24/2020 12:07:58 AM   
StevieLee

 

Posts: 13
Joined: 2/10/2020
Status: offline
Issue8: Thanks much for the great explanation!

(in reply to Issue8)
Post #: 8
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> lights.png file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.734