Itoo Software Forum

Author Topic: Question for building procédural  (Read 4394 times)

guerin

  • Newbie
  • *
  • Posts: 3
Question for building procédural
« on: February 28, 2025, 12:10:14 PM »
Hi everyone! That's my little problem. I followed Itoo s tutorial on "cityscapes" and here is my problem: I have 3 buildings and I would like them to randomly replace the spline. It works for the random side but only if the spline is square. If there is a hook for example, the raiclone does not follow the buildings, any idea?




Thank you!!!
(raiclone pro lastest version)
Anthony

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2925
Re: Question for building procédural
« Reply #1 on: February 28, 2025, 12:30:49 PM »
Hi Anthony,

From the provided screenshot, it looks like you're using the Extend X/Y Size to Area feature. Please double-check that the Deform > Slice option is enabled for the selected Segment, or simply set the For No Slice option to Slice.

I hope this helps.

Best regards,

guerin

  • Newbie
  • *
  • Posts: 3
Re: Question for building procédural
« Reply #2 on: February 28, 2025, 02:21:51 PM »
Thx !
I deselected Slice and Bend

Anthony

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2925
Re: Question for building procédural
« Reply #3 on: February 28, 2025, 02:28:11 PM »
If you want to perform the clipping operation, these should be enabled or overridden by using the previously mentioned For No Slice > Slice option within the Array 2S1 Generator. Could you please briefly describe how you would like your style to behave? The workflow explained in the mentioned tutorial is different - if you want to "fill" these areas, using the Extend X/Y Size to Area feature should do the job.

Best regards,

guerin

  • Newbie
  • *
  • Posts: 3
Re: Question for building procédural
« Reply #4 on: February 28, 2025, 04:17:27 PM »
ok, what I wish is that my 3 different buildings fill the splines despite their shapes

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 3059
Re: Question for building procédural
« Reply #5 on: March 03, 2025, 03:21:39 PM »
Hi,

Thanks for the extra info.

It looks like you would like to to scale an existing model of a complete building to fit non-rectangular spline. Unfortunately this wont work as it is, you'll need to to break the building into smaller parts that can be used to reconstruct it to match any shape. As a minimum this is likely to be one segment for the walls and another roof, but it could be much more sophisticated that than if the project requires it. Attached is a simple file that randomizes a different building per spline between with different wall types synced with 3 different roof types.

It should be pretty self explanatory, but the main thing to note is the Randomize node which has been set to Generate On -> X Spline Start to ensure that the same segment is used for each closed spline. In the sample file I had also enabled Sync Between -> Generators to illustrate that you can match different roofs to walls if that is required. If you have any questions about this file, please don't hesitate to let me know.

All the best,

Paul
Paul Roberts
iToo Software