nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.23k stars 232 forks source link

Edge Adaptive Multiple Input #1090

Closed enzyme69 closed 7 years ago

enzyme69 commented 7 years ago

Continuation of this: https://github.com/nortikin/sverchok/issues/695#issuecomment-270335408

I think I know what I am trying to do (sort of)

screen shot 2017-01-05 at 19 16 44

A way to combine and randomize Edge Adaptive Donor, to turn it into a single line.

https://gist.github.com/1c2bbfbb023108b89a7a46af0cb22395

enzyme69 commented 7 years ago

Although Edge Adaptive node does not really do squash and stretch... regardless the distance of edge slices.

screen shot 2017-01-05 at 19 24 02

I am actually trying to visualize "animation" curve.

enzyme69 commented 7 years ago

screen shot 2017-01-05 at 19 26 47

That's interesting but what is reallly controlling "the amplitude" of this EASE function?

ly29 commented 7 years ago

As the author I can certainly state that adaptive egdes could needs more work. For this case the scanning happens inside of adaptive edges and with intdiv which for this case is a bit strange...

enzyme69 commented 7 years ago

screen shot 2017-01-05 at 19 30 29 screen shot 2017-01-05 at 19 29 55

Thanks @ly29

I don't know what I am trying to do, but kind of thinking of 2D animation curve, and then trying to combine animation curve.

Adaptive Edges seems can help with what I am trying to do.

enzyme69 commented 7 years ago

The Edge Adaptive scale based on length but does not stretch or squash isnt it, any way we can change the behaviour?

I like the node, powerful.

Is there a way to also rotate twist the edge while on it?

zeffii commented 7 years ago

what is reallly controlling "the amplitude" of this EASE function

Amplitude is defined by the function, the functions don't take additional parameters beyond the single input. The functions aren't intended to be supremely configurable. You might use something like the Exec Node / Script nodes to write your own x->y functions. The Ease functions in the node are the 30 most common. their source is here to learn from and adapt to your own needs.

ly29 commented 7 years ago

All of those things are issues with adaptive edges, today it would be called an alpha node, it needs more control and needs to be redone. Sadly not my best work.

enzyme69 commented 7 years ago

@ly29 thanks Ly I will look forward to the update of the node. But I think it's still pretty powerful!

@zeffii very good point there, I appreciate the explanation. I think the squash and stretch requires a deformation of Vector.

nortikin commented 7 years ago

vectorized it today.

enzyme69 commented 7 years ago

@nortikin any example?

nortikin commented 7 years ago

https://gist.github.com/nortikin/380019871206531dffa8c93beb7b7f4d