kittea Posted April 23, 2020 Share Posted April 23, 2020 (edited) I'm trying to create a stair railing. I'm having trouble with the piece that connects a support column to the railing. I included a picture to show you what I mean and my project. I'm using a tube and deforming it using the same curve used by the railing. I can get one to show up but I don't know how to get the other pieces. Is a For Loop appropriate? I think I can calculate the Curve Offset in Path Deform but I don't know how to hook the loop up. The input for Tube is Bounding Source so if I connect the ForEach Begin to the Tube, the tube expands to the size of the curve and I lose my desired sizing. What am I missing? Is there a better way? stairRailing.hipnc Edited April 23, 2020 by kittea Made picture smaller. Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted April 26, 2020 Share Posted April 26, 2020 (edited) Hi, one way might be getting the the u-coordinates of each intersection. With these u-values you can calculate the offsets. Here is an example. stairRailing_.hipnc Edited April 26, 2020 by Aizatulin Quote Link to comment Share on other sites More sharing options...
Noobini Posted April 26, 2020 Share Posted April 26, 2020 sweep can do it, Choose Cross Section Primitives by Attribute Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted April 26, 2020 Share Posted April 26, 2020 (edited) Hi Kittea, the sweep SOP has a function to create unique attribute values per primitive row which you can use for extruding. railing_KM.hipnc Edited April 26, 2020 by konstantin magnus 2 Quote Link to comment Share on other sites More sharing options...
Noobini Posted April 26, 2020 Share Posted April 26, 2020 didn't even know such a @primrow exists !!! Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted April 27, 2020 Share Posted April 27, 2020 Guess I got tempted and quickly modeled the whole thing.. : ) The entire procedure is based on a main grid, so there's no need to define positions with long-winded parameter expressions and channel references. The tank is simply a swept line with caps activated using the new, extremely flexible sweep node. UVs can be randomly shifted for each primitive row. For the vertical support elements the grid points were lifted up and ray'd down onto the tanks to shape backbone curves for a profile made from a grid. To build the stairs, horizontal lines were UV-projected on the main grids primitives that aren't facing upwards and were swept to shape the steps. To avoid corners of the hand rail, supports were offset by sampling intrinsic U positions on the guide curve which again stems from the main grid. The hexagon grid is done by voronoi fracturing a primitive with points from volume set to tetrahedral off of a grid. The frames are extrusions and sweeps. The sand piles are jittered and remeshed circles, displaced by noise with decreasing amplitude towards their original curves using distance from geometry. To avoid intersecting with the existing geometry, the crates' copy-to-points were distributed within a two-dimensional voxel field along with the scatter node. industrial_staircase.hipnc 4 Quote Link to comment Share on other sites More sharing options...
kittea Posted April 28, 2020 Author Share Posted April 28, 2020 Thank you @Aizatulin, @Noobini, and especially @konstantin magnus. Your scene is awesome. It has objects in there that I was also working on so I plan on looking at your creation methods to compare against mine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.