RailClone > Tutorials

Creating stairs

<< < (2/4) > >>

Paul Roberts:
Hi,

You should find that creating these stairs is quite similar to the tutorial. I've attached a sample file that you can take a look at with a possible solution. I hope it helps out.

Many thanks,

Paul

Paul Roberts:
Thanks for spotting the missing thread for Mapping Tiles and Bricks, I've added it here: http://forum.itoosoft.com/index.php?topic=3154.0

Bruno NM:
Thanks a lot for this example ! This node explain me better for understand my mistake.

Bruno NM:
Hi again in this post,

Today i try to handle corners with stairs, but i need to Z Offset every next flight step...
Someone could help me ? ;D

Paul Roberts:
Hi,

Thanks for the question. That's trickier than it looks because you need the alignment to be different and gradually change from the beginning of the flight to the end. In reality the lines that drive two flights of stairs do not connect neatly at the corners like that. You can see this if you look at a flight of stairs with strings. One is above the other on the corner.



So on option would be to break the spline on the corners and move up the bottom vertex.

Another possible solution would be to add a Z offset to the bottom of the stairs that gradually reduces for each additional step. To do this you can use the expression  (1-XSectionPosition)*Input1

XSection Position returns the current position of the step on the spline section as a scalar value between 0.0 at the start to 1.0 at the end. You can use this to multiply an offset value that will gradually reduce along the spline.



Please take a look at the attached sample file for an example of this.

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

Many Thanks,

Paul

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version