Stairs example question for experts

   3189   7   1
User Avatar
Member
67 posts
Joined: April 2017
Offline
Need some help to make a simple shape for one stair using copy/duplicate SOP.
My problem is that the STEPS are getting widder and bigger for each copy. I want to maintain the same width for all steps.
Probably could be some type of trick using bbox…
P.D. I dont want any copy_to_points workflow.
Edited by bhb - June 12, 2017 15:33:12

Attachments:
crazy_stairs.jpg (129.5 KB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
'Experts' would not pile boxes on top of each other to get stairs Youll get lots of overlapping polygons that way.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
67 posts
Joined: April 2017
Offline
Thats another problem.. I know it, but can be solved after.
Experts probably use a ForEach Subnetwork… but I dont want this also .
Edited by bhb - June 12, 2017 16:06:16
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
I didnt look into copySOP for a while and foreach is unnecessarily complicated for this, but you could subtract a horizontal from a vertical gradient across a grid and delete all black polygons from it to get some stairs.

Attachments:
stairs.hipnc (81.4 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
67 posts
Joined: April 2017
Offline
Thanks, your file works. But I need all steps separately because I intend to apply Bevel to them after.
For the moment I got it with PolygonMesh(height,width..of the stepts) > Copy (numer of steps) > transform+Bool(to cut backfaces).

But the question remains there… a “tricky” or something to use a COPY node only, and get same width in the steps.
Edited by bhb - June 12, 2017 21:02:00

Attachments:
stairs_fix.jpg (102.8 KB)

User Avatar
Member
648 posts
Joined: July 2005
Offline
see attached,
uses scale attribute on template points.

Attachments:
stairs_scaleattrib.hiplc (69.3 KB)

User Avatar
Member
67 posts
Joined: April 2017
Offline
Work in progress.
… and new problem. When using BOOLEAN Sop(intersection) , the groups for those points and prims are deleted. And the attributes created by the bool are empty (orphaned attribs).
¿How to fix this?

Attachments:
Houdini_Simple_Stairs_V3.png (1.6 MB)

User Avatar
Member
67 posts
Joined: April 2017
Offline
I just saw your answer cpb.
Great! Simple way. I will start from beginning with your file,.. using the BOOL way gives me a lot of problems at end.

Thanks for your help cpb & Konstantin Magnus.
Edited by bhb - June 14, 2017 02:40:41

Attachments:
Houdini_Simple_Stairs_V4.png (193.0 KB)

  • Quick Links