jit.gl.text2d bounding box weirdness


    Sep 02 2021 | 5:39 am
    The default bounding box for jit.gl.text2d objects seems to be really large and is not shaped to the text that is displayed. It appears that you can edit the bounding box with the bounds attribute, although unlike most other attributes in attrui you can't drag the numbers to edit them so it's rather inconvenient to do so. Is it supposed to be this way? The oversized/misshapen bounding box makes it really hard to do picking on jit.gl.text2d objects.

    • Sep 02 2021 | 4:15 pm
      this is currently a limitation of text2d. if you need automatic bounding functionality you can use text3d instead. I'll ticket this as a feature request for text2d.
    • Sep 02 2021 | 6:07 pm
      Thanks Rob!