jit.gl.text3d matrix out

Apr 9, 2010 at 8:04pm

jit.gl.text3d matrix out

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…

#49656
Apr 9, 2010 at 10:54pm

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. –
#178372
Apr 10, 2010 at 6:31am

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. –
#178373

You must be logged in to reply to this topic.