Itoo Software Forum

Author Topic: facade  (Read 3297 times)

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
facade
« on: October 12, 2014, 12:54:14 PM »
Hi all,

I'm trying to build a simple facade on the attachement.
My approach was:

-splines to define the facade where the planks are different in height
-use a limit by ID material to define voids (windows)

I don't know how:

-define a different height on a section of the spline for balconies (blu sections)
-define a variation in height (purple section at the bottom)

problems:

-when I set evenly segments they don't align nicely to the grid (see grid.jpg)
-when I refine the spline to set different ID to segments the all planks move and I miss a plank in one point plus I have anoter plank that move up (I think is something related to the corner definition)

I don't know if my apporach is right or not, maybe I should try Array 2S instead but seems more complicated to control (at least for me)

sorry for my concise message  :) I put also the definition of the rail clone in the attachement, of that some of you guys could give me an help

thank you

Alessandro

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: facade
« Reply #1 on: October 13, 2014, 10:15:30 AM »
Hi Alessandro,

Thanks for contacting us with your questions. I've tried to answer each one below and have attached a scene file to help illustrate.

Quote
-when I set evenly segments they don't align nicely to the grid (see grid.jpg)
This is being caused by the Bevel Corner value which changes the length of the spline being used to calculate the evenly spacing. Turning off bevel corner resolves this issue.

Quote
-define a variation in height (purple section at the bottom)
One way to do this is with a small expression:
  • Wire the segments to a new Transform node and Export the Fixed Size Z value.
  • Wire the exported value to a new Arithmetic Node.
  • Set the Arithmetic node to Expression and enter abs(XSplineCoords.z). For each segment this returns the distance from the RailClone objects local position to the Z coordinate at the segments position on the spline. Abs ensures this value is positive.


    You can read more about this technique in the second part of the Bridge Tutorial
Quote
-when I refine the spline to set different ID to segments the all planks move and I miss a plank in one point plus I have another plank that move up (I think is something related to the corner definition)
Quote
-define a different height on a section of the spline for balconies (blu sections)

If you are using a generator's limit by ID option this will effectively break the spline for each material ID, causing the generator to recalculate evenly distances mid-facade.  Instead of using the limit by ID you could use the Selector Operator set to Material ID mode. This will not cause the generator to reset evenly distances and will enable you to pick from a number of types of segment using a single generator. The node tree for this setup looks like this. In this example ID1 = Full height, ID 2 = window, and ID 3 = balcony.



Note that I have also set the generator so that the Corner segment is only created using the Bezier Corner type. I can then use vertices of the Corner type to create the material ID breaks.



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

Many thanks,

Paul
Paul Roberts
iToo Software

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #2 on: October 13, 2014, 10:43:15 PM »
Hi Paul,

thank you for your support, your definition is working well  :)

I have a doubt about the expression:

- If I move a point up or down in the spline (or refine)  the segments move on the x of the spline. Is that normal?Is there a way to prevent that?

see attachement and file

thank you,

Alessandro

George

  • Full Member
  • ***
  • Posts: 120
Re: facade
« Reply #3 on: October 14, 2014, 02:43:07 AM »
Lately when I need variable heights for cladding/balconies, I do a fixed scale on the Z axis by the material ID, so I just set the material ID of the segment to how high I want it to be. In your case though, you only have the single balcony height that's different so I'd just do it with a different matID (like for the window gaps).

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: facade
« Reply #4 on: October 14, 2014, 01:02:48 PM »
Hi Alessandro,

You're right the spacing will be different. Unfortunately this is unavoidable as the spline will be longer due to the diagonal, which results in different spacing. In this instance I think it may have to keep the spline flat and manually adjust the RC object, you for example try using proboolean to snip off the bottom of the fins.

Many thanks,

Paul
Paul Roberts
iToo Software

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #5 on: October 14, 2014, 07:29:26 PM »
Hi George and Paul,

thank you for your replies

Alessandro

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #6 on: October 14, 2014, 08:54:24 PM »
Hi,

just another issue that I didn't notice before.

The corners are all set as Bezier-Corners but on the first point of the spline the segments don't rotate as they should.

thank you,

Alessandro

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: facade
« Reply #7 on: October 16, 2014, 10:42:31 AM »
Hi Alessandro,

Thanks for reporting this problem, I can confirm the the issue has been resolved in the next RailClone update. In the meantime you may be able to work around this by changing the first vertex  so that it is not on a corner.

Many thanks,

Paul
Paul Roberts
iToo Software

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #8 on: October 16, 2014, 06:41:40 PM »
Hi Paul,

thank you for your reply.

If I change the first point of the spline (not more on a corner) the new "first point" breakes the alignment of the planks with the grid so that I have to tweak it manually (something that I'd like to avoid).
Is that what you meant?

thank you,

Alessandro

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: facade
« Reply #9 on: October 16, 2014, 11:22:41 PM »
Hi Alessandro,

Yes you're right a certain amount of manual adjustment is necessary with this technique. I'm afraid this is the only workaround I can think of at the moment, though this issue has been resolved for the next RailClone release.

Many thanks,

Paul 
Paul Roberts
iToo Software

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #10 on: October 17, 2014, 08:30:17 AM »
Hi Paul,

Thank you for your support :)

Best,

Alessandro

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #11 on: October 19, 2014, 11:04:26 PM »
Hi,

just another small issue.

Some planks are going down instead of going up...there is something wrond with the spline?

thank you,

Alessandro

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: facade
« Reply #12 on: October 20, 2014, 11:55:54 AM »
Hi Alessandro,

Thanks for reporting this, we apologise for any inconvenience.  We have isolated a small bug that occurs in rare situations where a particular spline shape is combined with using the selector operator. We've been able to resolve this for the next update. Until then, as a workaround, slightly moving the corner vertex so that it is not exactly 90 degrees should fix this issue and shouldn't be visible in the render.

Many thanks,

Paul
Paul Roberts
iToo Software

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #13 on: October 20, 2014, 12:32:55 PM »
Hi Paul,

yes it works, thank you!

Alessandro

Alessandro Guida

  • Newbie
  • *
  • Posts: 45
Re: facade
« Reply #14 on: October 20, 2014, 06:55:34 PM »
I'm working on the windows now :)

I used the splines where I want the frames but I need different size in different locations, I tried to work with the selector in conjunction with the trasform operator without luck.

In the example on the images I would need three frames instead of five, the defalult segment is set as adaptive now

thank you,

Alessandro