Jump to content

Need help with loops and Foreach


Werner

Recommended Posts

  • 1 month later...
  On 11/24/2017 at 3:41 AM, mestela said:

I'm sure there's better ways, but here's my attempt. Will explain more if I get time later...

recursive_subdivide.hipFetching info...

forloop_clip_recurse.gif.9254bc14d2d7df759365e15d8ecf9c08.gif

Expand  

Please! Which version of houdini is it built? Every time I try to open a file in 15.0.274 a lot of errors will come out and in the end nothing will work!

Link to comment
Share on other sites

  On 1/22/2018 at 11:22 AM, Eyteneyer said:

Please! Which version of houdini is it built? Every time I try to open a file in 15.0.274 a lot of errors will come out and in the end nothing will work!

Expand  

Try the file associated with this video, you can get very similar results and I think it should work in older versions. This isn't mine but I was messing around with it before Matt's version and I could get a very similar style out of it. There's 4 or 5 different styles of cutting in the file that can be downloaded from dropbox. Link for the file is on the vimeo page.

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
  • 1 month later...
  On 11/8/2018 at 7:11 PM, Atom said:

Playing around with this subdivide on a hexagon grid.

ap_hexagon_recursive_subdivide_110818.hiplcFetching info...

Expand  

Looks good, I'll have a play with that in the morning.

Here's a couple of setups for getting L-shaped cuts and 45° cuts, the angle can be changed to anything you like. Everyone feel free to mess around and post any ways to improve them.

 

cuts.jpg

different_shaped_cuts.hiplc

  • Like 3
Link to comment
Share on other sites

  • 2 months later...

@Dimitris Can you provide the houdini file ? i tried to recreate yours but i'm a beginner in houdini and i don't understand some paramaters like the random of the polysplit. When you put a polysplit you need to select what you need to split and what i'm understanding for your technique that you random select the edges ? how can i do that ? 

Your work is just awesome and all of you in this threads are incredible... 

Hope i can post some render when i figure it out it works :)

Regards;

Link to comment
Share on other sites

  On 11/24/2017 at 3:41 AM, mestela said:

I'm sure there's better ways, but here's my attempt. Will explain more if I get time later...

recursive_subdivide.hipFetching info...

forloop_clip_recurse.gif.9254bc14d2d7df759365e15d8ecf9c08.gif

Expand  

When I open the hip file, there is nothing in the viewport, not even if I make the grid node visible or enable template. I'm on Houdini 17.

EDIT:

I copied the all the nodes into a new session. It works now.

Edited by reeson
Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  On 11/24/2017 at 9:58 PM, Werner said:

Forgot to mention where I got the idea from. There is a beautiful render on the SideFX gall done by Dimitris Ladopoulos, that made me want to explore loops Foreeach. 
https://www.sidefx.com/gallery/algorithm/

Thanks again for the great example Mestela. I'm yet to understand how it all works, but I will take my time.

one more for fun.

 

 

Rec_SubD_102.jpg

Expand  

I know I am very last to this party but I really love this style and am just getting into Houdini......I was wondering if you could explain a bit about how you textured and lit this scene.....Thanks!

Link to comment
Share on other sites

  On 11/28/2017 at 8:06 AM, Dimitris said:

Hey @Werner and @mestela

I was surprised to find this thread with the Algorithm stuff I posted a few days ago.

See more at https://www.behance.net/gallery/59061121/Algorithm

I'm glad it got you interested and thankful for people like mestela!

I am also relatively new, so my method might not be very efficient or elegant, but here it goes:

I tried a couple of way but ended up using polysplit with edge loops in order to have local space rather than world space.

I ended up with 2 variations. 1st one splits each primitive with a random number of edge loops (eg. 0-4). Blue loop splits horizontally, green loop splits vertically. I could only get equally spaced splits so in the 2nd example I tried to make it split each primitive a random number but at a random distance (0.2-0.8) each time.

Hope this helps.

 

 

 

1st method.png

2nd method.png

Expand  

Your images are amazing.....and thanks for sharing this.....one question......can you explain what the switches do inside of the inner loops....Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

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...