Itoo Software Forum

Author Topic: How to make a U-turn dog-legged stair with a single spline in Railclone 2?  (Read 2208 times)

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
May I ask how to make a U-turn dog-legged stair with a single spline in Railclone 2. Can itoosoft give me a MAX2012 example file or a tutorial? See my picture in my attachment.‍
I can't handle the big step platform in every corners of the star.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Hi,

Thanks for your question. Please see the attached file for an example of how this could be achieved.

The way I've tackled this is to break the stairs down into two generators: One for the stairs themselves and another for the landing. These are limited to the appropriate sections of the spline using the Limit by Material ID option:



With this style, to create a landing use a material ID of 2, and for the staircases use an ID of 1.

The generator for the stairs uses the same technique as the stairs tutorial. For the landing though I have created some new segments to fill in the corners. These are then used in the second generator. The segments have been modelled to ensure they are the same width as the stairs, (though if you wanted to make a more complex style this could be done parametrically).


The segments are aligned so that the start/end segments are on the outside of the landing spline, therefore filling in the corners:


To ensure that the start and end segments are correctly positioned in relation to the ends of the splines, adjust their alignment properties as follows.


You will now have a working staircase. If you adjust the width of the stair treads you just need to remember to also change the landing segments.

The Handrail is also mostly the same as the stairs tutorial. The only change is to add a corner segment to the generator. For this example I've added a pre-formed 90 degree bend in the handrail. For this to align correctly you would need to make the following adjustments:
  • Turn Off Bend and Slice for the Corner Segment
  • In generator  Rules > Corner, turn Off Align to Path
  • Set the Mode to adaptive
  • Change the Corner segments alignment as follows:
  • Enter -0.2m in the corner segment's Right Padding to close up the resultant gap.
If you'd prefer newel posts, you can easily use these in the corner input. They're much easier to align!

The finished style looks like this:


I hope that helps, if there are any other questions you have about this or other issues, please let me know and I'll be happy to help out.

Kind regards,

Paul

Update
The attached style was created with the RailClone 2.3 Beta. It shouldn't make a difference but if the behaviour is not as expected you may need to update to the most recent version.

Update 2
Also attached is a parameterised version of these types of stairs with separate adjustable tread and landing widths. Just made from boxes but it helps get across the idea. This one  requires 2.3.
« Last Edit: June 24, 2014, 05:41:56 PM by Paul Roberts »
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Many thanks for your tutorial ! I will give it a try . :)
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
I've managed to modify `the stair path` of the scene file that you gave me. But the corner of the handrail broken down when I tried to modify the length of the path. (See the screenshot of my attachment) And the big landing platform split up a little too. I haven't modify your segment objects structure and railclone object network. I just want to fit the stair to my scene. What's wrong with the setting of the railclone object?
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Hi,

I opened your scene file but I didn't get exactly the same problem. Instead my corner segments seemed to have become distorted.


Opening the style editor and clicking Reload Segments () fixed this though, and the style seems to be working fine.

I notice that the gap on the landing is too small for a baluster so in the attached version I've added a conditional node so that it only adds one if the section length is above a certain size.

Let me know how you get on. Which version of RailClone are you currently using??

Thanks,

Paul
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
I am using MAX2014 64bit with railclone 2.23. Because MAX 2014 is much faster in navigating the viewports. I must (some other plugin only work in MAX2012) save the scene as MAX2012 format to render.
I don't like to use the beta version of railclone in my work because I must finish the job before the deadline safely.  I find the railclone objects in MAX2012 is slightly different from those in MAX2014.
Must I click `the reload segment` in MAX2012 one by one? That's very boring. I hope the Railclone objects that model in 2014 are exactly same in MAX2012.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Hi,

There should be no differences between Version 2014 and 2012 caused by RailClone, it is not dependent on Max version (For some tasks I use it on Max 9 with no problems!). You should only need to reload the segments once per RailClone object, and only if you wish to make further changes to source object that has been changed in a way that loses the connection with RailClone (usually collapsing to a editable poly or adding an XForm modifier).

In the example you sent me, it seemed the segments had corrupted in some way, so reloading them fixed this problem. It may not be necessary in your case.

Thanks,

Paul
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
By the way, should I always keep the segment objects in my scene to prevent the segment distortion problem?
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
To be honest, this is the first time I've seen this problem. If it's not going to cause issues then I'd recommend keeping the original geometry hidden in the scene. Just in case.
Paul Roberts
iToo Software

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1551
Just a thought about the deformation. It might be worth checking that the spline's vertex types are set to Corner rather that Bezier-Corner. Otherwise sometimes the tangent handles cross over causing some odd results.

Thanks,

Paul
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
My customer told me the first step of each flight of stairs is different from that in real stairs. The first step was too lower. I tried to modify the setting of railclone object. But I can not get this result as my photo. Can you help me?  Maybe it's too complex to make the stair with one spline? Many thanks.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.