Word snake! jit.gl.multiple with jit.gl.text @mode 3d (part2)
Hi all,
atteached is a clearly explained patch of what I'm trying to do:
-create multiple instance of jit.gl.text using jit.gl.multiple.
-have a access to each individual instance as you can with color or texture.
Basically, I just want to know if it's possible to send a text matrix to jit.gl.text
through multiple.
I want to avoid creating 26 png textures of each letters of the alphabet.
hi phiol. this is not possible with jit.gl.multiple (although something i'd like to see).
for now you must use something like poly~ or js and create a jit.gl.text instance for each letter, and iterate the transform matrices each frame.
i've done something like this in the past with 100s of letters, so i know it's possible.
oh ! :,-(
thanks a lot for letting me know rob.
Do you have any thoughts on how would I go about making a word snake with poly~ and make them into constraint physical bodies.
I guess I would have to include a jit.phys.point2point in each poly~ have dynamically connect to each other upon poly~ creation.
Would that even work before I dive in?
Endless thanks rob
update: Just re-read the part of your answer where you say "iterate the transform matrices each frame."
ouch!
thanks again
should work, and will be easy enough to test. as mentioned i did something similar with 100s of letters. won't know until you try!
awright , thanks a lot rob.
will report with results
phiol
I find an other way with jit.gl.multiple and poly lcd textures.
Matth
hi,
Many ways to do the job ;)
Cool thanks matmat, always more elegant :-) !
Would you have a secret for french letters?
thanks
phiol
I only know the "CH" post on this thread :
mathieu
cool I'll have a sniff :-)
thanks
phiol
Thanks again for the link Mathieu, it works like a charm.
But I don't remember why we had issues with french text in a passed project ,
but I just tested it now and it works perfectly fine !