Jump to content

Randomize Carve Animation


majinpu

Recommended Posts

here's one way...problem is your carve should be inside the loop so that it carves differently for each path...

If it's too slow for you, just play with the constant 0.5 infront of the $T in the carve...

The constant 0.123 is the seed, so if you don't like the result, change the seed.

 

HexaMap_example_randcarve.hipnc

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

well first I tried rand using @ptnum cuz it's obvious...but couldn't quite get it to work...probably by the time it gets down to the carve...ptnum is not what I think it is (the Users) anymore...

So basically, I had to find a way to rand on 'count' ie. the iteration. So the detail is getting the loop counter info. Best if you watch the video by Jeff Wagner (roughly starting at 0:40:00)

(I can't be stuffed writing long input names so I always create a spare input and use -1 in detail...just me)

https://www.sidefx.com/tutorials/geometry-workflows/

(yes I have watched the video over and over and over...and practice practice practice this new loop thing...and don't forget to change the iter to fetch metadata cuz now we're getting the count/iteration)

  • Like 1
Link to comment
Share on other sites

8 hours ago, mestela said:

This seemed like a good way to compare foreach vs compiled foreach vs the groom.h trick outlined earlier on odforce vs removepoints by curveu.

The speedup with compiling is huge, but its still slow compared to a wrangle approach.

carve_compare.hip

 

thanks for the illustration Matt, so with the 'removepoint' method, I guess the only downside is the discrete look if you have a lowrez spline ? (what about some sort of lerp as a standin instead of a whole discrete section being removed...)

Link to comment
Share on other sites

thanks a lot guys!

I forgot about that webinar!! I watched it again and I downloaded the example files.... Amazing!!

 

So far i don't know if I got right... but.. in other words this new  iterations function it's a new way of copy stamping using the for each loop?

I watched the webinar more than once but looking at some example files I got just more confused!

 

 

Link to comment
Share on other sites

  • 1 year 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...