miloshcavitch Posted June 11, 2019 Share Posted June 11, 2019 Hey everyone- I am currently trying to divide a polygon with a grid centered over it with a random angle, and then voronoi fractured: for each of those voronoi fractures, i want to give them random attributes, then plug them all into the above procedure and do the same thing, and for each of those new fractures the same thing, etc. etc, until my computer runs of RAM.. Just kidding, but you get the idea. I'm relatively new to houdini but since I have done graphics programming and modelling in the past I have gotten comfortable with it quickly. For this I've tried everything, from making a digital asset and putting the same digital asset inside of it (recursion) to using a solver, but I couldn't get anywhere with either. I also tried using a for loop with feedback but that seems to only effect the original input grid. If this wasn't too complicated to program I'd use a while loop in vex, but the idea of writing out a polygon slicing program seems like overkill. There's definitely an easier way to do this? Quote Link to comment Share on other sites More sharing options...
mestela Posted June 11, 2019 Share Posted June 11, 2019 An alternative way with for loops and stuff: http://www.tokeru.com/cgwiki/index.php?title=ForLoops#Compiled_recursive_3d_clip and this for a 2d version: http://www.tokeru.com/cgwiki/index.php?title=ForLoops#Loops_in_loops Quote Link to comment Share on other sites More sharing options...
miloshcavitch Posted June 18, 2019 Author Share Posted June 18, 2019 hey thanks for the info! Quote Link to comment Share on other sites More sharing options...
freaq Posted June 26, 2019 Share Posted June 26, 2019 also checkout the gamedev tools there is a recursive subdivision i there look for lot subdivision. 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.