Itoo Software Forum

Author Topic: Adaptive mode support for Sequence node  (Read 690 times)

harumscarum

  • Full Member
  • ***
  • Posts: 103
    • harumscarum's portfolio
Adaptive mode support for Sequence node
« 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?


Rokas

  • Sr. Member
  • ****
  • Posts: 424
Re: Adaptive mode support for Sequence node
« Reply #1 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
« Last Edit: January 23, 2015, 01:40:45 PM by Rokas »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Re: Adaptive mode support for Sequence node
« Reply #2 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.
Paul Roberts
iToo Software

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Re: Adaptive mode support for Sequence node
« Reply #3 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
« Last Edit: January 23, 2015, 02:26:20 PM by Paul Roberts »
Paul Roberts
iToo Software