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!
    • Aug 21 2019 | 11:34 pm
      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
    • Aug 22 2019 | 12:50 pm
      To answer my own question, it doesn't seem to matter as the getbounds message works anyway.