3d lines to create 3d shapes and process geometry matrix?

tomslater's icon

Hello,

I've just started trying to learn OpenGL by using jit.gl.sketch

My main aim is to create 3D shapes and then process the geometry matrix (as described in Jitter tutorial 37: Geometry Under the Hood).

I would really like to create a wire frame cube but instead of the wire frame lines being a single pixel I want them to be in 3D.

The patch I have put together demonstrates this but I'm kind of stuck on how to process the matrix output from jit.gl.sketch, how to treat the separate cylinders that create the cube as one whole shape so I can apply different treatments to it.

Can anyone point me in the right direction?

Thanks

tomslater's icon

Sorry, schoolboy error :)

Here it is properly compressed..

Max Patch
Copy patch and select New From Clipboard in Max.

dtr's icon

I don't really understand what you're trying to achieve. What are the 'treatments' you are after?

Wetterberg's icon

I think I understand. Tut 37 is about matrixoutput.

IIRC matrixoutput on jit.gl.sketch isn't supported :(

I've never wanted to be proven wrong so much in my life, though, I think that's been my biggest wish for Jitter for as long as I can remember.

tomslater's icon

@ WETTERBERG yes that's what I mean. I see now that matrixoutput is not supported by jit.gl.sketch which is a shame.

I think I should use jit.gl.gridshape instead for this, no? My reservation with this approach is that I would be restricted to using the torus, sphere, cylinder, etc.

I want to be able to create new shapes/objects that function as a connected grid, kind of like the cube I have constructed from cylinders in the attached patch.

Do you think creating the new shape/object in something like Sketchup and exporting it as a .obj file, then reading it with a jitter object that supports matrixoutput is a way to go?

Thanks for your help so far and happy new year,

Tom