Forums > Jitter

jit.gl.text3d matrix out

April 9, 2010 | 8:04 pm

I’m trying to find the bounds of a character or characters displayed in jit.gl.text3d so I can draw a rectangle behind it. It seems that a matrixoutput from text3d would have this information somewhere, however, I’m not clear how to parse the matrix that comes from a text3d…


April 9, 2010 | 10:54 pm

the first three planes contain the x,y, and z values for each vertex.
you should be able to send these to jit.3m to get the bounds of the shape.

– Pasted Max Patch, click to expand. –

April 10, 2010 | 6:31 am

I just noticed that jit.gl.text3D outputs one frame for each letter, which has confused me in the past. You will need to accumulate this list to get min/max bounds for a whole sentence. ie.

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)