Itoo Software Forum

RailClone => Work in Progress => Topic started by: Yuriy Bochkaryov on August 01, 2022, 11:59:17 PM

Title: Railclone and curved spline
Post by: Yuriy Bochkaryov on August 01, 2022, 11:59:17 PM
Good afternoon
I want to make tiles on the roof of the house, the roof has a bend along the Z axis, railclone works fine if the bends go along the X and Y axes, but if there is a bend along the Z axis, then the railclone stops working correctly
I tried using the surface node, but it also doesn't work very well at the edges of the spline, and in general it gives quite unpredictable results
below attached the scene example
Thanks
Title: Re: Railclone and curved spline
Post by: Dragan on August 02, 2022, 08:20:07 AM
Hi, sorry I dont have time to explain :-\ so I just make a few print screens
Title: Re: Railclone and curved spline
Post by: Yuriy Bochkaryov on August 02, 2022, 11:01:04 AM
Hi, sorry I dont have time to explain :-\ so I just make a few print screens
Hi
thanks, but this can't be the solution
you just increased the size of the surface for tiling, thereby getting rid of problems on the edges, where the railclone does not correctly process the geometry.
Does this solution work if you have one or more fragments, but if you have a complex roof? does every fragment have to do this? I have 18 houses in the scene with such a complex roof - so this solution is not suitable
Title: Re: Railclone and curved spline
Post by: Dragan on August 02, 2022, 11:21:06 AM
Well, RC deforms just on z axis and needs a little bit larger surface than the clipping spline.
If you have some extended percentage in Generator this will be the equivalent as you did the offset spline so you need a bigger offset for the surface as well. 

Title: Re: Railclone and curved spline
Post by: Yuriy Bochkaryov on August 02, 2022, 11:52:21 AM
Well, RC deforms just on z axis and needs a little bit larger surface than the clipping spline.
If you have some extended percentage in Generator this will be the equivalent as you did the offset spline so you need a bigger offset for the surface as well.

I understand that this can be used on 1 house, as it is inconvenient and wastes extra time
I have 18 houses, this method will not work
18 houses, create each roof element separately a little larger, then exclude it from the render - it's not realistic
I need to create about 80-100 additional elements with a slightly larger size )
Title: Re: Railclone and curved spline
Post by: iToo on August 02, 2022, 12:57:26 PM
Are all roofs different, or copy of an unique model ?

If all roofs are the same, you could generate one model, turn on Style->"Free Object", and then clone RC as a Max instance.
With "Free Object", the RC object can be moved along the scene without affecting its position.

If not, i'm afraid there is not a simple solution. RailClone cannot generate directly from a Surface, just conform the geometry over it.

Title: Re: Railclone and curved spline
Post by: Yuriy Bochkaryov on August 02, 2022, 04:36:08 PM
Are all roofs different, or copy of an unique model ?

If all roofs are the same, you could generate one model, turn on Style->"Free Object", and then clone RC as a Max instance.
With "Free Object", the RC object can be moved along the scene without affecting its position.

If not, i'm afraid there is not a simple solution. RailClone cannot generate directly from a Surface, just conform the geometry over it.

All roofs are unique (