How to get a jit.gl.text 3d filled drawbounds box
I'm trying to get a fitting bounding box under my text in jit.gl.text in 3d mode but i get some strange behaviour.
Is it possible within the jit.gl.text object to generate a filled box around the text?
Now I try to use a gridshape to match the box. I use a getbounds message to get the position of the box but it's hard to fit it right. Am I missing something?
Thanks in advance
i would do it differently, by using the bounds coords to contstuct vertices for jit.gl.mesh.
i would also use jit.anim.node to parent the transformations to each object, thereby making it very easy to provide offset scale and position values to the background rectangle, if desired.
Thanks Rob for the solution!
I tried also to fix it with the jit.anim.node but i see now i used it the wrong way, thanks for the clarification!
There seems to be an issue if I use a jit.textfile to feed the jit.gl.text. When doing so, the get bounds options cannot be ticked. Is this a bug or is it because I'm sending a matrix instead of text?
Reards
Marc
To answer my own question, it doesn't seem to matter as the getbounds message works anyway.