Connecting gl objects in 2d space with lines

Aug 5, 2013 at 6:31am

Connecting gl objects in 2d space with lines

…is what I’m trying to do. Typically I’ve seen tasks like this handled by jit.expr, but that takes better math understanding than I am able to conjure up.

right now I’ve hooked up a jit.gl.gridshape to jit.gl.multiple, and I am getting objects in the right spots, so to speak.

But handling the connections between them… that’s doing my head in a bit, I must say. Any pointers?

cheers,
a

#258055
Aug 5, 2013 at 10:39am

maybe send your position matrix to a jit.gl.mesh @drawmode lines (or lineloop)?

otherwise, please post a patch.

#258087
Aug 5, 2013 at 4:09pm

that did it :) There’s still some oddities with the end points not matching up with the gl.multiple I’m using, but it looks aces.

thanks

#258120

You must be logged in to reply to this topic.