Best practices to move nurbs control points ?

Julien Bayle's icon

Hi there,
a nurbs, a texture applied.
used only in a plane (2d)

I want to move each control points with a gesture (very simple: I "click" somewhere, it takes the closest one and I can drag it)

my control points are in a 2 planes matrix feeding the jit.gl.nurbs so I can easily access to each cell.

is there an object I miss for selecting directely a control point or ??

dtr's icon

Not that I know of. Sounds like you'll have to do a distance check to select the closest.

Julien Bayle's icon

hello dtr
thanks
ok.

about the distance, it is relatively easy to do event-based when the "click" (which is an event based on kinect depth field data) is done.
I'll post the whole stuff on my blog http://julienbayle.net/blog as soon as it will be okay :)

Julien Bayle's icon

dtr, about the click, to simulate the kinect I mean, is there a way instead of using a jsui which would track the mouse ?

dtr's icon

not sure what you mean there. je parle français aussi ;)

Julien Bayle's icon

je fais une interface basique pour sélectionner et déplacer des points de contrôles d'un nurbs.
j'ai d'abord fait un truc avec jsui mais c'est pas le plus pratique
je tente autre chose :D

...

Tobias Rosenberger's icon

not sure if it helps you, but this patch i found once quite inspiring: