Jump to content

subdivide without smoothing


marcosimonvfx

Recommended Posts

Thanks. But the resample node only leaves the endpoints alone. If I have a curve with three points, one at x=0, one at x=0.0158487 one at x=1 then resampling the curve with 4 segments (one division between every two points) will space them out with equal length, effectively moving my second point.

Rather I would want x0 to stay at 0, x1 to be at 0.0158487/2 and x2 to stay at 0.0158487 etc

Link to comment
Share on other sites

Something Like This!!
And Just using Diff Spline Func You Can Achieve This

vector keys[] = detail( 1, 'stemPs', 0);

float lookUpLoc = abs( ch('pow')/@curveu)-0.01;
@P = spline( 'catmullrom', lookUpLoc, keys);

http://127.0.0.1:48626/vex/functions/spline

Ress.hiplc

Edited by Librarian
Link to comment
Share on other sites

Hm, not exactly. I really just wanted to get an additional subdivision between two points without changing the position of the two points - but these don't have to necessarily be the end points.

So first there's two points - in the next step one more gets added (in between the two points). Then, in the next step two get added - one between the first and the middle and the second one between the middle and last. Then in the next step four points are added ... So pretty much what the subdivision node does, but the subdivision node smoothes the parameters so all points (except the two very edges) change position.

In the end I managed to do it by subdividing (so points "loose" their correct position) and then checking the point positions before the subdividing: every point now has the old pointnumber *2. So it's easy to reference back the position this point had before the subdivision.

Kinda hacky - I would expect there'd be a possibility on a subdivide node "no interpolation" ... but oh well.

Thanks for your input, guys!

Edited by marcosimonvfx
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...