Itoo Software Forum

Author Topic: Gable Roof  (Read 700 times)

BLG

  • Newbie
  • *
  • Posts: 5
Gable Roof
« on: July 28, 2023, 08:38:44 AM »
Hi everyone,

After failing many times I am writing to ask for your help in creating a gable roof on Railclone. I have successfully created a warehouse with a regular roof, but I am having trouble creating a gable roof that overhangs on all four sides of the building. The overhang should be about 1 meter on each side.

I have searched for a way to create this type of roof automatically, but I have not been able to find any tutorials or documentation that could help me.

I would be very grateful if anyone could provide me with some instructions on how to create it.

Thank you!

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Gable Roof
« Reply #1 on: July 28, 2023, 09:47:37 AM »
Hi,

Please take a look at the attached file for a possible solution. Here's what I changed:

- Nested the Roof generator inside another A2S generator in Extend to XY Size area mode
- Changed the original generator so you can set the size using parameters then created an Arithmetic node that gets the sizes of the end generator and adds the overhand
- Turn off Slicing in a transform node between the two generators to allow the geometry to overhand the eddges
- Negate the overhang value and use it to move the roof into the correct position.
- Added Y adaptive macros to prevent the roof being sliced on the top/bottom

I hope that helps, please let me know if you have any questions.

Paul
Paul Roberts
iToo Software

BLG

  • Newbie
  • *
  • Posts: 5
Re: Gable Roof
« Reply #2 on: July 28, 2023, 10:49:09 AM »
Wow! Thank you so much!! Not only the response was super fast but the result is almost perfect.
I might be able to work with it the way it is but, would it be possible to have a single roof ridge for each building? somehow getting the Y Fixed Size of the roof from the clipping area spline?

Also, the overhang at the front and back of the building doesn't really work because they are supposed to be flushed with the rest of the building (see attachment), If I leave it without overhang (overhang of size 0) it works perfectly but I loose the overhang on the sides as well. I might not need an overhang at all but just be able to put some geometry there like a gutter all around it or just on the sides. Please take a look at the attachment to se what I'm after.

Lastly, this might be a dumb question but it looks like the whole roof is made of the same object and material, The front and back of the newly created roof would need the same material as the rest of the building, how would I change it just on those to places?

Thank you very much for your help!

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Gable Roof
« Reply #3 on: July 28, 2023, 11:20:01 AM »
Hi,

Glad to help out. I've made the changes you mention:

- The front and back overhang is removed, To do this I simply removed the overhang value from the expression that calculates the X Size. If you want to remove/reduce the overhand for the sides too, just change the value in the Constant node called "Roof Overhang"
- A single roof is created by swapping the Y Adaptive Macros for Scale to Array which fits the segment to the generator's size on the Y axis
- For materials, you should be able to use Material IDs in the usual way. To get the textures to line up across segments, in this case I would try to use V-Ray Triplanar maps.

I hope that helps.

Paul
Paul Roberts
iToo Software

BLG

  • Newbie
  • *
  • Posts: 5
Re: Gable Roof
« Reply #4 on: July 28, 2023, 11:25:22 AM »
This is Perfect, Thank you!