Resample fur

   2411   5   1
User Avatar
Member
7 posts
Joined: Jan. 2019
Offline
Hey guys,

I am trying to resample my primitives (hairgen) with the resample node.
I was wondering if there is a way to give a maximum and minimum cv count without croping my curve and still having a “regular” cv distribution along the curve.

I basically have some very short primitives and I still need them to have 4 cvs minimum, and I want my longest one to have maximum 8. But as soon as I am trying all the parameters I do have the short one with only 2 cvs, the long one which are croped, the long one which are absolutely not regular (keeping the last vertex) etc…

So if you have the solution that would be amazing.
Thanks!
User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
your questions is not about fur/hair
the resample node will let you specify how many points per curve you want,
before resample you could group the short that needs 4 points, and the other that need 8 points, base LENARC.
User Avatar
Member
7 posts
Joined: Jan. 2019
Offline
Not sure to understand how to do that.
There is like no node which is doing the very very very basic thing that all the other software can do which is just taking the length and resampling your curves based on this? Including a minimum and maximum cvs ? Without doing 10 steps?

Thanks anyway
User Avatar
Member
310 posts
Joined: July 2012
Offline
The combination of maximum segment length enabled, maximum segments enabled and even length segments enabled should get you what you want.
User Avatar
Member
8832 posts
Joined: July 2007
Offline
jordans
very very very basic thing that all the other software can do
I guess this is an overstatement from the frustration

Houdini tends to lack very very very specific and constraining tools as there can be literally millions of specific tool expectations
so it rather provides you with flexibility to build tools that suits your needs and then you can wrap that into a node for later use

just use Primitive Wrangle:
int min_segs = 4;
int max_segs = 8;
float min_length = .1;
float max_length = 1;
float length = primintrinsic(0, "measuredperimeter", @primnum);
i@num_segments = rint(fit(length, min_length, max_length, min_segs, max_segs));
then append Resample SOP and uncheck Maximum Segment Length

you can tweak the code to do the logic you expect

you can bundle those 2 together into an asset, promote the min/max values as sliders and you have your very very very basic tool
Edited by tamte - Feb. 27, 2019 14:50:35
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
7 posts
Joined: Jan. 2019
Offline
Yep some frustration seeing that you can do crazy complex stuff with Houdini in 2 nodes, and some basic stuff needs to be hand coded or need 25 nodes.

That being said, it doesn't mean that Houdini is bad or whatever. I just think they should somehow remember that 3D artists are sometimes more artists than technicians, and cannot code their own node.
I am doing grooming since a while and I can definitely see that the tools hasn't been coded for “artists” but for technicians.
I would love SideFx to think about it, and leave more artistic freedom to people who don't know vex.

Anyway thanks for your code, going to test it!
Really appreciate it.
  • Quick Links