Scrolling text loop?
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 :)
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.
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 :)
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.
i tried to isolate the text2texture part , maybe its a bit messy but it seems to work alone...
Thank you so much for the quick response!
Wow this is great! I'm going through your patch to understand how this works now :)
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... :(
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!