First of all, I want to thank all the contributors on this forum. They helped me a lot, and they saved me a lot of time every time I struggled with some programming issues.
Today, I have an issue I can't really find an answer here, and I am wondering if one of you have an idea. This is probably a noob question, sorry about that.
What I am trying to do is to use a list of texts, along with position and angle.
"foo1" 0. 0. 1. 360.
"bar2" 0. 1. 0. 90.
(this list can contain a variable amount of lines)
And I would like, for each item of the list, to have the text ("foo1", "bar2", ...) displayed at the given position and rotated with the given angle.
I know how to use jit.gl.text3d for one text, but I am struggling with it if I need to display a variable number of text boxes, at different places, and with different rotation.
One solution could be to instantiate 40 or 50 jit.gl.text3d, and modify them incrementally... but I doubt this is a elegant solution.
Would be ideal if I can do something similar to jit.gl.sketch: sending different messages to the object to draw shapes at different locations.
Does anyone has some advice for me?
Thank you very much,