Guide to Building Wall Masks.

@veritanuda

This method should work for any map depending on the fidelity of it but even irregular maps like cave can be easily masked out.

Requirements

The below instructions are for using freely available tools GIMP and potrace you can of course use proprietary tools to achieve the same results but there is no guarantee it will behave the same.


Below I will show 2 methods.

Method One

For this method I will pick a random map from Free Friday Maps. Which you can get here but any map will do so long as it has a few key characteristics.

So this is the map I will start with.

FFMAP01

It comes in a few types include Lineart. Which is what we will use.

method1_1

Removing the background

In this map is has some irregular hashing around the map for a background. Fortunately though it is a different colour a sort of grey. So selecting the Fuzzy select/Colour Select tool, choose Colour Select select one of the grey areas of the background and you should see all the grey become highlighted.

method1_2

This is good, but, because the lines between them are not selected, if were were to delete them now it would just leave the black crazy paving look.

method1_3

So while everything is selected right click on the image go to Select > Grow...

Grow the selection a few pixels until it covers the lines between the grey spots. Once you are satisfied you have caught it all, press Delete and POOF the background disappears.

method1_4

Now go back to the Fuzzy Select and this time choose Fuzzy Select. Click on the now white background and see everything is selected.

Now in the Layers panel add New Layer Name this layer mask.

method1_5

On that layer select the Bucket Fill tool. Click on the selection of the background you did earlier and it should fill it all black.

method1_6

Hide the line art layer and check you have a complete mask wth no missing bits.

method1_7

If you did miss something, don’t panic, just press Cntrl-Z to undo and go back to selecting the parts you missed before.

Depending on the map and how you selected the background some doors might also be painted. You will have to do is with the Erase tool and whatever shaped brush fits best, go over all the doors and secret doors and remove the black.

If you don’t do this you will make a door impassible. You can always add door tokens to any opening you have made once the map is imported and the walls added.

Once you are happy with your mask you can delete the line art layer.

The next part is vital if you want to convert it properly to SVG, which is what PlanarAlly uses for walls.

Right click on the image and go Image > Mode , if you imported the Line art, like I did, it would have been greyscale. Sometime you will need to convert an colour map to greyscale to make it easier to delete backgrounds etc. But now the mode must be RGB. Change the image to that.

Then right click on the image go File > Export As... and save the image as a BMP Turn OFF Run Length Encoding Turn OFF Do not write colour space information and make sure under Advanced you are 32 Bits

method1_8

Once that is saved you can either use the command line potrace or you can do it online for free from this website

The command to do it yourself is extremely simple.

potrace -s FREE-MAP-FRIDAY-001_LINEART_WALLS.bmp

This should give you an svg that if you open up in graphic program should be black, where the light will be blocked and clear where the light can shine.

method1_9

Method Two

Say you have an irregular map or the background is not so easy to remove. Well you can still hand make a mask just using normal tools.

For this example I will use this map

Import the map into gimp.

method1_1

Create a new layer, call it guide.

With the Pencil tool select the Circle as a brush and make it black. Resize as needed. Making sure you selected the guide layer, start drawing on the coloured portions of the map within the walls.

method2_2

mehod2_3 Once you are happy you have all the shape filled in, create another layer called walls.

On the guide layer use the Select by colour tool and click on the black guide you have made. Then invert the selection.

method2_4

Then on the walls layer use the bucket fill tool to fill in the inverted selection with black and fill out the walls.

method2_5

Once that it done hide the previous layers and if you are happy you have not missed anywhere, delete those layers and save the image as BMP as above to be converted using either method above.

method2_6

Importing Walls into PA

Now upload this SVG to your Assets folder on PlanarAlly along with the Playermap and GM map if there is one.

Drag those assets into a location which the player map being on the MAP layer. and the GM map beng on the GM layers. On the MAP layer right click on it, bring up Properties and set a Name and under Advanced tick Blocks Vision/Light and Blocks Movement. Then go to the Extra tab and under Lighting & Vision > Upload walls. Select the SVG you just uploaded to your assets. Your walls should now be applied.

Test it with a token that has a light source on the Token layer and you are nearly done. Now if there are doors or secret passages they have to be manually isolated off with door tokens or FOW, your choice. But all being well you should not have to worry about hand crafting walls again.

Happy gaming!

*/}