Word snake! jit.gl.multiple with jit.gl.text @mode 3d (part2)

phiol's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

I want to avoid creating 26 png textures of each letters of the alphabet.

Rob Ramirez's icon

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.

phiol's icon

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

Rob Ramirez's icon

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!

phiol's icon

awright , thanks a lot rob.

will report with results

phiol

Matth's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I find an other way with jit.gl.multiple and poly lcd textures.

Matth

PolyLettrer.maxpat
Max Patch
matmat's icon

hi,

Max Patch
Copy patch and select New From Clipboard in Max.

Many ways to do the job ;)

phiol's icon

Cool thanks matmat, always more elegant :-) !
Would you have a secret for french letters?

thanks

phiol

matmat's icon

I only know the "CH" post on this thread :

mathieu

phiol's icon

cool I'll have a sniff :-)
thanks

phiol

phiol's icon

Thanks again for the link Mathieu, it works like a charm.

Max Patch
Copy patch and select New From Clipboard in Max.

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 !