Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentTimeMar 19th 2017 edited


    CC3+ contains a huge amount of various commands and features. In this series, I plan to highlight some of these. There won't be any special progression to this series, and the command will be selected from the entire range, from the simple basic commands, to more advanced features intended for the more advanced users. Feel free to use this topic to discuss the command presented. If you have a command you wish to have showcased, feel free to request it, and it may get presented.
    This series is called the command of the week, but it could also explain a feature or effect. The explanations will tend to explain the technical parts of the command, and is intended to highlight the basics (and complexities) of the command, but won't be a detailed tutorial on how to use it. It is up to you to use it creatively in your maps.

    Week 11 - Complex Shapes - Combine Path

    CC3+ has tools for drawing various basic shapes, like rectangles, circles and polygons. While the polygon does allow for a lot of possibilities, it still have it's limits. How can you draw a dungeon room with rounded alcoves for example? The solution is to combine multiple shapes into a more complex shape. In this week's installation, I will look at how to combine paths using the combine paths command to make shapes such as this. There is also another tool, Multipoly, which is great for a different class of complex shape. I will deal with that command next week.
    The main focus of this installment is to explain the Combine Paths command, but we will also touch upon Line to Path and Path to Poly which are used together with this command

    Where to find it?

    Toolbar: Right click Explode explode.png -> Combine Paths, Line to Path, Path to Poly
    Menu: Edit Menu -> Transform -> Combine Paths
    Command Line: CMB, LTP2, CLOSEPATH

    How to use it?

    I'll describe this command through a mini-tutorial. Here we will be making a rectangular dungeon room with two circular alcoves.
    1. Start by setting the properties you want your shape to have. I'm starting with the floor, so I set line width to 0 and fill to Flagstone G Bitmap (From DD3) and sheet to FLOORS
    2. Use tools like Path and Arc to draw the outline of the room using whatever tool is best for the current segment. I recommend using the endpoint modifier to start the next segment at the exact point the previous one ended, but it is not an absolute requirement. You may also skip the final straight line that would close the shape. Not that at this step, you will be drawing everything with very thin lines. In my image below I've used a separate color for each line segment just to visually separate them for the tutorial, you don't want to do that when you make this yourself.
    3. Use Line to Path to each of the two arcs. This is necessary because arcs are not paths and cannot be combined with other paths, so we need to convert them first. Doing this will cause them to change the fill to the currently selected fill and color, but if you've been using the same fill all the way, the visual difference when converting them will be minimal, but you can use the list command on them to check that they are entities of type "2D Path" and not "2D Arc".
    4. Start the Combine Paths command. This will ask you to select the first path and then the second path. Once both paths have been selected, the command prompt should read Select Next Path/[Finish] Flip Selection ('F' - First, 'S' - Second). It should also show the result visually on the screen. Now, if nothing looks different, then everything is ok, but if you see an addition line that wasn't there before, it means that the Combine Paths command tried to connect the wrong ends of the paths. (It will always try to connect the end of the first path to the start of the second path. These ends are determined by the direction you drew these paths initially, not by the fact that they connect at a certain spot). You can press the F and S keys to flip the direction of the first and/or second path around (You may need to flip one of them or both) until the figure looks right (no extra lines you didn't put there).
    5. Once you are happy with how the first two sections combine, click on the third section to combine it with the first two. Again, use F and S as required to flip the paths.
    6. Once done, right click to finish the command. You can now use list to confirm that the the three entities are now a single entity.
    7. Now, all you need to do is to convert this path to a polygon. Use Path to Poly on it, and it will close up and turn into a filled polygon (assuming your line width was set to 0, otherwise it will still be hollow).
    8. For a dungeon room, you'll probably want matching walls. This is simple. Just copy our new entity to the WALLS sheet. Now, use change properties, and select by Prior, as this will select our copy. In the dialog, set line width to 1 and use a proper wall fill, like Stonework Cobble
    Thank you! I've already combined paths, but no more than two, so the 4th subsection is helpful. ^__^