How to display simple text on screen - elegantly?

snackd's icon

Hi there. I want to have some text periodically coming in via ethernet and displaying on screen. The openGl text objects seem nice enough, but they sure don't make it easy for you to center the text or autowrap. I also don't really understand how to overlay text so that it doesn't try to give me a seizure! I'm sure someone's done this before.... care to share a bit o' patch with me?

Thanks in advance!
josh

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

Here's my example...

Rob Ramirez's icon

you are trying to use a jit.window as both a matrix destination and and an opengl destination. you can only use one or the other.
you should simply send your video matrix to a jit.gl.videoplane.

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

wrapping lines will have to be implemented manually. you can count the number of characters in a string with the atoi object.
javascript can also help with this.