Jump to content

Procedural tower


davidyannick

Recommended Posts

I' d like to model a procedural tower

I'd like to generate points to copy planks but not on first and last points, and be able to randomize points positions.

My purpose is to be able to load planks from megascan and copy then to create this tower procedurally 

Any idea ?

Thanks for your help

InkedCapture d’écran 2020-12-23 074646_LI.jpg

Link to comment
Share on other sites

1 hour ago, davidyannick said:

here is what I've tried

hdni_tower.hiplc

I will try to open it and give you more detailed answer if I find time, but right now, from the top of my head, something like - using a base geo (box) separate side prims based on normal, on each prim keep just corner points, make two lines out of it, scatter points on each line, sort, group by range and create attributes to be able to use add sop to create lines as you want your planks (this is for diagonal ones, for the top ones you have to figure out yourself but it is the same principle). Then I would split each segment of the polyline and take it into a loop to make points and calculate the orientation based on coordinates of points of the line segment. Then copy-to-points the planks from megascans, using the orient to make them sit on the point which is in the middle of the line, but orienting following up vector and normal. I hope it makes sense :) 

Link to comment
Share on other sites

1 hour ago, skomdra said:

I will try to open it and give you more detailed answer if I find time, but right now, from the top of my head, something like - using a base geo (box) separate side prims based on normal, on each prim keep just corner points, make two lines out of it, scatter points on each line, sort, group by range and create attributes to be able to use add sop to create lines as you want your planks (this is for diagonal ones, for the top ones you have to figure out yourself but it is the same principle). Then I would split each segment of the polyline and take it into a loop to make points and calculate the orientation based on coordinates of points of the line segment. Then copy-to-points the planks from megascans, using the orient to make them sit on the point which is in the middle of the line, but orienting following up vector and normal. I hope it makes sense :) 

gonna try this thanks :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...