How to get a jit.gl.text 3d filled drawbounds box


    Apr 26 2017 | 3:35 pm
    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

    • Apr 27 2017 | 3:07 pm
      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.
    • Apr 27 2017 | 3:53 pm
      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!