Forums > Jitter

Scrolling text loop?

September 14, 2012 | 2:19 am

Hi all,

I’m working on the patch that scrolls the text (from a text file) from bottom to top and loops the scrolling text.
This is for a performance piece, so new lines will be added to the text file on the fly.
I managed to make the text scroll up, but couldn’t get my head around to make it go back to the beginning of the text file or loop seamlessly when we reached the end of the text line.
Right now I have to manually reset the position of jit.gl.text2d.

With my limited knowledge I’m stuck at this point….but If you could give me some tips to the right path I should follow, that would be super fantastic!!!

Thanks in advance :)

– Pasted Max Patch, click to expand. –


MJ
September 16, 2012 | 7:57 pm

hi

for a museum installation i made a patch which projected 300 names in a scrolling text . which was projected with 7 projectors on 30 meters of sand .
-> https://vimeo.com/4293627
it’s still running for 3 years already.

in this patch the textfile is converted with jit.lcd to textures . who are applied to a moving jit.gl.videoplane.
made a copy of that videoplane following the first one . to make it loop.


September 17, 2012 | 10:38 pm

Thank you for your response.
Your museum piece looks awesome!!
Could you tell me how you converted the text from jit.textfile to textures via jit.lcd? I tried but all I get was smudge of the text without line breaks..
Thanks :)



MJ
September 17, 2012 | 10:59 pm

its a 3 year old patch . done in max4 . now it gives all kinds of errors in max6.

i used a text object with the names in it
it outputted line by line
converted it to ascii with atoi
did a prepend ascii and send that line to a jit.lcd with the correct size in my case it was dim 800 4050
there were 300 names with a maximum of 1835 names .

before it was send to a jit.lcd it went through a patch which centerd it , counting ascii codes and added spaces.



MJ
September 17, 2012 | 11:37 pm

i tried to isolate the text2texture part , maybe its a bit messy but it seems to work alone…

– Pasted Max Patch, click to expand. –

September 18, 2012 | 12:26 am

Thank you so much for the quick response!
Wow this is great! I’m going through your patch to understand how this works now :)


September 19, 2012 | 12:02 am

This is what I have so far based on MJ’s patch. This loop works with two [jit.gl.videoplane]s following each other with fixed numbers of text lines.
But with constantly growing text lines (visitors will add more text over time), the [jit.gl.videoplane]s collide and mess up the loop..
I’m wondering if there is any way to detect the length of the text texture or numbers of lines in order to automatically adjust [jit.gl.videoplane]‘s length and position.
Is it do-able?

Many thanks in advance for your advice and I apologize for my limited knowledge…learning slowly but steadily… :(

– Pasted Max Patch, click to expand. –

October 29, 2012 | 12:45 am

MJ,

Your patch looks promising, but I am a little confused about how it works. What would one have to do to get it to take text files of very different lengths? You said it could accommodate 1800 lines, but my text files are getting cut off well before that. I am interested in dumping a coll with about 2000 lines into it.

Thanks!


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