Jump to content

Minimalist challenge | Procedural pipes


magneto

Recommended Posts

Hi,

Recently I watched the latest SESI tutorial about creating procedural pipes, but found it a bit overly complicated, so decided to create it my own way. It's not 100% the same. I just wanted to create a single pipe as opposed to multiple. But you would only need a foreach sop if you wanted to do the same operation per curve :)

Mine uses 16 nodes, the tutorial file uses 70 I think, including the number of nodes used in a custom HDA that they use.

Do you think this can be done differently with fewer nodes? :)

Here is the video:

Thanks :)

procedural_pipes.hip

Edited by magneto
  • Like 1
Link to comment
Share on other sites

Hi Magneto

Can this system work if need to change the curve.

I just did a test,

Look what happens when you add a segment to the original curve.

I was just test driving this.

mangi

post-2848-0-23347000-1362339452_thumb.jp

Link to comment
Share on other sites

Hi mangi, that's very normal :)

Basically the network assumes there are no inline points between each section of the pipe. So if any shape was to be passed in and the requirement was to handle this as well, I would use the Facet SOP and turn on the "Remove Inline Points" option.

Also it has to be a continuous curve. If you want to do this for multiple curves, you also need to use the Foreach SOP.

If you wanted to have the ability to increase pipe divisions, that would also be very easy to do as well. I would do it when the shapes are separated in the network, by using the Resample SOP.

Basically this is a simple example that can be extended very easily, but by no means handles everything you would want in a procedural asset. If you wanted to do that though, it would be fairly simple, you wouldn't have to redesign the network or anything. I just didn't want to spend time to do that though :)

Link to comment
Share on other sites

Ya pretty fun tjeeds, that you tweeked on Magnetos file.

But , check it out theres a bit of random weirdness.

On tight coners. the conection don´t pop togerther always.

can you debug this and maybe tell us why it happen to just get some knowledge .

mangi

post-2848-0-48729400-1362386221_thumb.jp

Edited by mangi
  • Like 1
Link to comment
Share on other sites

Ok now reduced it to 5 nodes :) It only works on a single curve, so for multiple, you have to add a foreach sop to repeat the same thing per curve.

Overall it's 16 times more efficient and simpler than the example shown in the video. I think that's an improvement :)

Btw we should do more of these simple examples that you can achieve using the least number of nodes. It might seem impractical but I think this restriction really forces you to be creative and also find out about specific uses of certain nodes that you wouldn't know otherwise.

procedural_pipes2.hipnc

Edited by magneto
  • Like 3
Link to comment
Share on other sites

Thanks alot guys, every approach inspires new ones :)

I really wanted the ability to control the number of segments in the fillet joints but Fillet doesn't seem to allow that. I could do it with Convert but that meant 1 more node, so had to sacrifice that :)

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