Next comes the step of processing of all the squares, converting them to LEGO pieces.įirst, the application runs special logic for the rivers and coastlines. Lastly, the color that got the highest count decides which type of land it is.If any of the pixel was road colored, mark the square as Road.If any of the pixel was water colored, mark the square as River/Coastline.If all the pixels had the color of water, mark the square as Sea.Analyze the counted pixels to select what type of terrain it is.That way text, color transitions between two areas and other irregularities are ignored. Any pixel that don’t match any predefined color is not counted.Match all pixels in a square against list of predefined “input colors” and count them.Each of these squares represent one stud on the final map. Read and divide the input image into a bunch of squares with the size of 12 by 12 pixels.To produce the output, a lot of hard coded color parameters and an Excel spreadsheet with available LEGO bricks was used. Input image - A modified map from the LotR Wiki Below is picture I used and the resulting output. (rotated and tilted) “Brick Map Maker”Ī short description of the tool I made would be that it takes a picture as input and creates a Lxf-file for LDD. A map of North Europe with Scandinavia highlighted. So instead I started to work on an application that could to the job for me. I have used that technique once before when creating a map for a LEGO event, but I quickly realized that it would be to much work for this project. With the help of a picture editor, I placed a grid over the map and counted squares to see which plates could be used to represent that part. From Pixels to BricksĪt first I tired to create the map in LEGO Digital Designer manually. But I ultimately decided on using this map from the LotR fandom wiki. For example this Reddit comment lists a nice collection. A simple google search gave me lots of maps to choose from. I already own a Middle earth atlas, but I wanted something digital to work from. Finding source materialįirst step was to find one or several good maps to base the work on. It’s something I been thinking about for many years so it’s nice to finally get started on it. A map of the world from the Lord of the Rings and the Hobbit books/movie. This year I have decided that my next big LEGO project will be to build a Middle Earth map.
0 Comments
Leave a Reply. |