MapMatic +2

Creating game materials? Monsters, spells, classes, adventures? This is the place!
User avatar
Solomoriah
Site Admin
Posts: 6901
Joined: Thu Nov 13, 2008 8:15 pm
Location: LaBelle, Missouri
Contact:

Re: MapMatic +2

Post Fri Jun 16, 2017 11:21 pm

The filter would do whatever I decide it would do; I'd be writing it myself.

But the obvious thing is to do this:

1) Load each tile into Gimp
2) Add a white layer below the current image
3) Flatten the image, then add an alpha channel
4) Convert white to transparency

Here's the tricky part: Sometimes, gray areas should be partially transparent. Sometimes they should not. Certain tiles were meant to cover the border lines, for example. The white fill inside doors has to stay "solid" as does the gray fill inside things like the diagonal walls.

I'm honestly not certain how to do what you are asking, actually. The closer I look, the more complicated it seems.
My personal site: www.gonnerman.org
User avatar
Clever_Munkey
Posts: 212
Joined: Fri Sep 11, 2015 12:08 am
Location: Ames, Iowa

Re: MapMatic +2

Post Sat Jun 17, 2017 11:16 am

Solomoriah wrote: Here's the tricky part: Sometimes, gray areas should be partially transparent. Sometimes they should not. Certain tiles were meant to cover the border lines, for example. The white fill inside doors has to stay "solid" as does the gray fill inside things like the diagonal walls.

I'm honestly not certain how to do what you are asking, actually. The closer I look, the more complicated it seems.
Another option might be, instead of worrying about each tile responding the same, to do vector addition with a floor at 0 and ceiling at 255. So (0,0,0,???) would become whatever color was input (or stay 0 if it was negative). (255,255,255,???) would remain 255 if the vector was positive and would become something else if it was negative. It would definitely be a bit trickier to use, but might be easier to program.

The fade tiles already alter color technically, or at least appear to. Could we get away with creating green, red, and blue fade tiles, and then just use a combination of those 4 (red, green, blue, and white) to create whatever color was desired? It would be very awkward for sure, but might work.

There is also the fall back option of having separate images for each color. The name of the PNG could just be [hexcode][normal tile name]. This might take a while, but I would be willing to put in the work.
Call me Joe. Mr. Munkey is my father.
User avatar
Solomoriah
Site Admin
Posts: 6901
Joined: Thu Nov 13, 2008 8:15 pm
Location: LaBelle, Missouri
Contact:

Re: MapMatic +2

Post Sat Jun 17, 2017 11:38 am

The fade tiles are partially transparent black, (0, 0, 0, 0.5) or something like that; the fill tiles are actually gray, (127, 127, 127, 1.0). This is what causes a problem... how do we colorize that properly?
My personal site: www.gonnerman.org
User avatar
Clever_Munkey
Posts: 212
Joined: Fri Sep 11, 2015 12:08 am
Location: Ames, Iowa

Re: MapMatic +2

Post Sat Jun 17, 2017 1:51 pm

Change all grey to (0,0,0) and then have the program set the color to (127, 127, 127, 1.0) by default? If a color was already defined in the line, then don't set it to grey.

Every tile that has grey with a black outline would lose their outline. To fix that we would have to create an image that is just the outline. Some already have this (angled walls) others don't (castle walls, window, arch, etc). Honestly I like the idea of being able to manipulate the outlines separately, but it requires more work.
Call me Joe. Mr. Munkey is my father.
Post Reply