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

Requirements

RailClone Pro or Lite

  • RailClone Logo

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. 
    Edge Loops
  2. With the new edges still selected, click on Create Shape from Selection. Change the Shape Type to Linear, and click OK
    Create Shape Dialog
  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. 
    Example Tiles
  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
    Rotation Settings
  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!
  12. Add some Left and Right Padding to add spacing between the tiles. 
    Padding for gaps
  13. Go to the Generator’s properties and change the Default Mode to Adaptive. In this mode, the geometry will be subtly scaled so that only whole tiles fit on each row, with no slicing. 
  14. Clone the existing Segment and use it to pick the hip tile from the scene. Wire it to the Corner input.
  15. Select the Generator and go to the Corner settings. Increase the Fillet Amount value until the tile deforms smoothly around the corner. For even better deformation, you may also want to increase the Curve Steps property found in the Style Rollout
    Fillet amount
  16. Once the corners are deforming correctly we will need to reshape the tile so that it has that distinctive bonnet hip shape. Select the source geometry and add a Box FFD modifier. Set the number of points to 2x5x2, then use the Control Points to pull up the centre of the front of the tile until it overlaps on the hip correctly. By modelling this and being able to see the results live, you can save a lot of time instead of relying on trial and error. 
    Hip Tile
  17. This solves the hips, but what about the valleys? We will need to use a different tile for these areas and to do that, we turn to the Conditional Operator. 
  18. Wire a Conditional Operator to the Corner input and wire the Hip segment to the True input.
  19. Clone the Hip segment and use it to select the Valley geometry from the scene. 
  20. Wire the Valley segment to the False input. 
    Conditional Setup
  21. Now to get it to use the hip on the external corners and the valley on the internal corners you need to enable Vertex > Angle in the Conditional operator and use a value of 180 degrees. Make sure Check Wide Angle is enabled, otherwise it will only check between 0 and 180 degrees, rather than the full 360. Finally, change the Condition drop-down to Less. You now have a different tile for each corner type. All that remains is to reshape the valley. 
    Conditional Settings
  22. Select the valley source geometry and just like we did for the Hip, add a Box FFD modifier. Set the number of points to 2x5x2 then use the control points to pull down the centre of the back of the tile until it overlaps in the valley correctly. 
    Valley Tile
  23. And we’re done, the only other thing I did in my sample scene was to add UVW XForm modifiers to randomly offset the bitmaps on the U and V axes and a little transform randomisation to add more variety. 
    Final Graph

This is a nice example of a tutorial that was made from a users request. Remember if you’ve got a question you’d like to see explained in a short tutorial, just let us know on the forum or the comments below this video. Thanks, and stay tuned for more coming soon!

expand_less