Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Nasau on June 25, 2025, 03:47:13 pm

Title: Random height of building generator
Post by: Nasau on June 25, 2025, 03:47:13 pm
Hello! I am working on a procedural building generator for the company where I work and I have found a limitation for its random operation.
I have set a selector ( numeric ) for the user to determine the maximum height of the buildings in terms of floors, from this, I send it to an arithmetic where I multiply this value by 300 ( to get the cm ) to determine the maximum height of the building.
My problem comes when I want each building to have a random height, I have tried with a random from the parameters section, with an arithmetic using the random function.... nothing, all the buildings that are generated have the same height as the main building. I have tried both copying the railclone and the line and adding elements to the spline that uses the railclone, it is always the same height and the only way to have randomness is using the random in X Spline Start mode, but this causes that each of the generators that create the buildings, have a different height, making the architecture makes no sense.
can someone help me please ?
Thanks in advance
Title: Re: Random height of building generator
Post by: Michal Karmazín on June 26, 2025, 08:52:08 am
Hi,

It's really hard to say what's happening exactly in your scene just from the provided images, if possible, please feel free to send us (https://forum.itoosoft.com/faq/how-to-send-a-file-to-itoo-software/) your scene (ideally simplified and containing just this problematic object(s)) to check it here. Thanks in advance.

Best regards,
Title: Re: Random height of building generator
Post by: Nasau on June 26, 2025, 09:44:22 am
Hello!

I'm not sure if this is intentional or a bug, but after some investigation I managed to get all my building generators to have random heights (Z offsets). I’ve discovered that they only synchronize correctly if all the RailClone generators are of type Array 2S. In this configuration, the Linear 1S generators do not respect the random values and all appear at the same height.

I've sent you the scene by email (I can’t share it publicly because it belongs to the company I work for), where you can clearly see the problem. The generator called EXAMPLE ERROR (in purple area) shows that all elements appear at the same height. Meanwhile, the generator named EXAMPLE CORRECT (also in purple area) synchronizes properly with the building heights.

Thank you for your help!
Title: Re: Random height of building generator
Post by: Michal Karmazín on June 26, 2025, 11:54:05 am
Replied by email.