Forums > Jitter

How to display simple text on screen – elegantly?

February 25, 2013 | 12:49 am

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

Here’s my example…

– Pasted Max Patch, click to expand. –

February 25, 2013 | 7:19 pm

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.

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.

– Pasted Max Patch, click to expand. –

Viewing 2 posts - 1 through 2 (of 2 total)