davidyannick Posted December 23, 2020 Share Posted December 23, 2020 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 Quote Link to comment Share on other sites More sharing options...
skomdra Posted December 23, 2020 Share Posted December 23, 2020 What did you try so far? Quote Link to comment Share on other sites More sharing options...
davidyannick Posted December 23, 2020 Author Share Posted December 23, 2020 here is what I've tried hdni_tower.hiplc Quote Link to comment Share on other sites More sharing options...
skomdra Posted December 23, 2020 Share Posted December 23, 2020 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 Quote Link to comment Share on other sites More sharing options...
davidyannick Posted December 23, 2020 Author Share Posted December 23, 2020 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 Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 23, 2020 Share Posted December 23, 2020 doesn't this help ? you started the thread Quote Link to comment Share on other sites More sharing options...
davidyannick Posted December 23, 2020 Author Share Posted December 23, 2020 20 minutes ago, Noobini said: doesn't this help ? you started the thread this time no, because I'd like to generate random points and then copy (instance) of planks from megascan 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.