Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: zeffs on November 05, 2020, 02:00:48 PM

Title: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 02:00:48 PM
Hi,
I'm confused how to implement the following task.
Need to scatter street lights every 20m and put barriers evenly between those lights.
And option 2 - place 20 barriers and after each 20th put 1 street light.

Also can we have some exclude area option (by additional spline or anything else) - so street lights do not appear is some locations only barriers. And flexibility to exclude lights or barriers or both in that spline area.
Hopу that is possible :)

Thx.
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 05, 2020, 02:44:39 PM
You can do that quite easily:

(https://i.imgur.com/2IDh9Sk.png)

Scene attached for Your reference
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 03:25:56 PM
Hi Rokas,
Thanks for quick reply.
Could you please save in max2018 format?

I tried to make same setup.
Not sure how to avoid intersection of box and cylinder.
Clipping spline always affects all objects? Can it affect only cylinders?

Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 03:34:51 PM
can we change clipping area behavior?
do not delete objects inside area - but make kind of pause and continue same order scattering after
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 05, 2020, 04:20:06 PM
can we change clipping area behavior?
do not delete objects inside area - but make kind of pause and continue same order scattering after
No, we cant Pause RailClone. Clipping is a step done after RC has calculated all the segments.

Please always attach Your max file it will be easier for both sides.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 04:30:29 PM
ok, got it about clipping
here is my scene
how can I avoid those problems - intersections and double objects
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 05, 2020, 05:10:36 PM
Use adaptive mode instead of tile.
If You cant use adaptive then with tile mode You can use sequence operation:
(https://i.imgur.com/12dbPC6.png)
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 05:15:10 PM
Thank you!
Now it works just fine! :)
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 05:51:23 PM
another one small issue
cannot find an option how to force cylinders always look up
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 05, 2020, 06:08:03 PM
(https://i.imgur.com/ykWpfTe.png)
Hope this helps. More about deformations in our documentation (https://docs.itoosoft.com/railclone/getting-started-with-railclone/10-techniques-to-deform-geometry).

Feel free to check out full documentation for more tips and tricks. I believe You will enjoy it.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 07:13:04 PM
definitely I pressed that before...
for some reason I cannot get it work on my small piece of terrain
and issue not only with my custom meshes, boxes and cylinders have same problem at some areas
maybe that depends on spline curvature or something else


Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 05, 2020, 07:31:01 PM
Hi
It is due the pivot of the barrier segment. Set it to the center and then set additional for the Z position or set Y alignment for the Barrier segment node.
And make sure your Surface is large enough/bigger  to cover all the Splines/generated elements.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 05, 2020, 08:23:22 PM
Hi,
Cool, now I see what is causing the issue!
The thing is - I cannot move the pivot
otherwise I will loose connection with my original object and all coordinates will be screwed in game engine. (reference mesh should be untouched)
Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 05, 2020, 08:49:03 PM
Then make alignment on the Segments node (although it is always better to add a Transform node and set alignments on it). It will override the original Pivot. So for the barrier set the Center for Y and Bottom for Z and leave the original pivot on your barrier model.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 06, 2020, 09:21:41 AM
some updates on this one
box and cylinder has original perfectly aligned pivots - and still there is an issue with being 100% vertical
for the custom shapes I moved the spline so it is not going away from terrain - but it is also slightly off
Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 06, 2020, 09:40:54 AM
This is probably due to combining adaptive vs vertical and stepped deformation in Sequence.
Try to make a NULL segment with X Fixed size that matches the pole to make empty space and use a separate generator do the oposite NULL for barriers.
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 06, 2020, 09:44:16 AM
seems like a bug. Logged to our system. Thanks for reporting.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 06, 2020, 09:52:40 AM
Thx )
Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 06, 2020, 10:21:47 AM
Hi
I created a workaround RC objects.
Please check if that works for you.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 06, 2020, 11:22:48 AM
Cool! That works!
the only thing - I don't understand how to get those additional fields for segment and transform nodes ))
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 06, 2020, 11:48:31 AM
Cool! That works!
the only thing - I don't understand how to get those additional fields for segment and transform nodes ))
rightclick on the node and export internal parameter or size attribute.
Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 06, 2020, 11:52:52 AM
Oh..welll...
you should go with https://docs.itoosoft.com/railclone/getting-started-with-railclone
and check all from:
https://www.itoosoft.com/tutorials?page=1

answer to your question: right mouse click on the node and you will see Export Parameters & Attributes
Parameters are like Inputs and Attributes are like Output Values...

But, please go to trough Documentation and Tutorials. RailClone is a very powerful tool if you know what you are doing  ;D
Title: Re: Street lights + barriers (combine)
Post by: Dragan on November 06, 2020, 11:56:34 AM
 ;D ;D ;D ;D
@Rokas STOP ANSWERING WHILE I`M  TYPING MINE REPLY!!!
 ;D ;D ;D ;D
It is like I`m Copy/Paste from you and acting like an idiot!
 ;D ;D ;D ;D
edit:
@zeffs
You can see the Itoo Support is the best support you ever encounter.
Title: Re: Street lights + barriers (combine)
Post by: Rokas on November 06, 2020, 12:08:04 PM
Agree with dragan. We have put a lot of work into documentation. We hope it is clear to understand and useful.
Title: Re: Street lights + barriers (combine)
Post by: zeffs on November 06, 2020, 12:20:30 PM
Thanks guys! this one is solved!!!  ;) :D