Displaying text from keyboard into jit.gl.videoplane

b_dove's icon

Hey, this is my first post and I've been digging around the forums, as well as the built in references, to solve this problem. it seems relatively simple, but I'm fairly new to max/msp/jitter and I'm having trouble figuring this out.

Essentially, I have several videos being triggered by keystrokes of different letters, being displayed into a jit.gl.videoplane. That's all working great, however I need the letters that I am typing to be overlayed on top of the videos being shown, in real time. I've looked into the jit.gl.text2d object but can't figure out how to use text being typed live.

Thanks for any help y'all can give me.

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

below is a basic example to get you started.
notice the layer attribute to control draw order.
the key and itoa object are used to get keyboard input.