Itoo Software Forum

Author Topic: Can't seem to figure out the correct use of corners in L1S arrays  (Read 1539 times)

Javier G

  • Newbie
  • *
  • Posts: 4
Greetings,

I'll explain what I'm trying to do: the objective is to make a Railclone object with the following result in mind:



A balcony railing, defined by a spline going over the edge of the balcony slab. Notice how the corner behaves.

I have attempted to do that by doing the following:

I have made segments for the railing elements to be grouped (their pivot is identical), plus a specific segment for the corners and vertical bars to be spread evenly and at the start and end of the spline.





In the end result, the corner segment behaves correctly only on the side towards the start of the spline. On the other side, it blends with the linear segments.
In other words, the railing segments correctly end where the corner bounding box lies, but then start INSIDE the corner bounding box. I hope I have explained it clearly enough. You can see it happening at the corner in this screenshot.



I have been tinkering for a while now, trying to find the solution. One way I have found is to force a X traslation for the linear segments so that they start where the're supposed to, but it kind of feels like a cheesy solution, and it generates problems in other parts of the scene where the spline takes on a different shape.

I feel there should be a simpler solution, but i can't quite find it. I don't really get the logic, why do segments respect the corner bounding box on one side, but not the other?

I am attaching a MAX file with just the RC object, its spline and segments, plus the balcony slab for reference.

A lot of gratitude for whoever has some kind of suggestion. :)

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2486
Re: Can't seem to figure out the correct use of corners in L1S arrays
« Reply #1 on: January 31, 2024, 08:48:32 AM »
Hi Javier,

There's an easy fix, which doesn't require any change(s) in your style setup - you can adjust the Right Padding value for the "Corner Segment" correspondingly. Please find attached the modified version of your scene (240131_RCissue_iToo.max). I hope that helps.

Best regards,

Javier G

  • Newbie
  • *
  • Posts: 4
Re: Can't seem to figure out the correct use of corners in L1S arrays
« Reply #2 on: January 31, 2024, 11:25:50 AM »
Hi Javier,

There's an easy fix, which doesn't require any change(s) in your style setup - you can adjust the Right Padding value for the "Corner Segment" correspondingly. Please find attached the modified version of your scene (240131_RCissue_iToo.max). I hope that helps.

Best regards,
Wow, that was easy! Exactly what I was missing.

Thanks a lot for the help! It's working swimmingly now, and I've figured out the logic better.
Have a nice day!