Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: harumscarum on January 23, 2015, 01:24:37 PM

Title: Adaptive mode support for Sequence node
Post by: harumscarum on January 23, 2015, 01:24:37 PM
here I try to make stairs with platform. problem is Tile mode slice its end and Adaptive mode offset first stair after platform. I guess it is because of Sequence node. Any way to fix it?

Title: Re: Adaptive mode support for Sequence node
Post by: Rokas on January 23, 2015, 01:36:43 PM
1. use tile method
2 for "steps" segment disable "slice" in segment's deform tab deform options
Title: Re: Adaptive mode support for Sequence node
Post by: Paul Roberts on January 23, 2015, 01:48:53 PM
Hi,

Please find attached a solution that calculates the depth of stairs based on a the length of the spline minus the depth of the platform. This distance is then divided by a number of steps and the result used to scale their depth.

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

Many thanks,

Paul.
Title: Re: Adaptive mode support for Sequence node
Post by: Paul Roberts on January 23, 2015, 02:11:49 PM
Hello again,

Here's a version that should work as in your original post. In this version the step scaling is still calculated using an expression that uses the spline length minus the platform size, but this time the number of steps is calculated by finding the nearest whole number of steps that would fit into the remaining space. This is achieved using this expression:

ceil((XSplineLength-Input1)/Input2)

Where Input1 is the Platform Length and Input2 is the X Size of the step geometry.

Cheers,

Paul