Best practices to move nurbs control points ?

Aug 28, 2012 at 9:39am

Best practices to move nurbs control points ?

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 ??

#64133
Aug 28, 2012 at 9:59am

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

#231339
Aug 28, 2012 at 10:06am

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 :)

#231340
Aug 28, 2012 at 10:12am

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

#231341
Aug 28, 2012 at 10:56am

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

#231342
Aug 30, 2012 at 7:29am

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

#231343
Aug 31, 2012 at 1:15pm

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

http://www.cycling74.com/forums/topic.php?id=11861

#231344

You must be logged in to reply to this topic.