# Tutorials

## Learn new skills with our bite sized lessons

• Home
• Tutorials
• Creating a Bonnet Hipped Roof with RailClone in 3ds Max
Creating a Bonnet Hipped Roof with RailClone in 3ds Max
Modelling a bonnet hipped roof in RailClone
Technologies:
RailClone

#### Requirements

RailClone Pro or Lite

We recently had a question about how to go about creating a roof with bonnet hips using RailClone, it was an interesting problem that we felt be useful for other users, so we’ve recorded our answer as a short tutorial. This technique can also be completed with the free Lite version of RailClone, so if you’ve not tried it before, this might be the excuse you need.

Because the hip and valley tiles bend around the corners and connect neatly to the rows of both pitches of the roof, it’s not really possible to use our usual technique of creating clipping splines for each roof plane. Instead, you can solve it slightly differently, by treating each row as a separate 1D array that wraps around the perimeter of the roof in an unbroken loop - here’s how to set it up:

1. First of all, you’ll need to create a spline for each row of tiles that wraps around the entire roof. There are a number of ways you could do this, but in this scene, the easiest way is to simply select all of the edges that define the hips and valleys, and then use the Edit Poly Object’s Connect tool to create an edge loop for each row.
2. With the new edges still selected, click on Create Shape from Selection. Change the Shape Type to Linear, and click OK
3. Now that you have the splines you need, create a tile from a simple box primitive. Set the height of the tile so that it spans two rows. That will allow each course to overlap.
4. Clone the tile and set the width to slightly more than the height. We will use this as the hip tile, and because it bends around the corners, you will need to add some vertical edge loops.
5. Clone this tile to create a third tile that we can use for the valleys.
6. For the hip tile, you may want to add a face below the tile that can be used to add a concrete infill. If you download the scene files for this tutorial you will find example geometry that you can use to follow along.
7. Now we have our tile geometry, let’s create the RailClone style itself. Add a new RailClone object and open the Style Editor
8. Add a new L1S Generator and attach a Spline node. In the Spline node’s properties, pick the path from the scene that we created earlier.
9. Add a new Segment node and select the tile geometry from the scene. Go to the Deform properties and disable Slice. Wire the Segment to the Default input.
10. Use the segment’s Fixed Y Rotation to rotate the tiles to match the angle of the roof. You will notice as the tiles turn that they lift off the roof planes. To fix this, change the Y and ZAlignment to Pivot
11. If you find that some of the rows rotate incorrectly, then it is because the splines are running in different directions. Unfortunately, this often happens when using the Poly Object’s Create Splines tool, but it’s easy to fix. Just select the incorrect sub-splines, right-click and select Reverse. Problem solved!